ICE

TCP/IP Products => TCP-PRO => Topic started by: BOBAR on June 23, 2006, 11:54:18 am

Title: Logging in with SSH and changing the cursor
Post by: BOBAR on June 23, 2006, 11:54:18 am
Reference Ver 5.1.26 TCPPRO

When setting a connection up to use SSH, is there a way to bypass the Login prompt and go directly to the server login page?

Also, can the blinking cursor be changed to a blinking box?
Title: Re:Logging in with SSH and changing the cursor
Post by: BOBAR on June 23, 2006, 12:51:57 pm
Never mind the SSH question-I figured it out but still could use a hand with the blinking block
Title: Logging in with SSH and changing the cursor
Post by: Bob on June 23, 2006, 01:49:49 pm
You can send escape sequences via your profile or a batch command to change the size of the cursor. It can even be a thin underline. You cannot turn off the blink however. The codes are in the manual on your CD in the DOC folder.
Title: Logging in with SSH and changing the cursor
Post by: Bob on June 26, 2006, 10:29:04 am
Sorry about the codes missing from the manual, here is how you can change the cursor with an escape sequence:

echo "\033[=1;11C"
or for some shells like bash that require the -e parameter to echo:
echo -e "\033[=1;11C"

The character before 33 is a zero, not an o. This will produce a block blinking cursor. The 1 is the starting line (top of the cursor box) and the 11 is the botom line of the cursor box. This is just an example, you can play with different numbers. Because some systems that send this code will use different end lines depending on the type of connected terminal certain numbers might give unusual results. You can test this by logging into your unix server to a prompt (not into the application) and just typing out the echo line. The change to the cursor is immediate.

Where you would put this is in on the unix side in the individual users .profile login script or the /etc/profile script or if there is a script that starts your application program in there.