Unix administration - [solved] Re: correct term setting?

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > October 2005 > [solved] Re: correct term setting?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [solved] Re: correct term setting?
Troy Piggins

2005-10-03, 6:04 pm

* Troy Piggins wrote:
> I log into my linux machine from a windows machine using puTTY over ssh,
> and most programs I run using screen.
>
> I posted the below originally on comp.editors thinking it was a vim
> issue, but now am thinking it is a term/puTTY problem:
>
> ----- originally posted comp.editors -----
> Something has bothered me for ages but have managed to do without is the
> use of the numbers on my keypad with numlock on.
>
> In my shell (bash) I can type keypad numbers and they work, but in vim
> they don't. Searched the vim help for numlock, keypad, and numpad etc
> only turned up bindings.
>
> Is there a setting to enable them? What is it?
> ----- end -----
>
> I should clarify that when I say they don't work in vim, they do send
> "some characters" but I don't know what they are, and they certainly
> aren't the numbers.
>
> In the bash shell (no screen running) $TERM is xterm; in bash using
> screen $TERM is xterm; in vim term defaults to $TERM; in
> puTTY->terminal->keyboard->"Function keys and keypad" are set to "ESC[n~"
>
> In vim I tried setting term=ansi, and the keypad worked then, but the
> function keys didn't.
>
> Any ideas? Not sure what other information to provide:
> vim 6.1, bash 2.05b, puTTY 0.58, 104 key qwerty keyboard?


Ok, don't know how I stumbled onto this, but there was a check-box in
putty's settings terminal->features->"disable application keypad mode"
which by default seems to be unchecked. I checked it and works now.

Thanks anyway.

--
Troy Piggins
Where I live: 27 27 44 S 153 02 28 E
http://earth.google.com
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com