remote terminal : function keys do not work

  • Follow


hello,

I am connecting to a 5.9 box from cygwin on my Win machine. all is
well, but function keys and special keys (like 'home', 'end', 'page
down' , 'page up' do not work. I have tried playing with different
TERM settings - as in ansi, vt100, vt220, etc. - no luck there.

I do not have root access and cannot change termcap and terminfo
settings.
Is there a way to map keys somehow? (I am using bash, but can use ksh
as well)

thanks!

0
Reply webwesen (8) 10/19/2007 9:53:12 PM

[webwesen]:
>
>   I am connecting to a 5.9 box from cygwin on my Win machine. all is
>   well, but function keys and special keys (like 'home', 'end', 'page
>   down' , 'page up' do not work. I have tried playing with different
>   TERM settings - as in ansi, vt100, vt220, etc. - no luck there.
>   
>   I do not have root access and cannot change termcap and terminfo
>   settings.

you can set the environment variable TERMINFO to use your own terminfo
database.

>   Is there a way to map keys somehow? (I am using bash, but can use
>   ksh as well)

bash does not use function keys or page up/down.  you can bind them to
actions in ~/.inputrc, though.  I suspect you really want these keys
to work in some other application, but you don't say which, and it may
be different for each application.  e.g. vi does not support these
keys out of the box.  Emacs or less should, though, given the right
combination of terminfo and TERM.

-- 
Kjetil T.
0
Reply Kjetil 10/25/2007 3:24:11 AM


On Oct 24, 10:24 pm, Kjetil Torgrim Homme <kjeti...@kaksi.ifi.uio.no>
wrote:
> [webwesen]:
>
>
>
> >   I am connecting to a 5.9 box from cygwin on my Win machine. all is
> >   well, but function keys and special keys (like 'home', 'end', 'page
> >   down' , 'page up' do not work. I have tried playing with different
> >   TERM settings - as in ansi, vt100, vt220, etc. - no luck there.
>
> >   I do not have root access and cannot change termcap and terminfo
> >   settings.
>
> you can set the environment variable TERMINFO to use your own terminfo
> database.
>
> >   Is there a way to map keys somehow? (I am using bash, but can use
> >   ksh as well)
>
> bash does not use function keys or page up/down.  you can bind them to
> actions in ~/.inputrc, though.  I suspect you really want these keys
> to work in some other application, but you don't say which, and it may
> be different for each application.  e.g. vi does not support these
> keys out of the box.  Emacs or less should, though, given the right
> combination of terminfo and TERM.
>
> --
> Kjetil T.

thanks for your reply.
I wanted to use them with vim and mc. mc handles it with 'learn keys'
option, but vim is still something i would like to setup.

0
Reply webwesen 10/31/2007 12:31:38 AM

2 Replies
766 Views

(page loaded in 0.157 seconds)

Similiar Articles:













7/22/2012 9:09:56 AM


Reply: