[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Apr 11 23:30:01 2001 
Subject:Full/half window in Ved, and finding documentation (Was Re: Tuning linux-poplog) 
From:Aaron Sloman 
Volume-ID:1010412.01 

Stephen Isard <S.IsardDeleteThis@ed.ac.uk> writes:

> Date: Wed, 11 Apr 2001 13:49:44 +0100
> Organization: HCRC or CCS, University of Edinburgh

> ...
> Vesa A Norrman wrote:
>
> > (1) How do I make ved start in full window mode instead of half
> >     window mode?
>
> In plain ved, as opposed to xved, you can achieve it by putting the
> command
>
> vedscreenlength -> vedstartwindow;
>
> in your vedinit.p file.  The trouble is, that effectively stops you ever
> getting two windows on the screen.

Alternatively, leave the value of vedstartwindow, or do this to restore
the default:

    vedscreenlength div 2 -> vedstartwindow;

then, in plain Ved (not Xved) you can always switch between full and
half screen for the current file by using the "ESC w" key sequence.

See TEACH window. The sequence ESC w invokes vedsetwindow(), defined
in REF vedprocs, along with a lot of other useful Ved procedures.

TEACH BUFFERS is also useful for people who are not using Xved.
It explains how you can use "ESC x" to switch back and forth between
two buffers, and "ESC e" to find out which Ved buffers you currently
have and to select one of them.

It does not mention ENTER rb, a useful command to Rotate Buffers.
(It gets the buffer at the *end* of vedbufferlist and brings it
to the *front*.)

I hardly ever use XVed as I hate using a mouse. I just use Ved, and
often have as many as 20 Ved buffers active, with at most two of them
visible on the scree. I switch between them, in the same dumb terminal
window (xterm), using the above commands.

There is a library LIB windows, described in HELP windows, which
allows you to divide a dumb terminal window horizontally into more
than two sub-windows in which you can see different files. This was
originally developed for a commercial user who had VDUs that
supported 60 lines of text visible at a time. So it was convenient
to have 3 or 4 windows visible at a time. That was before the advent
of bitmapped graphical interfaces.

> ...
> > (3) What is the key command for following hyperlinks?
> Can you expand on that, please? The ENTER-g sequence will move you to
> a section of a documentation file from a line in the contents section.

and it will also take you from anywhere in the file to the "next" line
in the contents section, where next = the one after the last one you
used.

Within the text "ESC h" will get you a teach file, a help file or a
ref file explaining the item to the right of the Ved cursor,
depending on what the word is to the left of the cursor.

E.g. you can get different documentation by putting the ved cursor
before the word "lists" in the following line and and typing ESC h

    TEACH lists, HELP lists, REF lists

If the word to the left of the cursor is not recognized, it will try
to find a help file, and failing that may find one in one of the
other search lists (teach or ref). Where it looks and in what order
is defined by the list of directory names in vedhelplist.

(See HELP VEDGETSYSFILE, HELP VEDSYSFILE)

Using VED to browse the internet:
To follow a URL in a ved file, e.g. this one
    http://www.cs.bham.ac.uk/research/poplog/auto/ved_www.p

I have a library ved_www which can invoke either netscape or lynx.

If you compile it then put the Ved cursor before a URL and then type

    ENTER www

it reads the URL and runs lynx on that URL, using the current XTERM
window. If you are using Xved and did not start it off using "&",
you can then do this as long as you make your original xterm window
visible.


If instead you do
    ENTER www n
it runs netscape instead of lynx.

The code is quite simple and can be fetched from the above URL
then edited to invoke a different browser, etc.

One option I often use is
    ENTER www -dump

That runs lynx on the web page and reads it into a Ved buffer after
processing by lynx (i.e. you see the text, not the html).

If you want the html source do
    ENTER www -dump -source

The library file has a draft help file beneath the header. If you have
lynx and/or netscape and would find this useful just fetch it from the
above URL.

There is a recent undocumented extension
    ENTER www g
runs www.google.com in lynx.

You can use google as a way of searching poplog online
documentation!!

That is because google has access to all the poplog files in
    http://www.cs.bham.ac.uk/research/poplog/
    http://www.poplog.org
and various other poplog sites

So if you ask google to search for

    poplog help strings
or
    pop11 help strings

You are likely to get information on strings in Pop-11

You can also try search queries like

    poplog ved define key sequence

That took me straight to a file on vedsetkey.

Of course, that is often not as convenient or as fast as going
straight to a documentation file on your own machine. But it is one
way to start becoming familiar with the documentation, and gets round
the lack of good integrated keyword search mechanism in poplog.

Also try HELP documentation

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