Does anyone know the escape codes to change the cursor style in PuTTY 64-bit under Windows? I can't find this documented. It's currently set to VT100 emulation (but could change if needed - PuTTY also supports VT400 if that would work...). There's a set-up option to specify the cursor style (underline or block and blink/noblink), but I want to change this using an escape code from the server. I need two cursor styles but am not really bothered what these are (but would prefer underline and block).
Yes - it says it isn't possible when used with vi. I was hoping that just referred to vi and that PuTTY was capable in itself. But perhaps not.
In MS console VT100 emulation, you can have a blinking or static cursor (which would do) (using ESC[?12h Enable Cursor blinking, ESC[?12l Disable Cursor Blinking) but these don't work with PuTTY (probably some special MS escape codes!).
Is there a 'better' telnet client that allows things like this to be done? and please don't anyone mention the MS telnet client. That is brain-dead from birth!
I think you misunderstand. PuTTY doesn't need to be compiled to be used. It is a telnet client and is downloaded as an installable - no compile required. It supports VT100 & VT400 escape codes (plus others). The issue was that I couldn't find documentation regarding the VT escape codes to use to change the cursor style. Plenty on moving the cursor etc etc but not on actually changing the cursor. Some said (as per Jonnin's link) that it couldn't be done. I thought I remembered doing it when I programmed for VT terminals many, many years ago - but I don't now have the old VT manuals. After a fruitless search, I finally got mad and pulled the source from PuTTY's web site and looked for the required escape codes. Hence I found the ones I documented above for future use.
The issue isn't really PuTTY's as they say they support the standards. It's finding the full complete escape code list for the standard. I found dozens of web references, but none had these required escape sequences. It would be nice if PuTTY help documentation detailed the escape codes used - but that would take time away from actually developing the product.
"escape codes" are so called because the sequence starts with the ESC char (dec 27). These are used to control the appearance/placement of text/cursor etc. There are different classes of these codes. One of the most common being VT100 - based upon the codes used by the DEC VT100 terminal. An example is ESC[H to move the cursor to the upper left corner.
Each class of these codes can have over 50 definitions. Then there are the codes sent when special keys are pressed - eg pressing <left arrow> generates ESC[D.
I'm kind of curious about what you're doing with this. In my world PuTTY has two uses, SSH and Serial, it's more of a shell than an application. It's basically a text based version of RDP for me. The idea of seeing it in another light has piqued my interest a bit.