[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Aug 4 17:29:35 1999 
Subject:TIPS for windows Poplog (WAS Re: question about windows poplog) 
From:Aaron Sloman See text for reply address 
Volume-ID:990804.04 

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

> Date: Wed, 04 Aug 1999 14:22:27 +0100
> Organization: Edinburgh University
>
> Sebastian Rupik wrote:
> >
> > I recently d/l'd the Windows version of poplog, and started typing in
> > some code.
>
> When I tried winpop11, it started up ved in immediate mode.  That means
> (among other things) that every line you type should be executed (well,
> incrementally compiled) when you press the <return> key.

That's right.

If you start another file, it won't be in immediate mode.

> > Once I'd finsihed, I pressed enter and typed 'load', to find
> > that the output was put in the same window as the code.
>
> The load command normally requires a filename as argument.  Did it
> really work without one?

It should normally mishap

    ;;; MISHAP - load: NO FILENAME SUPPLIED

However, for some reason in an immediate mode file ENTER load
without an argument does absolutely nothing (as far as I can tell)!

> > From previous experience, when the load command was typed a new window
> > came up which displayed the output.
>
> I don't think winpop11 is capable of popping up another window, but by
> using <enter>output you should be able to get the output into a
> different ved buffer in the same window.

You can have two files visible at a time, with the screen split in
the middle, but in the same window. "ESC w" toggles between split
screen and single screen.

You can have more than two files in the editor, and use "ESC e" or
"ENTER rb" to change the one that is viewed in the window
or sub-window.

If you have a high resolution screen and wish to have more than two
(horizontally divided) windows for ved you can use LIB WINDOWS,
originally written for users of large dumb terminals. Do
    ENTER lib windows
(Ignore the warning signs about unavailable unix features!)

Then to find out how to drive it do
    ENTER help windows

E.g.
    ENTER newmap , , ,

will create a division into four windows. There are far more options
available, described in the HELP WINDOWS file.

(LIB WINDOWS does not compile in Poplog V15.53 because it attempts
to redefine vedrefreshwindow. I have installed a new version which
avoids this problem in:

ftp://ftp.cs.bham.ac.uk/pub/dist/poplog/bugfixes/lib/ved/windows.p

by replacing vedrefreshwindow with Vedrefreshwindow.)

===================================================================

Here are some additional tips that may be useful for people using
PCWindows Poplog, e.g. in case the function keys don't work.
(These tips should also work on Unix systems, and in Xved)


USEFUL KEY SEQUENCES
    (the ^ refers to the control or Ctrl key)

^G          = ENTER
ESC Return  = REDO Command (like the "-" keypad key)
ESC ^G      = Switch Status (like the "+" keypad key)

^P          = charuP (Move up)
^N          = chardowN
^B          = charleft (Backwards)
^F          = charright (Forwards)
^J          = nextline (go to beginning of next line)

ESC f       = word right (word Forward)
ESC b       = word left (word Backward)

ESC m       = Mark start of range MARKLO
ESC M       = Mark end of range MARKHI
ESC C       = Mark the current procedure ENTER mcp   (NOT ESC c)

ESC g       = Go to start of marked range MARKFIND
ESC G       = Go to end of marked range ENDRANGE

ESC c       = compile current procedure
ESC d       = compile current line
^D          = compile marked range (= ENTER lmr)

ESC q       = quit current file
                (if changed and writable will ask for confirmation)
ESC e       = select a file currently in VED.

Delete options (two keys):
^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       (or ^U)
^K ^E       = Delete line to right of cursor CLEARTAIL
^K ^K       = Delete current line LINEDELETE
^K ^D       = Delete marked range = ENTER d

Window operations:
ESC w       = switch between using half screen and full screen for
              current file. Don't use this in Xved (See TEACH WINDOW)
ESC x       = Switch to previous window (last one accessed in Ved)
^L          = Refresh window

"ENTER rb" is useful to "rotate buffers" if you have several files
in VED. The ENTER rb command lets you cycle round them all easily,
in combination with REDO.

There's lots more information in HELP VEDKEYS
=======================================================================

The startup file in PC windows Poplog is not necessarily in
a good place. It starts up in one of the poplog system directories.

You probably don't want to create any of your own files there.
So create another directory somewhere e.g. D:\MYPOP, and after
starting up poplog do this:

    ENTER cd d:\mypop

or whatever. Then if you do

    ENTER ved myfile.p

it will create (or read) the file in the new directory, not where it
might corrupt the poplog system.

I shall copy a modified version of this message to:

    ftp://ftp.cs.bham.ac.uk/pub/dist/poplog/doc/pcwindowspoplog.tips

Which may be extended from time to time.
Later I'll put this in the Pcwindows Poplog tar file.

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   (NB: Anti Spam address)
PAPERS: ftp://ftp.cs.bham.ac.uk/pub/groups/cog_affect/0-INDEX.html