ecu - SCO XENIX V/{2,3}86 Extended CU part 23/47
Warren Tucker
wht at tridom.uucp
Tue Oct 10 09:37:49 AEST 1989
---- Cut Here and unpack ----
#!/bin/sh
# this is part 23 of a multipart archive
# do not concatenate these parts, unpack them in order with /bin/sh
# file tty.h continued
#
CurArch=23
if test ! -r s2_seq_.tmp
then echo "Please unpack part 1 first!"
exit 1; fi
( read Scheck
if test "$Scheck" != $CurArch
then echo "Please unpack part $Scheck next!"
exit 1;
else exit 0; fi
) < s2_seq_.tmp || exit 1
echo "x - Continuing file tty.h"
sed 's/^X//' << 'SHAR_EOF' >> tty.h
X{
X char *name;
X int num;
X} COLOR;
X
X#ifdef DEFINE_TTY_DATA
XCOLOR colors[] =
X{
X { "black", 0 },
X { "blue", 1 },
X { "brown", 6 },
X { "cyan", 3 },
X { "gray", 8 },
X { "green", 2 },
X { "hi_white", 15 },
X { "lt_blue", 9 },
X { "lt_cyan", 11 },
X { "lt_green", 10 },
X { "lt_magenta", 13 },
X { "lt_red", 12 },
X { "magenta", 5 },
X { "red", 4 },
X { "white", 7 },
X { "yellow", 14 },
X {(char *)0, -1}
X};
X#else
Xextern COLOR colors[];
X#endif
X
X/* color words are ulong:
X MSB: reverse video foreground
X reverse video background
X normal video foreground
X LSB: normal video background
X*/
X
X/* vi: set tabstop=4 shiftwidth=4: */
X/* end of tty.h */
SHAR_EOF
echo "File tty.h is complete"
chmod 0644 tty.h || echo "restore of tty.h fails"
echo "x - extracting utmpstatus.h (Text)"
sed 's/^X//' << 'SHAR_EOF' > utmpstatus.h &&
X/* CHK=0x0570 */
X/*+-------------------------------------------------------------------------
X utmpstatus.h
X Copyright 1989 Warren H. Tucker, III. All Rights Reserved
X--------------------------------------------------------------------------*/
X/*+:EDITS:*/
X/*:07-03-1989-22:57-wht------------- ecu 2.00 ---------------- */
X/*:07-01-1989-13:45-wht-creation */
X
X/* utmp_status defines */
X#define US_NOTFOUND 100 /* not in utmp, or getty dead */
X#define US_LOGIN 101 /* enabled for login, idle */
X#define US_DIALOUT 102 /* enabled for login, currently dialout */
X#define US_LOGGEDIN 103 /* enabled for login, in use */
X
X/* aid for coding */
X#ifdef NEVER
X case US_NOTFOUND: /* not in utmp, or getty dead */
X case US_LOGIN: /* enabled for login, idle */
X case US_DIALOUT: /* enabled for login, currently dialout */
X case US_LOGGEDIN: /* enabled for login, in use */
X#endif
X
X/* vi: set tabstop=4 shiftwidth=4: */
X/* end of utmpstatus.h */
SHAR_EOF
chmod 0644 utmpstatus.h || echo "restore of utmpstatus.h fails"
echo "x - extracting var.h (Text)"
sed 's/^X//' << 'SHAR_EOF' > var.h &&
X/* CHK=0xB789 */
X/*+-------------------------------------------------------------------------
X var.h - ecu user variable declarations
X Copyright 1989 Warren H. Tucker, III. All Rights Reserved
X--------------------------------------------------------------------------*/
X/*+:EDITS:*/
X/*:07-03-1989-22:57-wht------------- ecu 2.00 ---------------- */
X/*:06-24-1989-16:53-wht-flush edits --- ecu 1.95 */
X
X#if !defined(VDECL)
X#define VDECL extern
X#endif
X
X#define SVLEN 256
X#define SVQUAN 50
X#define IVQUAN 50
X
XVDECL ESD *sv[SVQUAN];
XVDECL long iv[SVQUAN];
X
X/* vi: set tabstop=4 shiftwidth=4: */
X/* end of var.h */
SHAR_EOF
chmod 0644 var.h || echo "restore of var.h fails"
echo "x - extracting help/Makefile (Text)"
sed 's/^X//' << 'SHAR_EOF' > help/Makefile &&
X# CHK=0xF7BB
X# Makefile for helpgen (ecu help system)
X#
X#+:EDITS:*/
X#:07-03-1989-22:58-wht------------- ecu 2.00 ----------------
X#:05-08-1989-15:35-wht-creation
X
XSHELL = /bin/sh
X.SUFFIXES: .o .c .h
X.PRECIOUS = lint_args.h
X
XCOMFLAGS = -s
XCFLAGS = -c `sysdep =M_XENIX -Ox -DLINT_ARGS =pyr -O` $(COMFLAGS)
XLDFLAGS = # -m helpgen.map
X
X.PRECIOUS = lint_args.h
X.c.o:; fcrc -u $*.c ; /bin/time cc $(CFLAGS) $*.c
X
XSRC = \
X helpgen.c\
X util.c
X
XOBJ = \
X helpgen.o\
X util.o
X
Xall: helpgen ecuhelp.data # ecuhelp.doc ecuhelp.txt
X
Xhelpgen.fls: $(SRC)
X ls $(SRC) >helpgen.fls
X
Xhelpgen: $(OBJ)
X /bin/time cc $(COMFLAGS) $(OBJ) $(LDFLAGS) -o helpgen
X
Xecuhelp.data: ecuhelp.src helpgen
X helpgen -b
X cp ecuhelp.data /usr/lib/ecu
X
Xecuhelp.doc: ecuhelp.src helpgen
X helpgen -d
X
Xecuhelp.txt: ecuhelp.data helpgen
X helpgen -n
X
Xlint: helpgen.fls
X csh ../zgcc helpgen.fls lint_args.h $(CFLAGS)
X fcrc -u Makefile *.h
X
X#
X# MAKE DEPEND: regenerate .c:.h, .ol:.c, .ol:.asm dependencies automatically
X#
Xdepend:
X rm -f depend.tmp
X if test '$(SRC)' ;\
X then (grep '^#include' $(SRC) \
X | sed -e 's?:[^<]*<\([^>]*\)>.*?: /usr/include/\1?'\
X -e 's?:[^"]*"\([^"]*\)".*?: \1?'\
X -e 's?\(.*\)\.c?\1.o?'\
X >> depend.tmp) ;\
X fi
X
X echo '/^# DO NOT DELETE THIS LINE' >exdep.tmp
X echo '.+1,$$d' >>exdep.tmp
X echo 'r depend.tmp' >> exdep.tmp
X echo 'w' >> exdep.tmp
X cp Makefile Makefile.new
X ex Makefile.new < exdep.tmp
X rm exdep.tmp depend.tmp
X echo '# DEPENDENCIES MUST END AT END OF FILE' >>Makefile.new
X echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY'>>Makefile.new
X echo '# see make depend above'>>Makefile.new
X mv Makefile Makefile.bak
X mv Makefile.new Makefile
X fcrc -u Makefile
X
X# DO NOT DELETE THIS LINE
Xhelpgen.o: /usr/include/stdio.h
Xhelpgen.o: /usr/include/ctype.h
Xhelpgen.o: lint_args.h
Xhelpgen.o: ../ecucmd.h
Xhelpgen.o: ../stdio_lint.h
Xutil.o: lint_args.h
X# DEPENDENCIES MUST END AT END OF FILE
X# IF YOU PUT STUFF HERE IT WILL GO AWAY
X# see make depend above
SHAR_EOF
chmod 0644 help/Makefile || echo "restore of help/Makefile fails"
echo "x - extracting help/ecuhelp.src (Text)"
sed 's/^X//' << 'SHAR_EOF' > help/ecuhelp.src &&
X# ecu help ,source file
X/*+:EDITS:*/
X/*:06-17-1988-11:10-wht-add 'exit' command */
X/*:06-13-1988-15:38-wht-creation */
X#--------------------------------------------------------------------
X%ansi
XUsage: ansi [ on | off ]
X
XThis command controls ecu's ansi filter. MS-DOS-based
Xsystems use non-standard video display control sequences
X(SGR - Set Graphics Rendition). Also, the "Save Cursor
XPosition" and "Restore Cursor Position" sequences supported
Xby MS-DOS are not part of ANSI X3.64, either. When the ansi
Xfilter is on, these nonstandard sequences are emulated (at
Xsome cost in CPU overhead in the receiver process). The
Xfilter state is normally on. When using ecu on
Xcommunications lines running at baud rates above 2400 baud,
Xif you do not need it, you may wish to turn off the filter
Xto increase throughput and reduce CPU overhead. Issuing the
Xcommand with no parameter shows the current filter state.
X#--------------------------------------------------------------------
X%ax
XUsage: ax [<param>]
X
X<param> may be a single ASCII character, a standard ASCII
Xidentifier (such as ETX), or a two-character control
Xcharacter identifier (such as ^C, typed as a caret followed
Xby a C).
X
XIf no parameter is supplied, a table of control characters
Xis printed containing decimal, octal, hex, ASCII identifiers
Xand two-character control character identifier.
X#--------------------------------------------------------------------
X%xa
XUsage: xa [<hex-val>]
X
X<hex-val> is a hexadecimal value between 0 and FF; the
Xparity (sign) bit is stripped and the equivalent ASCII
Xcharacter value is displayed.
X
XIf no parameter is supplied, a table of control characters
Xis printed containing decimal, octal, hex, ASCII identifiers
Xand two-character control character identifier.
X#--------------------------------------------------------------------
X%oa
XUsage: oa [<octal-val>]
X
X<octal-val> is a octal value between 0 and 0377; the parity
X(sign) bit is stripped and the equivalent ASCII character
Xvalue is displayed.
X
XIf no parameter is supplied, a table of control characters
Xis printed containing decimal, octal, hex, ASCII identifiers
Xand two-character control character identifier.
X#--------------------------------------------------------------------
X%da
XUsage: da [<decimal-val>]
X
X<decimal-val> is a decimal value between 0 and 0377; the
Xparity (sign) bit is stripped and the equivalent ASCII
Xcharacter value is displayed.
X
XIf no parameter is supplied, a table of control characters
Xis printed containing decimal, octal, hex, ASCII identifiers
Xand two-character control character identifier.
X#--------------------------------------------------------------------
X%baud
XUsage: baud [<baud-rate>]
X
X<baud-rate>, if specified, must be taken from the values
X110, 300, 600, 1200, 2400, 4800, 9600, 19200 and 38400. On
Xsome systems, 19200 and 38400 may not be supported. If baud
Xrate 110 is selected, 2 stop bits are automatically
Xspecified; other baud rates set 1 stop bit. If <baud-rate>
Xis not supplied, the current baud rate is displayed.
X
XThe setting may be automatically changed as the result of a
X'dial' command. See also the 'dial' and 'parity' command
Xdescriptions.
X#--------------------------------------------------------------------
X%bn
XUsage: bn [ 0 | 1 | 2 ]
X
X"bell notify": This command is only available under XENIX.
XIf no parameter is supplied, the current setting is
Xdisplayed. Specifying 0 disables the facility; 1 causes an
Xaudible alarm to be sounded on all of the XENIX virtual
Xconsoles upon receipt of a bell (0x07) character from the
Xremote system; 2 causes an audible alarm to be sent to all
Xconsoles upon receipt of ANY characters from the remote
Xsystem. A non-zero value also causes an audible alarm to be
Xsent to all console upon the successful completion of a
X'redial' command which must retry more than one redial
Xattempt or upon completion of a file transfer operation.
X
XDifferent alarms are sent depending upon the the type of
Xevent causing the alarms.
X#--------------------------------------------------------------------
X%break
XUsage: break
X
XThis command sends a break signal to the remote system.
X#--------------------------------------------------------------------
X%cd
XUsage: cd [<dir-path>]
X
XThis command allows you to change the working directory of
Xthe ecu process. If <dir-path> is supplied, the previous
Xworking directory is displayed, and <dir-path> is made the
Xnew working directory. A history of previous directory
Xchanges is maintained. Entering the 'cd' command shows the
Xnumbered history list and allows you to select a new
Xdirectory by entering the number. Other commands allow
Xdeletion of directories from the list or saving the list to
Xfile ~/.ecuphone. This file is automatically read at ecu
Xstartup, providing a convenient list of directories
Xavailable for quick selection.
X#--------------------------------------------------------------------
X%dial
XUsage: dial [<dial-param>]
X
X<dial-param> may take one of two forms, a telephone number
Xto dial or a logical name which can be found in the user
Xphone directory (in file ~/.ecuphone).
X
XIf a telephone number is supplied, the phone number is
Xdialed; you must first have set the desired baud rate and
Xparity using the 'baud' and 'parity' commands. If a logical
Xname is entered, the phone directory is searched; if the
Xentry is found, the baud rate and parity is automatically
Xset and the number dialed.
X
XIf <dial-param> is not supplied, then a screen-oriented
Xself- documenting directory manager is executed; you may
Xscan the the directory to select a number to dial, as well
Xas add, remove and edit entries. See also 'baud' and
X'parity'.
X#--------------------------------------------------------------------
X%do
XUsage: do <procname> [<arg> ... ]
X
XPerform ecu procedure. Ecu searches for <procname>.ep in
Xthe current directory. If the file is not found, the program
Xlooks for the file in the ~/.ecu directory. One or more
Xarguments may be passed to the procedure
X#--------------------------------------------------------------------
X%duplex
XUsage: duplex [ Full | Half ]
X
XThis command specifies whether or not ecu is to locally echo
Xcharacters typed by you at the keyboard. The overwhelming
Xmajority of remote systems provide the echo function, in
Xwhich case full duplex must be used. For the rare occasions
Xwhen the remote system does not echo your keyboard input,
Xsetting half duplex will allow you to see what you are
Xtyping.
X
XWhen communicating with another terminal in a "teletype
Xconver- sation", setting half duplex is generally required.
XIn such cases, use of the 'nl', 'nlin' and 'nlout' commands
Xmay also be required.
X
XThe default setting for duplex is full.
X#--------------------------------------------------------------------
X#%esc
X#Usage esc <hex-constant>
X#"command escape ": This command is used only on non-XENIX systems.
X#It specifies the equivalent character for the HOME key used
X#by XENIX versions of ecu to enter the commands being described
X#by this help function. The default setting for this command escape
X#s '%'. To change the value, you must enter the hexadecimal value
X#of the desired character; it must be in the range 01 through 7F.
X#You may use the 'ax' command to aid in converting an ASCII
X#character to the appropriate hexadecimal value.
X#--------------------------------------------------------------------
X%fi
XUsage: fi [<filename>]
X
X"file insert": This command causes file characters to be
Xinserted into the transmit data stream as though they had
Xbeen entered at the keyboard. If <filename> is not entered
Xon the command line, a prompt for the filename is made.
XOnce the filename has been entered and file has been opened,
Xyou are asked whether the file should be transmitted at full
Xspeed or by a single line at a time. Some remote systems
Xare not capable of receiving large amount of data (referred
Xto as "streaming data") without pauses. By speci- fying
Xsingle line transmission, it is possible to increase the
Xlikelihood of proper receipt. Even with "full" speed
Xtransmission, some "pacing" (inter-character delay) is
Xintroduced to ease loading on the remote system. With
X"single" line transmission, you must press the space key to
Xinitiate sending each next line. Pressing the 's' key stops
Xthe transfer. Pressing the interrupt key (DEL) stops a full
Xspeed transmission.
X#--------------------------------------------------------------------
X%fkey
XUsage: fkey [<keyset_name>]
X
XThis command allows the mapping of function keys F1-F12,
XPgUp, PgDn, End and Ins and the cursor up, down, left and
Xright keys to emit a desired sequence of characters when a
Xfunction key is pressed. <keyset_name> specifies which key
Xset in ~/.ecukeys is to be selected: Sample entry in .ecukeys:
X
Xhayes
X F1:escape:+ + +
X F2:autoans:A T S 0 = 1 cr
X F3:dial:A T D T
Xbbs
X F1:cancel:^K
X F2:yes:y cr
X
XIf a keyset_name matches a logical dial directory name, it
Xis loaded when the number is dialed.
X#--------------------------------------------------------------------
X%hangup
XUsage: hangup
X
XThis causes a Hayes modem command sequence to be sent to
Xterminate any outstanding connection (+++, pause, ATH).
X#--------------------------------------------------------------------
X%help
XUsage: help [<cmd-name>]
X
XIssuing this command with no argument displays a list of
Xcommands followed by a request for a command for further
Xinformation.
X#--------------------------------------------------------------------
X%llp
XUsage: llp
X
XThis command is available only in XENIX versions. It is a
Xshorthand version of 'log /dev/lp'. /dev/lp must not be
Xunder the control of a print spooler.
X#--------------------------------------------------------------------
X%loff
XUsage: loff
X
XThis command is shorthand for 'log off'. If session logging
Xis active, it is turned off.
X#--------------------------------------------------------------------
X%log
XUsage: log [-s] [-r] [ | off | filename ]
X -s "scratch" previous file contents; otherwise append
X -r "raw" logging; otherwise non-printable characters
X other than tab and newline are omitted from the log
X
XThis command controls session logging; issuing the command
Xwith no argument causes the status of session logging to be
Xdisplayed. The special argument 'off' causes active logging
Xto be terminated. Other argument values cause logging to
Xstart using the argument as a filename. Issuing a 'log
Xfilename' command when logging is already active causes the
Xprevious file to be closed and the new file to be opened.
XSwitches are meaningful only when used in conjunction with a
Xfilename to start logging.
X#--------------------------------------------------------------------
X%nl
XUsage: nl
X
XDisplay the current setting of CR/LF mapping. For more
Xinformation, refer to the 'nlin' and 'nlout' command
Xdescriptions.
X#--------------------------------------------------------------------
X%nlin
XUsage: nlin [<y-n>]
X
XThis command controls whether or not a newline (NL/LF)
Xcharacter is sent to the screen upon receipt of a carriage
Xreturn (CR) from the remote system. Most remote computers
Xsupply a NL after CR. When communicating with another
Xterminal in a "teletype conversation", this is generally not
Xthe case (see also the 'duplex' command).
X
XIssuing the command without <y-n> causes the current setting
Xto be displayed. The format of <y-n> is flexible: 'y' or
X'1' enables appending NL to CR, 'n' or '0' causes the
Xfeature to be disabled.
X#--------------------------------------------------------------------
X%nlout
XUsage: nlout [<y-n>]
X
XThis command controls whether or not a newline (NL/LF)
Xcharacter is sent to the remote system upon transmission of
Xa carriage return (CR) entered by the keyboard. Most remote
Xcomputers do not require (indeed "dislike") a NL after CR.
XWhen communicating with another terminal in a "teletype
Xconversation", this is generally not the case (see also the
X'duplex' command).
X
XIssuing the command without <y-n> causes the current setting
Xto be displayed. The format of <y-n> is flexible: 'y' or
X'1' enables appending NL to CR, 'n' or '0' causes the
Xfeature to be disabled.
X#--------------------------------------------------------------------
X%parity
XUsage: parity [ None | Even | Odd ]
X
XThis command controls the parity of characters transmitted
Xby the keyboard. Issuing the command with no parameter
Xdisplays the current setting. When the parameter is
Xsupplied, only the first character is required. Even or odd
Xparity implies seven data bits; no parity implies eight data
Xbits. Parity of incoming characters is not checked.
X
XThe setting may be automatically changed as the result of a
X'dial' command. See also the 'baud' and 'dial' command
Xdescriptions.
X#--------------------------------------------------------------------
X%pid
XUsage: pid
X
XThis command displays the process id of the ecu transmitter
Xprocess, the ecu receiver process and the process ids of
Xecu's parent and group.
X#--------------------------------------------------------------------
X%ptrace
XUsage: ptrace [ 0 | 1 | on | off]
X
XThis command controls whether or not procedure execution is
Xto be traced.
X#--------------------------------------------------------------------
X%pwd
XUsage: pwd
X
XThis command prints the current working directory of the ecu
Xprocess.
X#--------------------------------------------------------------------
X%rk
XUsage: rk
X
XThis command searches the PATH list for 'ckermit' (Columbia
XUniversity C-Kermit) and invokes it to receive files.
X
XThe file ~/.kermrc must be set up to have any desired
Xinitialization paraeters you desire. Refer to C-Kermit
Xdocumentation for more information.
X#--------------------------------------------------------------------
X%rs
XUsage: rs
X
XThis command invokes a SEAlink receive protocol.
X#--------------------------------------------------------------------
X%redial
XUsage: redial [<retry-count> [<pause-interval>]]
X
XThis command redials a number previously dialed with the
X'dial' command. Under non-XENIX versions, one dial attempt
Xis made. Under XENIX versions, modem status is tested and
Xmultiple retries may be made. <retry-count> specifies how
Xmany retries are to be made. <pause-interval> specifies how
Xmany seconds the program pauses after a failure to connect.
XYou must specify <retry-count> in order to specify
X<pause-interval>. The default value for <retry-count> is
X10, for <pause-interval> is 15.
X
XYou should know that in some jurisdictions, it is ILLEGAL to
Xdial the same telephone number more than a specified number
Xof times during some interval of time. In any case,
Xspecifying <pause-interval> less than 15 seconds is silently
Xchanged to 15 seconds.
X#--------------------------------------------------------------------
X%rev
XUsage: rev
X
XThis command displays ecu's revision, the transmitter,
Xreceiver, parent and group process ids and the date and time
Xecu was made.
X#--------------------------------------------------------------------
X%rx
XUsage: rx
X
XThis command invokes a modified version of Chuck Forsberg's
Xrz program (version 1.31) to receive files from the remote
Xsystem using XMODEM/CRC.
X
XAfter entering the command, you are prompted as to whether
Xor not file CR/LF characters are to be converted to
Xnewlines. If you are transferring text files from a system
Xwhich contain CR/LF line termi- nators, you must answer yes
Xto this question. You should answer no when transferring
Xbinary files, such as executables, .arc files and the like.
XFile transfer progress is presented on a visual display. To
Xabort the transfer, press your interrupt key (usually DEL
Xunless reset with stty(C)).
X#--------------------------------------------------------------------
X%ry
XUsage: ry
X
XThis command invokes a modified version of Chuck Forsberg's
Xrz program (version 1.31) to receive files from the remote
Xsystem using YMODEM batch with CRC-16 error correction. The
XYMODEM is "true YMODEM", not XMODEM-1k. File transfer
Xprogress is presented on a visual display. To abort the
Xtransfer, press your interrupt key (usually DEL unless reset
Xwith stty(C)).
X#--------------------------------------------------------------------
X%rz
XUsage: rz
X
XThis command invokes a modified version of Chuck Forsberg's
Xrz program (version 1.44) to receive files from the remote
Xsystem using ZMODEM/CRC32. File transfer progress is
Xpresented on a visual display. To abort the transfer, press
Xyour interrupt key (usually DEL unless reset with stty(C)).
X#--------------------------------------------------------------------
X%sk
XUsage: sk [<file-list>]
X
XThis command searches the PATH list for 'ckermit' (Columbia
XUniversity C-Kermit) and invokes it to send files. The file
X~/.kermrc must be set up to have any desired initialization
Xparaeters you desire.
X
XAfter entering the command, you are prompted as to whether
Xor not file newline characters are to be converted to CR/LF.
XIf you are transferring text files to a system which
Xrequires CR/LF line terminators, you must answer yes to this
Xquestion. You should answer no when transferring binary
Xfiles, such as executables, .arc files and the like. You
Xare prompted to enter a list of files to send, which may
Xcontain one or more wildcard specifications.
X
XThe file ~/.kermrc must be set up to have any desired
Xinitialization parameters you desire. Refer to C-Kermit
Xdocumentation for more information.
X#--------------------------------------------------------------------
X%ss
XUsage: ss [<file-list>]
X
XThis command invokes a SEAlink file transmission protocol.
X#--------------------------------------------------------------------
X%stat
XUsage: stat
X
XThis command, available only in XENIX versions, displays
Xstatistics about ecu usage.
X
XExample display when not connected to a remote system:
XDate/time: 06-14-1988 11:40:35 (UTC 15:40)
XTotal chars transmitted: 178
XTotal chars received: 3681
X
XDate/time: 06-14-1988 14:41:24 (UTC 18:41)
XConnected to CompuHost (555-1234) at 14:40:57
XParameters: 2400-N-1 Connect time: 00:01:27
XTotal chars transmitted: 234 (since CONNECT 142)
XTotal chars received: 2278 (since CONNECT 1478)
X#--------------------------------------------------------------------
X%sx
XUsage: sx [<file-name>]
X
XThis command invokes a modified version of Chuck Forsberg's
Xsz program (version 1.44) to send a file to the remote
Xsystem using XMODEM/CRC.
X
XAfter entering the command, you are prompted as to whether
Xor not file CR/LF characters are to be converted to
Xnewlines. If you are transferring text files from a system
Xwhich contain CR/LF line termi- nators, you must answer yes
Xto this question. You should answer no when transferring
Xbinary files, such as executables, .arc files and the like.
X
XYou are prompted to enter a filename to send. File transfer
Xprogress is presented on a visual display. To abort the
Xtransfer, press your interrupt key (usually DEL unless reset
Xwith stty(C)).
X#--------------------------------------------------------------------
X%sy
XUsage: sy [<file-list>]
X
XThis command invokes a modified version of Chuck Forsberg's
Xsz program (version 1.44) to send file(s) to the remote
Xsystem using YMODEM/CRC.
X
XYou are prompted to enter filename(s) to send, which may
Xconsist of one or more wildcard specifications. File
Xtransfer progress is presented on a visual display. To
Xabort the transfer, press your interrupt key (usually DEL
Xunless reset with stty(C)).
X#--------------------------------------------------------------------
X%sz
XUsage: sz [<file-list>]
X
XThis command invokes a modified version of Chuck Forsberg's
Xsz program (version 1.44) to send file(s) to the remote
Xsystem using ZMODEM/CRC32.
X
XYou are prompted to enter filename(s) to send, which may
Xconsist of one or more wildcard specifications. File
Xtransfer progress is presented on a visual display. To
Xabort the transfer, press your interrupt key (usually DEL
Xunless reset with stty(C)).
X
XNote: if you specify sending only newer files and the remote
Xreceiver does not support the feature, it may skip (reject)
Xall your files. Retry the transfer specifying 'N' to
X'Transfer only newer files'.
X#--------------------------------------------------------------------
X%time
XUsage: time
X
XThis command displays the local date and time as well as the
Xcurrent UTC.
X#--------------------------------------------------------------------
X%tty
XUsage: tty
X
XThis command displays the current console tty name.
X#--------------------------------------------------------------------
X%exit
XUsage: exit
X
XThis command terminates ecu promptly. If your modem does
Xnot drop carrier upon loss of Data Terminal Ready (DTR), you
Xmust use the 'hangup' command prior to issuing the 'exit'
Xcommand. It is strongly recommended that you configure your
Xmodem to hang up the phone line when DTR drops. A shorthand
Xversion of this command exists: '.' is equivalent to 'exit'.
X#--------------------------------------------------------------------
X%!
XUsage: !
X !<command>
X
XThe '!' command is a shell escape. The environment variable
XSHELL is read to determine what shell program to execute
X(e.g., /bin/sh, etc). If '!' is entered by itself, an
Xinteractive shell is started; press ^D to exit back to ecu.
XIf <command> is supplied, it is executed by the shell with
Xan immediate return to ecu.
X#--------------------------------------------------------------------
SHAR_EOF
chmod 0644 help/ecuhelp.src || echo "restore of help/ecuhelp.src fails"
echo "x - extracting help/helpgen.c (Text)"
sed 's/^X//' << 'SHAR_EOF' > help/helpgen.c &&
X/* CHK=0x9C49 */
X/*+-------------------------------------------------------------------------
X helpgen.c -- ecu command help file maker
X Copyright 1986,1989 Warren H. Tucker, III. All Rights Reserved
X
X Defined functions:
X build_ecudoc()
X build_ecuhelp()
X main(argc,argv,envp)
X search_cmd_list(cmd)
X show_cmds()
X test_help()
X to_lower(ch)
X to_upper(ch)
X usage()
X
X--------------------------------------------------------------------------*/
X/*+:EDITS:*/
X/*:07-03-1989-22:58-wht------------- ecu 2.00 ---------------- */
X/*:11-07-1988-13:58-wht-source control point 1.30 */
X/*:10-24-1988-16:50-wht-works under BSD4 again (mostly)! */
X/*:06-14-1988-16:06-wht-program now multi-purpose */
X/*:06-13-1988-13:46-wht-creation */
X
X#include <stdio.h>
X#include <ctype.h>
X#include "lint_args.h"
X
X#if defined(M_XENIX)
X#if !defined(LINT_ARGS)
X#define LINT_ARGS
X#endif
X#endif
X
X#define DECLARE_P_CMD
X#define HELPGEN
X#include "../ecucmd.h"
X
X#include "../esd.h"
X#include "../stdio_lint.h"
X
X#define PSRC "ecuhelp.src"
X#define PDAT "ecuhelp.data"
X#define PDOC "ecuhelp.doc"
X#define PTXT "ecuhelp.txt"
X#define PFITXT "../doc/ecufi.txt"
X#define PFSTXT "../doc/ecufs.txt"
X
Xlong start_pos[TOKEN_QUAN];
Xint token_line[TOKEN_QUAN];
XFILE *fpsrc; /* help source file */
XFILE *fpdat; /* help data file */
XFILE *fpdoc; /* help doc file */
XFILE *fptxt; /* help nroff file */
XP_CMD *pcmd;
Xint src_line = 0;
Xchar buf[128];
X
X/*+-------------------------------------------------------------------------
X usage()
X--------------------------------------------------------------------------*/
Xusage()
X{
X fprintf(stderr,"usage: helpgen [-b] [-d] [-s] [-t]\n");
X fprintf(stderr," -b build %s from %s\n",PDAT,PSRC);
X fprintf(stderr," -d build %s from %s\n",PDOC,PDAT);
X fprintf(stderr," -n build nroff %s from %s\n",PTXT,PDAT);
X fprintf(stderr," -s show list of commands\n");
X fprintf(stderr," -t test help\n");
X fprintf(stderr,"At least one switch must be issued. They are executed\n");
X fprintf(stderr,"in the order shown on the usage line.\n");
X exit(1);
X} /* end of usage */
X
X/*+-------------------------------------------------------------------------
X search_cmd_list(cmd)
X--------------------------------------------------------------------------*/
XP_CMD *
Xsearch_cmd_list(cmd)
SHAR_EOF
echo "End of part 23"
echo "File help/helpgen.c is continued in part 24"
echo "24" > s2_seq_.tmp
exit 0
--
-------------------------------------------------------------------
Warren Tucker, Tridom Corporation ...!gatech!emory!tridom!wht
Ker-au'-lo-phon. An 8-foot partial flue-stop, having metal pipes
surmounted by adjustable rings, and with a hole bored near the top
of each pipe, producing a soft and "reedy" tone.
More information about the Alt.sources
mailing list