I have an open socket to a remote terminal. Using the answer to "Force telnet client into character mode" I was able to put that terminal into character mode.
My question is, how do I hide the cursor in the remote terminal using this method?
I have an open socket to a remote terminal. Using the answer to "Force telnet client into character mode" I was able to put that terminal into character mode.
My question is, how do I hide the cursor in the remote terminal using this method?
This is something that the ncurses library can do for you.
The
curs_set()
function can make the cursor invisible.To expand upon mjh2007's answer, the following c/c++ code will implement sending the escape codes to the terminal, and is slightly more readable than raw hex numbers.
If the terminal you are using supports ANSI format you should be able to send the following escape codes:
If this is using the 'telnet' application then your app should send 'IAC WILL ECHO' to disable echoing on their remote side. This is useful for entering passwords or if your app is doing the echoing.
Or
Hope this helps.