*
The moose likes Linux / UNIX and the fly likes History Stack with up and down keys while telneted into an AIX box. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "History Stack with up and down keys while telneted into an AIX box." Watch "History Stack with up and down keys while telneted into an AIX box." New topic
Author

History Stack with up and down keys while telneted into an AIX box.

Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Occasiaonally I have to telnet into a client's AIX box.

It's usually with short notice and no time to play around with settings.
I haven't been able to get the up and down keys to work.
Is there a particular character setting that needs to be tweeked to achieve this?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Not an AIX guru, but just some general UNIX help - maybe this applies to AIX and maybe it doesn't...

Enter -

and see if you're running sh as the shell - it's one of the few shells that doesn't have command history. If it turns out this is the case, you can change your login shell to one you like using the chsh command and the path to the shell's binary, for example, something like -


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Also, instead of arrow keys - try Ctrl-P (for previous) and Ctrl-N (for next) to scroll through history. Not sure why this happens sometimes, but I think it might have something to do with character-code mappings.

(edit - googled and found more on this. And something that looks specific to AIX.)

Good luck
[ February 10, 2006: Message edited by: Nathan Pruett ]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Changing shells didn't work but I'll try the ctl commands.

Thank you Nathan
Madhu Manoharan
Greenhorn

Joined: Feb 11, 2006
Posts: 3
I am not sure if this will work either, I cant verify it right now but-

You can enable vi mode of editting the command line by first typing -
set -o vi

After that you can type "esc" when you want to move in and out of the vi mode.

So to access your history - type "esc" and then type "k" to go above and "j" to go below in your history.

Type "esc" to come back to command mode.

All other commands used in VI will work in the vi mode.

M
[ February 11, 2006: Message edited by: Madhu Manoharan ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: History Stack with up and down keys while telneted into an AIX box.
 
Similar Threads
Multiple Key Press
cool? OS X idea ?
navigating JTextFields via up/down keys
This Weeks Giveaway
chat program