[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 8965
  • 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

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