(My correct e-mail address is:
lucb@
telus.net
)
> Since X has disadvantages, with no apparent benefits for ved usage,
> can ved run non-X mode on a standard pc under linux ?
> It seems that ved would be satisfied with VT100 simulation ?
I used to use ved with a dumb terminal in 1990-1991 as hundreds of people did in
those days. I'm sure it still works. As long as you have a unix command line
prompt you should be able to get ved going. (Just type ved, if it's in your
path.) Is your question: how to use a different windowing system apart from
X-windows under linux? I've only used X under Linux myself.
I assume that ved wouldn't try to apply any xformatting if you're running it
outside of X-windows, but if it did, you could use ved_strip (ENTER strip) to
get rid of it. I have this in my vedinit.p:
> * where is linux's keyboard mapping facility ?
> * is it sensible to re-map eg. the cursor 4 directions to the arrows ?
Yes.
If you type ENTER dk, and then type the key that you want to map, e.g., UP
ARROW, then ved will create and display the source code for a procedure which
you can put in your vedinit.p file. It will prompt you for the characters or
keys that you want to map, and then it will prompt you for an action, which by
default is typing a string, but it can also be a procedure name.
See HELP * VED_DK.
For example, using ved_dk I've found that on my keyboard the UP ARROW button
maps to '\^[[A'. Knowing that I want to map that to the procedure vedcharup
(conveniently listed in help * ved_keys), I used that as the second argument to
the vedsetkey function in the following
define :ved_runtime_action;
vedsetkey('\^[[A', vedcharup);
enddefine;
And that indeed causes the UP ARROW key to work properly on this standard
Microsoft Keyboard under Linux (via X-Windows).
In vedinit.p you can put a bunch of calls to vedsetkey.
There's also a convenient ved command that shows you what procedure is mapped to
a key: type ESC k, then type the key.
I haven't customized my keyboard mappings yet since returning to pop, but I
should do that soon.
Gotta run,
Luc
|