• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 9112
  • Last Modified:

Putty keyboard / terminal configuration for Solaris

I would like to know how i could make putty works well with solaris.

I made Backspace key work.
But Up & Down keys don't work.
0
nrigaud
Asked:
nrigaud
  • 4
  • 2
  • 2
1 Solution
 
vamsi_ukCommented:
When you say up and down arrow keys i take it that you are talking about getting previous executed commands.. is it what you are asking about? If thats what you are asking for all i could think now is the shell you are using that doesnt have command history feature. You can use bash shell if you want to do that. The default shell that comes with solaris doesnt let you get the previous commands just by using up and down arrow keys.
0
 
nrigaudAuthor Commented:
The shell is ksh.
and the history command works.

when i press these keys, i got:
Up : ^[[A
Down : ^[[B

Is there a way to bind the arrow keys to the history ?
0
 
vamsi_ukCommented:
you can press "ESC -" to see and execute the previous commands
0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

 
vamsi_ukCommented:
You can even do the following:

Esc + j   <--- moves down the command history
Esc + k <-- moves up the command history
0
 
TintinCommented:
What version of Solaris?

If you are on Solaris =>9, then bash comes as standard.
0
 
nrigaudAuthor Commented:
ESC + j or k or - don't work.

it is SunOS 5.8 in fact :/
i think i'll use bash.
0
 
vamsi_ukCommented:
Refer to this link to see about command history of k shell in solaris 8. The above mentioned commands work on solaris 10. So maybe its not the same in solaris 8.


http://www.phptr.com/articles/article.asp?p=26523&seqNum=5&rl=1
0
 
TintinCommented:
ksh (and bash for that matter) have two types of command line edit modes, emacs and vi.

emacs is the default.

If you prefer vi (like most people), you need to do

set -o vi

Then you can use the Esc - and Esc + etc.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now