[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Feb 27 20:29:05 2001 
Subject:Re: ved key-mapping to conventional use. 
From:cglur 
Volume-ID:1010227.01 

> > Wow ! Now the arrow-keys move cursor, 4 directions = normal !

A.Sloman wrote:
> If you record the vedsetkey commands that solved your problems and email
> them to me I'll make them available to others.

  define :ved_runtime_action;
     vedsetkey('\^[[A', vedcharup);
     vedsetkey('\^[[B', vedchardown);
     vedsetkey('\^[[C', vedcharright);
     vedsetkey('\^[[D', vedcharleft);
     vedsetkey('\^[[F', vedtextright);
     vedsetkey('\^[[H', vedtextleft);
  enddefine;
were good for one X-term.
I think different X-terms have different key-mappings.
This is not a problem, since <ENTER> dk allows you to see
the char-string corresponding to any key.
Ie. the first argument of vedsetkey.
<enter> help dk <cr> provides extra (ample) information.
The exact names/identifiers of the second argument, I copied
from examples, and {can't find the name now - I'm not in Linux}
some file(s) which discuss the keys.
----------

> > Perhaps soon I'll be able to setup to run ved as non-X ?

> If you run Ved in a linux non-X login console, then everything
> becomes much easier if you do this before starting Ved:
> 
> if running tcsh or csh as shell:
>     setenv TERM xterm
> 
> if running bash, sh or ksh:
>     TERM=xterm
>     export TERM

!! Good, that's what I wanted !!

For non-X the 'move cursor to line end and begin', which I find very\
usefull: vedtextleft = <home>, vedtextright = <end>, are now:
     vedsetkey('\^[Ow', vedtextleft);
     vedsetkey('\^[Oq', vedtextright);
as indicated by <ENTER> dk .

Right now, I want to consolidate my pop11-syntax learning, from
the excellent tutorials.

Soon I will make a duplicate complete installation, and report 
the results with the extra 'tuning' additional to INSTALL_LIKE_BHAM .
----------
>We use a combination of Vt100 and Xved xdefault settings that are in

>  http://www.cs.bham.ac.uk/research/poplog/setup/Poplib/Xdefaults.poplog

>and a set of pop-11 commands to be compiled from your $poplib/vedinit.p

linux1553.tar.gz   does NOT contain  vedinit.p !
I think THIS was the problem cause ?
Also INSTALL_LIKE_BHAM has no reference to $poplib,
although install.txt has.
----------

> > Apparently Andrew Sayers' patches are for X-window ?
> 
> If you are referring to this, it does the opposite:
>     http://www.cs.bham.ac.uk/research/poplog/linuxterm.tar.gz

I got it, and copied/renamed the 4 files as per README.
( but: vedlinuxkeys.p exists - need save original)
!! Now poplog/ved runs non-X without pre-initialising TERM   ??

I looks as if the present linux1553.tar.gz , INSTALL_LIKE_BHAM
with vedinit.p missing was able to run in one of Linux's X-term types,
with the default settings.  Just lucky ?

Chris Glur.