HELP VEDINPUT                                     Aaron Sloman, Apr 1982

    vedinput(CHARACTER or STRING or PROCEDURE);

-vedinput- puts the CHARACTER, STRING or PROCEDURE at the front of the
list -ved_char_in_stream-, which is used by the procedures *VEDINASCII
and *VEDGETINPUT which read characters from the terminal, or from
-ved_char_in_stream- if it is not empty. The effect is that the new
characters are treated as if typed in at the terminal.

If the first element of -ved_char_in_stream- is a procedure then that
procedure will be executed on the next cycle of -vedprocess-. Thus a
program that is about to start VED by running vededitor, and wants an
event to occur as soon as VED has started can do

                     vedinput(<procedure>)

before runing -vededitor-, and the procedure will be run as soon as
-vededitor- gets -vedprocess- going.

If a string is found, then *DATALIST is applied to the string and the
result concatenated with the list. This can be used to define edit
*MACROS. E.g. suppose you frequently wish to do a global substitution
such as the following

    <ENTER> gs/defintion/definition

To avoid having to constantly retype this, you define a new ENTER
command, "ved_gsd", say, as follows.

    define ved_gsd();
        vedinput( veddo(% 'gs/defintion/definition' %) )
    enddefine;

Thereafter all you need type is

    <ENTER> gsd

To see the effect, mark the above procedure, then use the DOIT key
(usually CTRL-D) to load the marked range. Then type

    <ENTER> gsd

The longer command will appear on the command line. It will then be
executed.

Most people will find it more convenient to use the DM command to define
a new VED macro. E.g.

        ENTER dm gsd

See HELP * VEDMACROS for more details.


-- See also ------------------------------------------------------------

HELP * IO           -
    Overview of POPLOG's Input/Output behaviour

REF * VED           
    Overview of documentation on VED

REF * VEDCOMMS
    Documents the VED <ENTER> commands

REF * VEDPROCS      
    Documents VED system procedures

REF * VEDVARS       
    Documents variables associated with VED


--- C.all/help/vedinput ------------------------------------------------
--- Copyright University of Sussex 1992. All rights reserved. ----------
