[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Aug 19 18:23:18 2001 
Subject:Revised "linuxterm" library for Ved on linux console 
From:Aaron Sloman See text for reply address 
Volume-ID:1010819.01 

[To reply replace "Aaron.Sloman.XX" with "A.Sloman"]

Various people have had problems using the "dumb-terminal"
version of Ved on a PC running linux, in plain text mode,
i.e. in a console window without X running.

One solution, which is only partial, is to set the $TERM
variable to have the value xterm. This is only a partial
solution as (a) changing the environment variable could
interfere with other programs and (b) it does not deal
adequately with the function keys on a PC in Ved. (This will
not bother users who use only CTRL and ESC combinations
described in HELP VEDKEYS).

A couple of years ago, Andrew Sayer produced a solution
overcoming (a) by making available a three files:

    vedlinux.p
    vedlinuxkeys.p
    vedlinuxscreen.p

which could be copied into $usepop/pop/lib/ved/term/

Until recently I could not check these out properly as the only
linux machine to which I had regular access was a laptop and I did
not know how far its keys were like a standard PC keyboard.

I have now started using a PC+redhat 7.1 regularly at home
and found it useful to extend the linuxkeys.p file to enable
the function keys F1, F2, etc. to be used as we use them in
XVed and Ved at birmingham, namely:

    F1       F2       F3       F4       F5        F6       F7
 +--------+--------+--------+--------+--------+--------+--------+
 | MARK   | MARK   | DELETE | DELETE | DELETE | DELETE | DELETE |
 | BEGIN  | END    | LINE <-| LINE   | LINE-> | WORD <-| WORD-> |
 +--------+--------+--------+--------+--------+--------+--------+

     F8       F9      F10      F11      F12
 +--------+--------+--------+--------+--------+
 | MOVE   | COPY   |XREFRESH| PUSH   | XCHANGE|
 | RANGE  | RANGE  |(file?) |        | POSN.  |
 +--------+--------+--------+--------+--------+
   (The last two may be different on some keyboards)

I also found that the Delete, Home and End keys sent strange
character sequences, i.e.

    esc [ 3 ~
    esc [ 1 ~
    esc [ 4 ~

so I have now set these to behave appropriately.

The arrow keys work, but if preceded by ESC they jump to the
top and bottom, or left edge or right edge of the text.

Since the Home and End buttons now work, I am inclined to
change the ESC+arrow sequences to invoke vedcharuplots,
vedchardownlots, vedcharleftlots, vedcharrightlots, which
move the cursor about a third of a window in the appropriate
direction, as they used to do in the numeric keypad with ESC
followed by one of the keypad arrow keys. Comments?

The new linuxterm package should be browsable in this
directory
    http://www.cs.bham.ac.uk/research/poplog/linuxterm/
or
    ftp://ftp.cs.bham.ac.uk/pub/dist/poplog/linuxterm/

However, the cs.bham web site is in the midst of massive
reorganisation and it appears that some recent change has
prevented http: directories without an index.html file being
browsable which used to be previously. The ftp version still
works.

The linuxterm files are also available for fetching in this
3749 byte file:

    http://www.cs.bham.ac.uk/research/poplog/linuxterm.tar.gz
    ftp://ftp.cs.bham.ac.uk/pub/dist/poplog/linuxterm.tar.gz

I plan soon to install these by default in the poplog saved
images in the $usepop/pop/lib/ved/term/ directory so that in
future people will not need to fetch them separately.

Aaron
====
Aaron Sloman, ( http://www.cs.bham.ac.uk/~axs/ )
School of Computer Science, The University of Birmingham, B15 2TT, UK
EMAIL A.Sloman AT cs.bham.ac.uk   (ReadATas@please !)
PAPERS: http://www.cs.bham.ac.uk/research/cogaff/
FREE TOOLS: http://www.cs.bham.ac.uk/research/poplog/freepoplog.html