On Tue, Feb 22, 2000 at 07:48:20PM +0100, Jens Wilhelm Wulf wrote:
> > in Mutt, you can press : for "enter command", and then press <esc>, and
> > then the key for which you want to see the char sequence.  The reason
> > why you need to press <esc> is that the first character from your
> > home/pageup/whatever key is likely to be <esc>, and Mutt won't display
> > that -- but if it receives two <esc>'s, it will display the second on
> > the command line.
> ....shit....didn't work....whatever I type before those keys, it's always
> the same: home/end won't display anything but stop the input, while
> pageup/down just make mutt beep without closing the prompt.
> 
> Tried to hack around in the code a bit (mutt_getch in curs_libs.c) but now I
> know as much as before...however, I'll give up for now, there are much
> more important things to do. 
> Tried slang version 1.3.10 instead of 1.4, too.

You should try hacking terminfo instead.  Use 
$ infocmp $TERM
and look at khome, kend, kpp and knp.  They should match the sequences
your term is generating for Home, End, PgUp and PgDn respectively.

For example, Eterm 0.9 on my system is configured to send this:
$ keystrings
^D exits

\e[1~
\e[4~
\e[5~
\e[6~
\4

(keystrings is a small program whose sole purpose in life is to display
nicely formatted character sequences.  I hacked it from examples in
libc.inf).

If they don't match, you can redirect the output of infocmp to a file,
modify it and reinstall with `tic'.

Good luck.
Marius Gedminas
-- 
"Nobody will ever need more than 640k RAM!"
                                -- Bill Gates, 1981
"Windows 95 needs at least 8 MB RAM."
                                -- Bill Gates, 1996
"Nobody will ever need Windows 95."
                                -- logical conclusion

Reply via email to