You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a scenario where my app connects to two different services, a local piece of hardware via serial port, and a remote server via sockets.
Once the hardware connection is established, I show a prompt where the user can enter manual commands at the terminal if needed.
This works fine, but once the server connection is established, which is usually after the device connection is already there, it logs a success message which get pasted on top of the prompt.
This is not a major issue, but kind of ugly, and results in something like this on the terminal:
Connecting to device on port /dev/cu.usbserial-FT8X0FP7 ...
Connecting to server at http://localhost:8081/ ...
Connected to device
Enter command: Connected to server
//<-- prompt is now here on a new line
Ideally, I would like to see subsequent console log lines cover the Enter command: bit and for that line to move down, as follows:
Connecting to device on port /dev/cu.usbserial-FT8X0FP7 ...
Connecting to server at http://localhost:8081/ ...
Connected to device
Connected to server
Enter command: //<-- prompt here
Any thoughts on how to accomplish this?
Note: I don't want to await both connections and only then show the command input, as the server connection is not required.
The text was updated successfully, but these errors were encountered:
I have a scenario where my app connects to two different services, a local piece of hardware via serial port, and a remote server via sockets.
Once the hardware connection is established, I show a prompt where the user can enter manual commands at the terminal if needed.
This works fine, but once the server connection is established, which is usually after the device connection is already there, it logs a success message which get pasted on top of the prompt.
This is not a major issue, but kind of ugly, and results in something like this on the terminal:
Ideally, I would like to see subsequent console log lines cover the
Enter command:
bit and for that line to move down, as follows:Any thoughts on how to accomplish this?
Note: I don't want to await both connections and only then show the command input, as the server connection is not required.
The text was updated successfully, but these errors were encountered: