ICE

Please login or register.

Login with username, password and session length
Advanced search  

News:

ICETCP.PRO and ICETCP.PLUS are compatible with Windows 11!

Author Topic: Logging in with SSH and changing the cursor  (Read 1167 times)

BOBAR

  • Newbie
  • *
  • Posts: 2
  • Place Personal Text Here
Logging in with SSH and changing the cursor
« 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?
« Last Edit: June 26, 2006, 10:29:30 am by Bob »
Logged

BOBAR

  • Newbie
  • *
  • Posts: 2
  • Place Personal Text Here
Re:Logging in with SSH and changing the cursor
« Reply #1 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
« Last Edit: June 26, 2006, 10:43:35 am by Bob »
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
Logging in with SSH and changing the cursor
« Reply #2 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.
« Last Edit: June 26, 2006, 10:43:48 am by Bob »
Logged

Bob

  • Administrator
  • Ice Artist
  • *****
  • Posts: 1607
Logging in with SSH and changing the cursor
« Reply #3 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.
« Last Edit: June 26, 2006, 10:44:17 am by Bob »
Logged
 

Page created in 0.01 seconds with 21 queries.