Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I put cursor characters into a file (.login)??

Status
Not open for further replies.

mjw

MIS
Nov 2, 1999
2
US
I would like to put the command setkey 12 "rt-arrow rt-arrow" into the .login file.

How can I edit a file with vi and put the 'rt-arrow or left-arrow character into the document?

THanks Michael
 
one way would to use awk
printf("setkey 12 %c%c%c%c",0x22,0xra,0xra,0x22)

where ra is hex code for right arrow.

could get file on windows, and use debug in command, and then send back.
 
it's easier to go into "vi"
add your line that says setkey 12 "<R-Arrow><R-Arrow>"
now where u want the <R-Arrow> command type in
<Control-V> then press the <Right-Arrow> on the K/b

Will only work if you use the same Terminal setup throughout the system tho.
 
I knew there was a way, just could not remember what it was.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top