John Duncan wrote in response to Ray
[Ray]
> > This is a longshot, but does anyone know how to map
> > the right enter key function onto a HP laptop that
> > doesn't have one?
[John]
> If I understand the question right ;
> Have you tried Ctrl-G ?
That will work for ENTER.
In general the key-bindings listed for use with telnet and
similar remote logins in the file TEACH TELNETKEYS -- included
with bham poplog, and also here:
http://www.cs.bham.ac.uk/research/poplog/teach/telnetkeys
allow you to do most things in Ved without needing any
function keys, only ESC and CTRL. I list them below
for convenience. A more complete table is in HELP VEDKEYS
Another possibility is to use the vedinkeys procedure to find out the
codes transmitted by your function keys (e.g. the Windows key, if the
laptop has one) and then map them onto whatever Ved capablities you
need.
E.g. define this procedure (already in bham poplog)
define ved_inkeys();
vedinkeys(false)
enddefine;
Then this command in Ved
ENTER inkeys
switches Ved into a mode in which as you type the characters received
are inserted into the buffer in a format that can be used in pop11
strings. So if you press your function keys F1, F2, etc. with spaces in
between you'll see the codes they transmit. E.g. if I do this with F1 f2
F3 F4 F5 F6 on my machine now I get (using Ved, logged in remotely in an
xterm window), I get this:
\^[OP \^[OQ \^[OR \^[OS \^[[15~ \^[[17~
You can terminate with either CTRL C, or ESC typed three times.
So if I wanted to map F6 to vedwordleftdelete I could put this
in my vedinit.p file
vedsetkey('\^[[17~', "vedwordleftdelete");
or
vedset keys
wordleftdelete = esc [ 1 7 ~
endvedset;
(See HELP VEDSET)
Here is the table from TEACH TELNETKEYS (a subset of HELP VEDKEYS):
====================================================================
KEY COMBINATION FUNCTION VED LOGICAL NAME
^G Enter a command ENTER
ESC ^G Switch to/from command line SWITCHSTATUS
ESC RETURN Redo command on command line REDOCOMMAND
^P Move up one line CHARUP uP
^N Move down one line CHARDOWN dowN
^B Move left one character CHARLEFT Back
^F Move right one character CHARRIGHT Forward
ESC ^P Move up several lines CHARUPLOTS
ESC ^N Move down several lines CHARDOWNLOTS
ESC ^B Move left several characters CHARLEFTLOTS
ESC ^F Move right several characters CHARRIGHTLOTS
ESC b Move left one word WORDLEFT
ESC f Move right one word WORD RIGHT
ESC v Screen up SCREENUP
^V Screen down SCREENDOWN
^A Move to left edge of screen SCREENLEFT
ESC ^E Move to right edge of screen SCREENRIGHT
ESC ^A Move to start of line TEXTLEFT
^E Move to end of line TEXTRIGHT
LF Move to start of next line NEXTLINE
ESC m Mark start of range MARKLO
ESC M Mark end of range MARKHI
ESC C Mark the current procedure ENTER mcp
ESC g Go to start of marked range MARKFIND
ESC G Go to end of marked range ENDRANGE
^R Delete character under cursor DOTDELETE
DEL Delete character to left of cursor CHARDELETE
^W Delete word to left of cursor WORDLEFTDELETE
^U Delete line to left of cursor CLEARHEAD
^K ^B Delete word to left of cursor WORDLEFTDELETE
^K ^F Delete word to right of cursor WORDRIGHTDELETE
^K ^A Delete line to left of cursor CLEARHEAD
^K ^E Delete line to right of cursor CLEARTAIL
^K ^K Delete current line LINEDELETE
^K ^D Delete marked range ENTER d
ESC w Toggle half/full-screen window SETWINDOW
ESC x Switch to other window SWAPFILES
ESC e Enter file selection menu FILESELECT
ESC q Quit the current file ENTER q
ESC c Compile the current procedure ENTER lcp
ESC d Compile the current line LOADLINE
^D Compile the marked range ENTER lmr
===============================================================
Aaron
|