[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev Lynx keymap problem
From: |
T.E.Dickey |
Subject: |
Re: lynx-dev Lynx keymap problem |
Date: |
Mon, 27 Apr 1998 11:33:15 -0400 (EDT) |
> > that's a little awkward (to make Lynx use those setting) unless tcsh
> > stashes the information in a file some place).
>
> I can think of a quick and dirty way to obtain bindkey sequences, but it
> requires grep:
I know that - but it relies on the system spawning tcsh to get the
information since bindkey is a builtin command. (The same problem, btw,
applies to getting csh/tcsh aliases - there is no guarantee that the
environment which prints the aliases is compatible with the one that
requests the list).
But sure - you can construct a file that Lynx can read...
> # Grab all keystrokes binds 'end-of-line' bindings
> set test = `bindkey | grep 'end-of-line'`
>
> # Grab keystroke sequences
> set i = 1
> set j = 1
> while ($j <= $#test)
> set keystroke[i] = $test[j]
> i += 1
> j += 3
> end
>
> # Passing sequences to Lynx
> foreach $k ($keystroke)
> ....
> end
--
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey
- lynx-dev Lynx keymap problem, Jacob Poon, 1998/04/23
- Re: lynx-dev Lynx keymap problem, John E. Davis, 1998/04/23
- Re: lynx-dev Lynx keymap problem, T.E.Dickey, 1998/04/23
- Re: lynx-dev Lynx keymap problem, T.E.Dickey, 1998/04/23
- Re: lynx-dev Lynx keymap problem, T.E.Dickey, 1998/04/23
- Re: lynx-dev Lynx keymap problem, T.E.Dickey, 1998/04/23
- Re: lynx-dev Lynx keymap problem,
T.E.Dickey <=