On Fri, May 26, 2000 at 02:24:34PM -0400, Hardy Merrill wrote:
> Since I upgraded to mutt 1.2, I haven't been able to get my
> f1 help macros to work. These used to work for me:
>
> # Show documentation when pressing F1
> macro generic <f1> "!less /usr/doc/mutt-1.0i/manual.txt\n" "Show Mutt documentation"
> macro index <f1> "!less /usr/doc/mutt-1.0i/manual.txt\n" "Show Mutt documentation"
> macro pager <f1> "!less /usr/doc/mutt-1.0i/manual.txt\n" "Show Mutt documentation"
>
> But now they don't. What am I doing wrong?
>
> Thanks.
>
I haven't been able to get function keys to work at all with
s-lang lib but they are quite okay with [n]curses lib.
Here is what i get for the 2 cases:
s-lang:
color ok; function-keys not-ok; "grey" keys got-working;
ncurses:
color none; function-keys ok; "grey" keys mostly-not-ok;
I suspect that for the slang case the function keys are perhaps
being lost because a header file "slcurses.h" is not being used
when it should - but haven't tracked it down yet.
[Any thoughts anyone?]
Incidently, just as a variant, i throw up the help text in a
_separate xterm_ via <esc>h (h for help); and the web stuff via
netscape using <F2> or <esc>H (F2 also doesn't work with slang)
Here is extract from my .muttrc :-
# <F1> etc. doesn't work ??!! - use <esc>h for the nonce
# also try actual F1 keycode ...
# Note. <Esc>h also fires up in its own xterm...
# both <fx> + actual keycodes don't work with slang compiled in
# but seem too work for ncurses compiled in
macro index <f1> "!less /libraries0/bmrc/doc/mutt/manual.txt\n" "Show Mutt
documentation"
macro index \e[11~ "!less /libraries0/bmrc/doc/mutt/manual.txt\n" "Show Mutt
documentation"
macro index \eh "!xterm -title 'Mutt doc text (ESC-H for web doco)' -g 80x40 -e
less /libraries0/bmrc/doc/mutt/manual.txt&\n" "Show Mutt documentation own xterm"
... and similarly for macro pager ...
macro index \eH "!netscape_it.csh
http://thryp.ho.bom.gov.au/internal/mutthtml/manual.html\n" "Netscape Mutt
documentation"
macro index <f2> "!netscape_it.csh
http://thryp.ho.bom.gov.au/internal/mutthtml/manual.html\n" "Netscape Mutt
documentation"
macro index \e[12~ "!netscape_it.csh
http://thryp.ho.bom.gov.au/internal/mutthtml/manual.html\n" "Netscape Mutt
documentation"
... and similarly for macro pager ...
Maybe this helps, [ though i'm sceptical :-( ]
Gerry.
--
Disclaimer: These are my opinions, not those of my employer
Gerald K. Embery ; e-mail: [EMAIL PROTECTED]
Bureau of Meteorology Research Centre,
Melbourne, Australia ; http://www.bom.gov.au/ bmrc/medr/gke.html