home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume12 / ecuman2.80 / part02 < prev    next >
Text File  |  1990-05-11  |  54KB  |  2,231 lines

  1. Newsgroups: comp.sources.misc
  2. subject: v12i084: ECU 2.80 manual part 02/03
  3. from: wht%n4hgf@gatech.edu (Warren Tucker)
  4. Sender: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  5.  
  6. Posting-number: Volume 12, Issue 84
  7. Submitted-by: wht%n4hgf@gatech.edu (Warren Tucker)
  8. Archive-name: ecuman2.80/part02
  9.  
  10. ---- Cut Here and unpack ----
  11. #!/bin/sh
  12. # this is ecuman280.02 (part 2 of ecuman280)
  13. # do not concatenate these parts, unpack them in order with /bin/sh
  14. # file doc/ecu.man continued
  15. #
  16. if touch 2>&1 | fgrep '[-amc]' > /dev/null
  17.  then TOUCH=touch
  18.  else TOUCH=true
  19. fi
  20. if test ! -r @shar_seq_.tmp; then
  21.     echo "Please unpack part 1 first!"
  22.     exit 1
  23. fi
  24. (read Scheck
  25.  if test "$Scheck" != 2; then
  26.     echo "Please unpack part $Scheck next!"
  27.     exit 1
  28.  else
  29.     exit 0
  30.  fi
  31. ) < @shar_seq_.tmp || exit 1
  32. echo "x - Continuing file doc/ecu.man"
  33. sed 's/^X//' << 'SHAR_EOF' >> doc/ecu.man &&
  34. X
  35. X
  36. X
  37. X    5.41  SZ : send via    ZMODEM/CRC32
  38. X
  39. X    usage: sz [<file-list>]
  40. X
  41. X
  42. X    This command invokes ecusz to send file(s) to the  remote  system  using
  43. X    ZMODEM/CRC32.
  44. X
  45. X    You    are prompted to    enter filename(s) to send, which may consist of     one
  46. X    or more wildcard specifications.  File transfer progress is    presented on
  47. X    a visual display.  To abort     the  transfer,     press    your  interrupt     key
  48. X    (usually DEL unless    reset with stty(C)).
  49. X
  50. X    Note: if you specify sending only newer files and  the  remote  receiver
  51. X    does  not  support    the  feature,  it  may skip (reject) all your files.
  52. X    Retry the transfer specifying 'N' to 'Transfer only    newer files'.
  53. X
  54. X
  55. X
  56. X
  57. X
  58. X
  59. X
  60. X
  61. X
  62. X
  63. X
  64. X
  65. X
  66. X    Public Domain by wht@n4hgf          5/7/90
  67. X
  68. X
  69. X
  70. X
  71. X
  72. X
  73. X
  74. X    ECU    Technical Description                      30
  75. X
  76. X
  77. X
  78. X    |                                     |
  79. X    |  File(s) to send:                             |
  80. X    |  ckermit-5a-130                             |
  81. X    |                                     |
  82. X    |  Binary: Y (no NL-CR/LF translation)                 |
  83. X    |  Overwrite destination files: Y                     |
  84. X    |  Send full pathames:  N                         |
  85. X    |  Transfer    only newer files: N                     |
  86. X    |                                     |
  87. X    |      TAB:next  ^B:prev  END:perform transfer  ESC:abort         |
  88. X    `--    enter file(s) to send ---------------------------------------'
  89. X    `--    Y: no conversion, N: NLs converted to CR/LF -----------------'
  90. X    `--    Y: overwrite, N: protect destination files ------------------'
  91. X    `--    Y: full    pathnames, N: strip directory portion from names ----'
  92. X    `--    Y: send    only if    source newer than destination, N send all ---'
  93. X
  94. X
  95. X
  96. X    5.42  TIme : time of day
  97. X
  98. X    usage: time
  99. X
  100. X
  101. X    This command displays the local date and time as  well  as    the  current
  102. X    UTC.
  103. X
  104. X
  105. X    5.43  TTy :    console    tty name
  106. X
  107. X    usage: tty
  108. X
  109. X
  110. X    This command displays the current console tty name.
  111. X
  112. X
  113. X
  114. X    5.44  XA : hex to ascii char
  115. X
  116. X    usage: xa [<hex-val>]
  117. X
  118. X
  119. X    <hex-val> is a hexadecimal value between 0 and FF; the parity (sign) bit
  120. X    is stripped    and the    equivalent ASCII character value is displayed.
  121. X
  122. X    If no argument is supplied,    a table    of  control  characters     is  printed
  123. X    containing    decimal,  octal,  hex,    ASCII  identifiers and two-character
  124. X    control character identifier.
  125. X
  126. X
  127. X
  128. X
  129. X
  130. X
  131. X
  132. X    Public Domain by wht@n4hgf          5/7/90
  133. X
  134. X
  135. X
  136. X
  137. X
  138. X
  139. X
  140. X    ECU    Technical Description                      31
  141. X
  142. X
  143. X
  144. X    5.45  ! : execute shell
  145. X
  146. X    usage: !
  147. X       !<command>
  148. X
  149. X
  150. X    The    '!' command is a shell escape.    The environment     variable  SHELL  is
  151. X    read  to  determine     what shell program to execute (e.g., /bin/sh, etc).
  152. X    If '!' is entered by itself, an interactive    shell is started;  press  ^D
  153. X    to    exit  back  to ECU.  If    <command> is supplied, it is executed by the
  154. X    shell with an immediate return to ECU.
  155. X
  156. X
  157. X
  158. X
  159. X
  160. X
  161. X
  162. X
  163. X
  164. X
  165. X
  166. X
  167. X
  168. X
  169. X
  170. X
  171. X
  172. X
  173. X
  174. X
  175. X
  176. X
  177. X
  178. X
  179. X
  180. X
  181. X
  182. X
  183. X
  184. X
  185. X
  186. X
  187. X
  188. X
  189. X
  190. X
  191. X
  192. X
  193. X
  194. X
  195. X
  196. X
  197. X
  198. X    Public Domain by wht@n4hgf          5/7/90
  199. X
  200. X
  201. X
  202. X
  203. X
  204. X
  205. X
  206. X    ECU    Technical Description                      32
  207. X
  208. X
  209. X
  210. X    6.    Procedure Language
  211. X
  212. X
  213. X    Sample procedures are shown    in the companion document 'samplproc.man'.
  214. X
  215. X
  216. X
  217. X    6.1     Arguments
  218. X
  219. X
  220. X    There are five types of arguments to procedure commands:
  221. X
  222. X     Switch
  223. X     Alphabetic Token
  224. X     Integer
  225. X     String
  226. X     Relational Operators
  227. X
  228. X    This section describes the syntax and construction of each type in turn.
  229. X    There  are separate    groups of valid    of relational operators    for integers
  230. X    and    strings; thus, they are    described under    the appropriate    sections.
  231. X
  232. X
  233. X    6.1.1  Switches
  234. X
  235. X    Switch arguments begin with    a hyphen (minus, '-').    The switch  argument
  236. X    must  be the first argument    after the command.  Only one switch argument
  237. X    is allowed on the command line.  If    switches '-a', '-b'  and  '-c',     are
  238. X    available and '-a' and '-b'    are desired, '-ab' or '-ba' is entered.
  239. X
  240. X
  241. X    6.1.2  Alphabetic Tokens
  242. X
  243. X    Alphabetic tokens, for lack    of a  better  term,  are  non-integer,    non-
  244. X    quoted terms used as arguments for certain commands, such as:
  245. X
  246. X     plog off
  247. X
  248. X    Such argument types    are fairly simple to understand    and  use;  they     are
  249. X    described here for completeness.
  250. X
  251. X
  252. X    6.1.3  Integers
  253. X
  254. X    Integer values are 32-bit quantities  ranging  between  -2147483647     and
  255. X    2147483647.
  256. X
  257. X    In one case, an integer  is     used  to  store  a  32-bit  color  mask  as
  258. X    described by the color command and the %colors integer function.
  259. X
  260. X
  261. X
  262. X
  263. X
  264. X    Public Domain by wht@n4hgf          5/7/90
  265. X
  266. X
  267. X
  268. X
  269. X
  270. X
  271. X
  272. X    ECU    Technical Description                      33
  273. X
  274. X
  275. X
  276. X    6.1.3.1  Constants
  277. X
  278. X    Integer constants are numeric strings, optionally with an initial  minus
  279. X    sign, the absolue value of which must be less than 2147483648.
  280. X
  281. X
  282. X    6.1.3.2  Variables
  283. X
  284. X    There are 50 numbered, permanent integer  variables     referenced  by     the
  285. X    terms  '$i0'  through  '$i49'.   When  ECU is started, the value of    each
  286. X    variable is    zero.  Variables retain     their    value  until  changed,    even
  287. X    between  procedure    executions.   The  integer  variable  number  may be
  288. X    expressed as  an  expression  by  enclosing     an  integer  expression  in
  289. X    brackets.  For instance:
  290. X
  291. X     $i[4+5]      refers to    $i9
  292. X
  293. X     $i2=5
  294. X     $i[20+$i2]   refers to    $i25
  295. X
  296. X
  297. X    Integer variables may be created for use  as  "local"  variables  or  to
  298. X    promote code readability.  Refer to    the mkvar command.
  299. X
  300. X
  301. X    6.1.3.3  Functions
  302. X
  303. X    ECU    has many built-in functions  which  return  the     value    of  ecu-  or
  304. X    system-related  information.  A list of the    functions appears in a later
  305. X    section.
  306. X
  307. X
  308. X    6.1.3.4  Expressions
  309. X
  310. X    In almost any place    an integer argument is allowed,    an expression may be
  311. X    supplied.    Expressions are    composed of two    or more    integer    constants or
  312. X    variables separated    by operators from the group:
  313. X
  314. X    +     addition
  315. X    -     subtraction
  316. X    *     multiplication
  317. X    /     division
  318. X    |     OR
  319. X    @     MOD
  320. X    ^     XOR
  321. X    &     AND
  322. X
  323. X    Evaluation    of  expressions     is  left-to-right.   Parentheses  are     not
  324. X    allowed.
  325. X
  326. X
  327. X
  328. X
  329. X
  330. X    Public Domain by wht@n4hgf          5/7/90
  331. X
  332. X
  333. X
  334. X
  335. X
  336. X
  337. X
  338. X    ECU    Technical Description                      34
  339. X
  340. X
  341. X
  342. X    6.1.3.5  Relational    Operators
  343. X
  344. X    Integer relational operators are chosen from the following group:
  345. X
  346. X     =     "is equal to"
  347. X     ==     "is equal to"
  348. X     !=     "is not equal to"
  349. X     <>     "is not equal to"
  350. X     >     "is greater than"
  351. X     <     "is greater than"
  352. X     >=     "is greater than or equal to"
  353. X     <=     "is less than or equal    to"
  354. X
  355. X
  356. X
  357. X    6.1.4  Strings
  358. X
  359. X    Strings are    classic    concatenations of zero or more eight-bit characters.
  360. X    In general,    the maximum size of a string used by ECU is 256    characters.
  361. X
  362. X
  363. X    6.1.4.1  Constants
  364. X
  365. X    String constants are formed    by placing alphanumeric     characters  between
  366. X    single quote characters (apostrophes).  The    backslash ('\')    character is
  367. X    used to "escape" certains characters:
  368. X
  369. X    '\'    one backslash
  370. X    '0   newline
  371. X    ''   tab
  372. X    '''   apostrophe
  373. X
  374. X
  375. X
  376. X    6.1.4.2  Variables
  377. X
  378. X    There are 50 numbered, permanent  string  variables     referenced  by     the
  379. X    terms  '$s0'  through  '$s49',  each  possessing a maximum length of 256
  380. X    characters When ECU    is started, the    value of each variable is null (zero
  381. X    length).   Variables  retain  their     value    until  changed,    even between
  382. X    procedure executions.  The string variable number may be expressed as an
  383. X    expression by enclosing an string expression in brackets.  For instance:
  384. X
  385. X     $s[4+5]      refers to    $s9
  386. X
  387. X     $s2=5
  388. X     $s[20+$s2]   refers to    $s25
  389. X
  390. X
  391. X    String variables may be created for     use  as  "local"  variables  or  to
  392. X    promote code readability.  Refer to    the mkvar command.
  393. X
  394. X
  395. X
  396. X    Public Domain by wht@n4hgf          5/7/90
  397. X
  398. X
  399. X
  400. X
  401. X
  402. X
  403. X
  404. X    ECU    Technical Description                      35
  405. X
  406. X
  407. X
  408. X    6.1.4.3  Functions
  409. X
  410. X    ECU    has many built-in functions  which  return  the     value    of  ecu-  or
  411. X    system-related  information.  A list of the    functions appears in a later
  412. X    section.
  413. X
  414. X
  415. X    6.1.4.4  Expressions
  416. X
  417. X    String expressions are formed by the concatenation of string  constants,
  418. X    variables and function return values using the '+' operator:
  419. X
  420. X    Example:
  421. X       'The quick brown    fox jumped over    the '+$s0'+' dog at '+%time
  422. X
  423. X
  424. X
  425. X    6.1.4.5  Relational    Operators
  426. X
  427. X    String relational operators    are chosen from    the following group:
  428. X
  429. X     =     "is equal to"
  430. X     ==     "is equal to"
  431. X     !=     "is not equal to"
  432. X     <>     "is not equal to"
  433. X
  434. X
  435. X
  436. X
  437. X    6.2     Commands
  438. X
  439. X
  440. X
  441. X    6.2.1  baud
  442. X
  443. X    usage: baud    <baud-int>
  444. X
  445. X    This command sets the baud rate for     the  attached    line.    The  integer
  446. X    argument  <baud-int>  must    be  one     of 110, 300, 600, 1200, 2400, 4800,
  447. X    9600, 19200    and 38400.
  448. X
  449. X    Example:
  450. X    baud 9600
  451. X    set $i0=2400; baud $i0
  452. X
  453. X
  454. X
  455. X    6.2.2  break
  456. X
  457. X    usage: break
  458. X
  459. X
  460. X
  461. X
  462. X    Public Domain by wht@n4hgf          5/7/90
  463. X
  464. X
  465. X
  466. X
  467. X
  468. X
  469. X
  470. X    ECU    Technical Description                      36
  471. X
  472. X
  473. X
  474. X    This command is used inside    a whilei or  whiles  compound  statement  to
  475. X    exit the loop.
  476. X
  477. X    Example:
  478. X
  479. X    whilei 1=1 #forever unless break command executed
  480. X    {
  481. X        echo -n 'Answer yes    or no: '
  482. X        set    $s0=%cgets # get answer
  483. X        ifi    %instr($s0,'y')    == 0 set $i0 = 1; break
  484. X        ifi    %instr($s0,'n')    == 0 set $i0 = 0; break
  485. X        # got neither 'y' nor 'n' ... keep trying
  486. X    }
  487. X    # now $i0 = 1 if yes, 0    if no
  488. X
  489. X
  490. X    NOTE: further examples of break usage may be found in  the    example     for
  491. X    the    else command.
  492. X
  493. X
  494. X    6.2.3  cd
  495. X
  496. X    usage: cd <directory-path>
  497. X
  498. X    This command  changes  ECU's  current  working  directory.     The  string
  499. X    argument   <directory-path>      may    contain      any    directory   pathname
  500. X    specification legal    to  be    submitted  to  the  shell  csh.      Wild    card
  501. X    characters    may  be     used,    provided  the  expansion  produces  only one
  502. X    pathname.
  503. X
  504. X
  505. X    Example:
  506. X
  507. X    cd '~user/bin'
  508. X    cd %envvar('HOME')+'/bin'
  509. X
  510. X
  511. X
  512. X    6.2.4  clrx
  513. X
  514. X    usage: clrx
  515. X
  516. X    This  command  clears   the     attached  line's  transmitter    XOFF  state.
  517. X    Issuing  the  command  is  the  equivalent    to receiving an    XON from the
  518. X    remote system.
  519. X
  520. X
  521. X    6.2.5  cls
  522. X
  523. X    usage: cls
  524. X
  525. X
  526. X
  527. X
  528. X    Public Domain by wht@n4hgf          5/7/90
  529. X
  530. X
  531. X
  532. X
  533. X
  534. X
  535. X
  536. X    ECU    Technical Description                      37
  537. X
  538. X
  539. X
  540. X    This command clears    the screen.
  541. X
  542. X
  543. X    6.2.6  color
  544. X
  545. X
  546. X    usage: color <normal-foreground> [<normal-background>]
  547. X    usage: color -r <reverse-foreground> [<reverse-background>]
  548. X
  549. X
  550. X    This command changes the current normal or reverse    video  colors  in  a
  551. X    manner  similar to the setcolor(C) command.     It has    no effect on systems
  552. X    using a  monochrome     monitor.   If    the  second  (background)  color  is
  553. X    omitted, it    is assumed to be black.
  554. X
  555. X    The    command    also forces normal video mode.    Refer  to  the    vidnorm     and
  556. X    vidrev commands.  Refer also to the    vidcolor command.
  557. X
  558. X
  559. X    Color names
  560. X       blue     magenta      brown     black
  561. X       lt_blue     lt_magenta   yellow     gray
  562. X       cyan     white          green     red
  563. X       lt_cyan     hi_white     lt_green     lt_red
  564. X
  565. X    Example:
  566. X
  567. X    color lt_green    # normal video light green on black
  568. X    color -r red white # reverse video red on white
  569. X
  570. X
  571. X
  572. X    6.2.7  continue
  573. X
  574. X    usage: continue
  575. X
  576. X    This command is used inside    a whilei or  whiles  compound  statement  to
  577. X    skip the remainder of any commands in the loop and continue    execution at
  578. X    the    first command in the loop.
  579. X
  580. X
  581. X
  582. X
  583. X
  584. X
  585. X
  586. X
  587. X
  588. X
  589. X
  590. X
  591. X
  592. X
  593. X
  594. X    Public Domain by wht@n4hgf          5/7/90
  595. X
  596. X
  597. X
  598. X
  599. X
  600. X
  601. X
  602. X    ECU    Technical Description                      38
  603. X
  604. X
  605. X
  606. X    Example:
  607. X
  608. X    send ''    # send ENTER to    get prompt
  609. X    whilei 1=1 # forever unless break command executed
  610. X    {
  611. X        lookfor -e 'login: ' # look    for login prompt
  612. X        ifi    $i0 == 0     # if we dont get prompt ...
  613. X        {
  614. X        send ''         # send    ENTER again
  615. X        continue     # and look for    login prompt
  616. X        }
  617. X        send $s_name     # send    username
  618. X        lookfor -e 'Password:'
  619. X        send $s_password
  620. X        get    -e 0 50         # wait    10 seconds for response
  621. X
  622. X        # if incorrect not found in    response, ...
  623. X        if %instr($s0,'incorrect') < 0 # ... must have won
  624. X        break
  625. X
  626. X        # garbled line?: system will send another 'login: '
  627. X    }
  628. X
  629. X
  630. X
  631. X    NOTE: further examples of continue usage may be found in the example for
  632. X    the    else command.
  633. X
  634. X
  635. X    6.2.8  cursor
  636. X
  637. X    usage: cursor <row>    [<col>]
  638. X
  639. X    This command places    the cursor at a     specified  position  on  the  video
  640. X    screen.  The top left of the scrren    is row 0, column 0.  If    <col> is not
  641. X    specified, it is assumed 0 (left margin).
  642. X
  643. X    Example:
  644. X
  645. X    cls
  646. X    $i0 = 5
  647. X    whilei $i5 < 12
  648. X    {
  649. X        cursor $i5
  650. X        echo 'This is line '+%itos($i5,2d)+' of the    display'
  651. X    }
  652. X
  653. X
  654. X
  655. X
  656. X
  657. X
  658. X
  659. X
  660. X    Public Domain by wht@n4hgf          5/7/90
  661. X
  662. X
  663. X
  664. X
  665. X
  666. X
  667. X
  668. X    ECU    Technical Description                      39
  669. X
  670. X
  671. X
  672. X    6.2.9  delline
  673. X
  674. X    usage: delline
  675. X
  676. X    This command deletes the current line from the video display.
  677. X
  678. X
  679. X    6.2.10  dial
  680. X
  681. X    usage: dial    <remote>
  682. X
  683. X    This command causes    an outgoing call to be placed.    The string  argument
  684. X    <remote>  can  take     one  of two forms: a numeric telephone    number or an
  685. X    alphanumeric "logical" number or system name.
  686. X
  687. X    A numeric phone number ('1(800)555-1212' or    '2345678') must    begin with a
  688. X    digit and must consist entirely of digits, parentheses or hyphens.    If a
  689. X    telephone number is    supplied, the phone number is dialed; you must first
  690. X    have  set the desired baud rate and    parity using the 'baud'    and 'parity'
  691. X    commands.
  692. X
  693. X    If a logical name is  entered,  the     phone    directory  (managed  by     the
  694. X    interactive     dial  command)    is searched; if    the entry is found, the    baud
  695. X    rate and parity is automatically set from values in    the directory entry;
  696. X    then, the number in    the directory entry is dialed.
  697. X
  698. X    When the dial command returns, integer variable $i0    is set to  a  status
  699. X    code and string variable $s0 has a text message (the modem verbal result
  700. X    code if the    ecu dialer is used, a representation of     the  return  status
  701. X    code if a uucp dialer is used [see below]).
  702. X
  703. X    Dial Command $i0 Status Codes
  704. X
  705. X    0  successful connect
  706. X    1  failed to connect (call progress)
  707. X    2  dial    interrupted by signal
  708. X    3  modem error (non responsive or commands rejected)
  709. X
  710. X
  711. X
  712. X
  713. X
  714. X
  715. X
  716. X
  717. X
  718. X
  719. X
  720. X
  721. X
  722. X
  723. X
  724. X
  725. X
  726. X    Public Domain by wht@n4hgf          5/7/90
  727. X
  728. X
  729. X
  730. X
  731. X
  732. X
  733. X
  734. X    ECU    Technical Description                      40
  735. X
  736. X
  737. X
  738. X    Dial Command $s0 Status Messages (uucp dialer)
  739. X
  740. X    CONNECT    ####           #### = baud rate
  741. X    BUSY               only some modems
  742. X    NO ANSWER           only some modems
  743. X    NO CARRIER           most generic "fail to connect"
  744. X    NO DIAL    TONE           only some modems
  745. X    !Connect bad baud rate modem reported different    rate
  746. X    !Interrupted           call interrupted    by signal
  747. X    !Invalid arguments     ecu error
  748. X    !Invalid phone number  too long    or bad characters
  749. X    !Ioctl error           should not be reported here
  750. X    !Line in use           should not be reported here
  751. X    !Line open error       should not be reported here
  752. X    !Modem Error           modem did not respond
  753. X
  754. X    Note: if the ecu dialer is used, the actual    modem result code
  755. X    is returned    in $s0 or one of the following two strings:
  756. X
  757. X    !Interrupted           call interrupted    by signal
  758. X    !Modem Error           modem did not respond
  759. X
  760. X
  761. X
  762. X    6.2.11  do
  763. X
  764. X    usage: do <procname> [<arg>    ...]
  765. X
  766. X    This command executes a procedure whose name appears  as  the  command's
  767. X    first (string) argument.  One or more arguments (up    to 19) may be passed
  768. X    to the called procedure; an    argument may consist  of  any  valid  string
  769. X    expression,    provided, that,    when expanded,    the argument does not exceed
  770. X    256    characters in length.
  771. X
  772. X    The    called procedure may read  its    arguments  using  the  %argv  string
  773. X    function.    %argv(0)  is  the  name     of  the procedure.  The quantity of
  774. X    arguments may be obtained using the    %argc integer function.
  775. X
  776. X
  777. X    Example:
  778. X
  779. X    do 'proc' %rname %date+' '+%time %argv(0)
  780. X
  781. X    Note: in this example, the called procedure    is passed the name
  782. X    of the calling procedure as    the last argument.
  783. X
  784. X
  785. X
  786. X    6.2.12  duplex
  787. X
  788. X
  789. X
  790. X
  791. X
  792. X    Public Domain by wht@n4hgf          5/7/90
  793. X
  794. X
  795. X
  796. X
  797. X
  798. X
  799. X
  800. X    ECU    Technical Description                      41
  801. X
  802. X
  803. X
  804. X    usage: duplex full | half
  805. X       duplex 'full' | 'half'
  806. X
  807. X
  808. X    This command specifies whether or not ecu is to locally echo  characters
  809. X    typed  by  you  at    the  keyboard.     The overwhelming majority of remote
  810. X    systems provide the    echo function, in which    case  full  duplex  must  be
  811. X    used.   For    the rare occasions when    the remote system does not echo    your
  812. X    keyboard input, setting half duplex    will allow you to see what  you     are
  813. X    typing.
  814. X
  815. X    When communicating with another terminal in    a  "teletype  conversation",
  816. X    setting  half  duplex  is generally    required.  In such cases, use of the
  817. X    interactive    nl, nlin and nlout commands may    also be    required.
  818. X
  819. X    Example:
  820. X
  821. X    duplex full
  822. X    $s0 = 'full'; duplex $s0
  823. X
  824. X
  825. X
  826. X
  827. X    6.2.13  echo
  828. X
  829. X    usage: echo    [-n] <string>
  830. X
  831. X    This command prints    the contents of    the string argument <string> on     the
  832. X    screen.   If  the -n switch    is not present,    a newline follows the output
  833. X    of <string>.
  834. X
  835. X    Example:
  836. X
  837. X    echo 'Procedure    '+%argv(0)+' executing at '+%time
  838. X    echo -n    'Enter your first name:    '; $s0 = %cgets
  839. X
  840. X
  841. X
  842. X    6.2.14  eeol
  843. X
  844. X    usage: eeol
  845. X
  846. X    This command erases    the video display to the end of    the line.
  847. X
  848. X
  849. X    6.2.15  else
  850. X
  851. X
  852. X    This statement may follow an ifi or    ifs command to specify one  or    more
  853. X    statements    to  be    executed  if the if-type command condition is false.
  854. X    Else commands may be chained  together  in    the  traditional  structured
  855. X
  856. X
  857. X
  858. X    Public Domain by wht@n4hgf          5/7/90
  859. X
  860. X
  861. X
  862. X
  863. X
  864. X
  865. X
  866. X    ECU    Technical Description                      42
  867. X
  868. X
  869. X
  870. X    usage: else    <statement>
  871. X
  872. X       else
  873. X           <statement>
  874. X
  875. X       else
  876. X       {
  877. X        any kind and number of statements
  878. X       }
  879. X
  880. X       else    <if> <statement>
  881. X
  882. X       else    <if>
  883. X       {
  884. X        any kind and number of statements
  885. X       }
  886. X
  887. X
  888. X    language manner.
  889. X
  890. X    For    the purposes of    describing this    command, <statement> is     any  single
  891. X    or compound    statement NOT containing a whilei or whiles command.  If you
  892. X    wish to have a while-type command executed as part of an else condition,
  893. X    the    while must occur within    braces ("{}").
  894. X
  895. X    <if> is an ifi or ifs command followed by  an  <if-condition>  (see     the
  896. X    description    of the ifi or ifs commands below).
  897. X
  898. X
  899. X
  900. X
  901. X
  902. X
  903. X
  904. X
  905. X
  906. X
  907. X
  908. X
  909. X
  910. X
  911. X
  912. X
  913. X
  914. X
  915. X
  916. X
  917. X
  918. X
  919. X
  920. X
  921. X
  922. X
  923. X
  924. X    Public Domain by wht@n4hgf          5/7/90
  925. X
  926. X
  927. X
  928. X
  929. X
  930. X
  931. X
  932. X    ECU    Technical Description                      43
  933. X
  934. X
  935. X
  936. X    Example:
  937. X
  938. X    #+------------------------------------------------------
  939. X    # finger.ep    - procedure to send 'finger' to    remote
  940. X    # BSD Unix system; print resulting lines in    different
  941. X    # colors: uucp logins green, root red, others cyan
  942. X    #-------------------------------------------------------
  943. X
  944. X    mkvar $icolor; $icolor = %colors
  945. X    mkvar $itimeout
  946. X    $itimeout = 50       # timeout for first line 5 secs
  947. X    send 'ps -aux'       # send command, but do not echo
  948. X    lookfor    '0 40     # swallow command
  949. X    whilei 1==1       # forever, or until break
  950. X    {
  951. X        lgets 0 $itimeout 1    '0 #get    a line
  952. X        ifi    $i0 = 0    break #if no chaacters read
  953. X        $itimeout =    10 #wait 1 sec for later lines
  954. X
  955. X        ifi    %instr($s0,'% ') >= 0 #    if csh prompt seen
  956. X        break              #    exit while loop
  957. X        else ifi %instr($s0,'Login') >= 0
  958. X        color gray
  959. X        else ifi %instr($s0,'root')    >= 0
  960. X        color red
  961. X        else ifi %instr($s0,'uucp')    >= 0
  962. X        color green
  963. X        else color cyan
  964. X        echo $s0
  965. X    }
  966. X    icolor $icolor #restore    entry colors
  967. X    send ''           #force a    new prompt from    remote
  968. X
  969. X
  970. X
  971. X
  972. X    6.2.16  exit
  973. X
  974. X    usage: exit    [<status>]
  975. X
  976. X    This command causes    an abrupt  termination    of  the     ecu  program.     Any
  977. X    existing  connection with a    remote system is terminated immediately.  If
  978. X    no integer argument    <status> is found, ecu exits  with  a  program    exit
  979. X    status of 0.  If <status> is found and the value is    zero, then ecu exits
  980. X    with a program exit    status of 0.  If <status> non-zero,its value must be
  981. X    in the range of 1 to 31, and ecu exits with    a program exit status of 192
  982. X    plus <status>.  This feature allows    batch executions  of  ecu  by  shell
  983. X    script and ECU procedure to    detect ECU execution status.
  984. X
  985. X
  986. X
  987. X
  988. X
  989. X
  990. X    Public Domain by wht@n4hgf          5/7/90
  991. X
  992. X
  993. X
  994. X
  995. X
  996. X
  997. X
  998. X    ECU    Technical Description                      44
  999. X
  1000. X
  1001. X
  1002. X    6.2.17  expresp
  1003. X
  1004. X    usage: expresp [-v[v...]] <exp-resp-str> [<timeout_msecs>]
  1005. X
  1006. X    This command emulates the uuchat function as described in  the  SCO     HDB
  1007. X    UUCP documentation and in the /usr/lib/uucp/Dialers    file.
  1008. X
  1009. X    -v causes the expect-respond conversation between  ECU  and     the  remote
  1010. X    system  to    be  displayed  on  the screen.    This switch is automatically
  1011. X    enabled if procdedure tracing is enabled.
  1012. X
  1013. X    multiple v's (e.g.,    -vv, -vvv) up to 3 'v's    produce    more  verbose  debug
  1014. X    output.  -vv  causes  each    base  level  expect and    respond    string to be
  1015. X    displayed. -vvv causes a hexadecimal dump of  each     interpreted  expect
  1016. X    string to be displayed.
  1017. X
  1018. X    <exp-resp-str> is as defined in /usr/lib/ecu/Dialers.
  1019. X
  1020. X       Meaning of some of the escape characters:
  1021. X    - pause    (approximately 1/4-1/2 second delay)
  1022. X
  1023. X    - delay    (2 seconds)
  1024. X       D - phone number/token
  1025. X       T - phone number    with Dialcodes and character translation
  1026. X       N - null    byte
  1027. X       K - insert a BREAK
  1028. X       E - turn    on echo    checking (for slow devices)
  1029. X       \--carriagefreturnchecking
  1030. X       - send new-line
  1031. X    n - send octal number
  1032. X       Speed - Hayes-specific speed-adaptive connect handler
  1033. X
  1034. X
  1035. X    <timeout_msecs>  specifies    an  optional  timeout  in  milliseconds     for
  1036. X    waiting  on     expect     strings;   it    defaults  to 10,000 milliseconds (10
  1037. X    seconds).  The resolution for timeouts is limited to the basic tick    time
  1038. X    of    your  system  (HZ,  10    msec for UNIX/386, 20 msec for XENIX/386 and
  1039. X    XENIX/286).     The timeout for 'Speed' expects is fixed at 90    seconds.
  1040. X
  1041. X
  1042. X    6.2.18  fchmod
  1043. X
  1044. X    usage: fchmod <mode> <file>
  1045. X
  1046. X    This command sets the mode of <file> to  <mode>.   The  <mode>  argument
  1047. X    takes one of two forms, a nine-character mode string (e.g.,    'rwxr-xr-x')
  1048. X    or an integer value    (0755).     The <file>  argument  is  either  a  string
  1049. X    value  forming  a filename or an integer file number representing a    file
  1050. X    opened with    the fopen command.
  1051. X
  1052. X    The    command    sets $i0 = 0 if    successful,  else  to  the  errno  from     the
  1053. X
  1054. X
  1055. X
  1056. X    Public Domain by wht@n4hgf          5/7/90
  1057. X
  1058. X
  1059. X
  1060. X
  1061. X
  1062. X
  1063. X
  1064. X    ECU    Technical Description                      45
  1065. X
  1066. X
  1067. X
  1068. X    associated    system    call  (refer  to  the %errstr string function and/or
  1069. X    /usr/include/sys/errno.h).
  1070. X
  1071. X
  1072. X    Example:
  1073. X
  1074. X    fopen 1    '/tmp/123'; fchmod 'rwxrwxrwx' 1
  1075. X    fchmod 'rwxrwxrwx' '/tmp/123'
  1076. X    fopen 1    '/tmp/123'; fchmod 0777    1
  1077. X    $i0 = 0777; fchmod $i0 '/tmp/123'
  1078. X
  1079. X    All    of the above example result in the same    result.
  1080. X
  1081. X
  1082. X
  1083. X    6.2.19  fclose
  1084. X
  1085. X    usage: fclose <file>
  1086. X
  1087. X    This command closes    <file>.     The <file>  argument  is  an  integer    file
  1088. X    number representing    a file opened with the fopen command.
  1089. X
  1090. X    The    command    is ignored if <file> is    not open.  No  integer    variable  is
  1091. X    modified by    fclose.
  1092. X
  1093. X
  1094. X    Example:
  1095. X
  1096. X    fclose 1
  1097. X
  1098. X
  1099. X
  1100. X    6.2.20  fdel
  1101. X
  1102. X    usage: fdel    <file>
  1103. X
  1104. X    This command removes a file.
  1105. X
  1106. X    The    command    sets $i0 = 0 if    successful,  else  to  the  errno  from     the
  1107. X    associated    system    call  (refer  to  the %errstr string function and/or
  1108. X    /usr/include/sys/errno.h).
  1109. X
  1110. X
  1111. X    Example:
  1112. X
  1113. X    fdel '/tmp/123'
  1114. X
  1115. X
  1116. X
  1117. X
  1118. X
  1119. X
  1120. X
  1121. X
  1122. X    Public Domain by wht@n4hgf          5/7/90
  1123. X
  1124. X
  1125. X
  1126. X
  1127. X
  1128. X
  1129. X
  1130. X    ECU    Technical Description                      46
  1131. X
  1132. X
  1133. X
  1134. X    6.2.21  fgetc
  1135. X
  1136. X    usage: fgetc <file>    <destination>
  1137. X
  1138. X    This command reads a character from    <file>.     The <file> argument  is  an
  1139. X    integer file number    representing a file opened with    the fopen command.
  1140. X
  1141. X    The    argument <destination> is either a string  variable  or     an  integer
  1142. X    variable.    If  the     file  has  reached end    of file: an integer variable
  1143. X    receives -1;  a  string  variable  is  returned  null.   Otherwise,     the
  1144. X    character's     numeric value (0-255) is placed in an integer variable    or a
  1145. X    string variable is returned    with a length of one with the file character
  1146. X    as its only    character.
  1147. X
  1148. X
  1149. X    Example:
  1150. X
  1151. X    fgetc 1    $s0
  1152. X    fgetc 1    $i_input
  1153. X
  1154. X
  1155. X
  1156. X    6.2.22  fgets
  1157. X
  1158. X    usage: fgets <file>    <strvar>
  1159. X
  1160. X    This command reads a character from    <file>.     The <file> argument  is  an
  1161. X    integer file number    representing a file opened with    the fopen command.
  1162. X
  1163. X    The    argument <strvar> is a string variable.     If the    file has reached end
  1164. X    of file, <strvar> is returned null and integer variable $i0    is set to 1.
  1165. X    Otherwise, the <strvar> receives input from    the file minus the  trailing
  1166. X    newline and    $i0 is returned    zero.
  1167. X
  1168. X
  1169. X    Example:
  1170. X
  1171. X    fgets 1    $s0
  1172. X
  1173. X
  1174. X
  1175. X    6.2.23  fkey
  1176. X
  1177. X    usage: fkey    <str>
  1178. X
  1179. X    This command selects a function  key  definition  from  the     ~/.ecu/keys
  1180. X    file.
  1181. X
  1182. X
  1183. X
  1184. X
  1185. X
  1186. X
  1187. X
  1188. X    Public Domain by wht@n4hgf          5/7/90
  1189. X
  1190. X
  1191. X
  1192. X
  1193. X
  1194. X
  1195. X
  1196. X    ECU    Technical Description                      47
  1197. X
  1198. X
  1199. X
  1200. X    6.2.24  flush
  1201. X
  1202. X    usage: flush
  1203. X
  1204. X    This command causes    any characters received    by the system from the line,
  1205. X    but    not yet    read by    the procedure to be "forgotten"    or flushed.
  1206. X
  1207. X
  1208. X    6.2.25  fopen
  1209. X    usage: fopen [-switches] <filenum> <filename>
  1210. X
  1211. X    This command opens a file named by the string  argument  <filename>     and
  1212. X    associates    it with    the user-chosen    file number <filenum> (which must be
  1213. X    an integer value between 0 and 4, inclusive).
  1214. X
  1215. X    The    argument switches govern how a file is opened  and  must  be  chosen
  1216. X    from this list:
  1217. X
  1218. X    -r       The file is opened read-only; if it does  not  exist,  an
  1219. X           error occurs.
  1220. X
  1221. X    -r+       The file is opened for reading and writing;    if  it    does
  1222. X           not exist, an error occurs.
  1223. X
  1224. X    -w       The file is opened for writing (any previous    contents  of
  1225. X           the file are    lost); if it does not exist, it    is created.
  1226. X
  1227. X    -w+       The file is opened for reading and writing (any  previous
  1228. X           contents  of    the file are lost); if it does not exist, it
  1229. X           is created.
  1230. X
  1231. X    -a       The file is opened for appending (writes to the file     are
  1232. X           added  to  the  previous  file  contents); if it does not
  1233. X           exist, it is    created.  All writes  are  appended  to     the
  1234. X           file    (the fseek command has no effect).
  1235. X
  1236. X    The    switches parameter may be omitted; in such cases, the file is opened
  1237. X    as    though    '-r'  had  been     supplied.  However, if    procedure tracing is
  1238. X    enabled (see the description of the    interactive  and  procedure  command
  1239. X    ptrace), a warning message will be issued.
  1240. X
  1241. X    The    command    sets $i0 = 0 if    successful,  else  to  the  errno  from     the
  1242. X    associated    system    call  (refer  to  the %errstr string function and/or
  1243. X    /usr/include/sys/errno.h).
  1244. X
  1245. X    Example:
  1246. X
  1247. X    fopen 0    -r '/etc/passwd'
  1248. X    fopen 1    -w+ '/tmp/123'
  1249. X    fopen 2    -a 'tranact.log'
  1250. X
  1251. X
  1252. X
  1253. X
  1254. X    Public Domain by wht@n4hgf          5/7/90
  1255. X
  1256. X
  1257. X
  1258. X
  1259. X
  1260. X
  1261. X
  1262. X    ECU    Technical Description                      48
  1263. X
  1264. X
  1265. X
  1266. X    6.2.26  fputc
  1267. X
  1268. X    usage: fputc <file>    <char>
  1269. X
  1270. X    This command writes    character <char> into <file>.  The  <file>  argument
  1271. X    is    an  integer  file  number  representing    a file opened with the fopen
  1272. X    command.  Argument <char> is a integer value of which  the    lower  eight
  1273. X    bits are used or a string value of which the first character is used.
  1274. X
  1275. X    If a write error occurs, procedure execution is terminated.
  1276. X
  1277. X    Example:
  1278. X
  1279. X    $s0='abc'; fputc 1 $s0          writes 'a'
  1280. X    $i0=0x30 ; fputc 1 $i0          writes '0'
  1281. X
  1282. X
  1283. X
  1284. X    6.2.27  fputs
  1285. X
  1286. X    usage: fputs [-n] <file> <str>
  1287. X
  1288. X    This command writes    the string <str> into <file>.  The  <file>  argument
  1289. X    is    an  integer  file  number  representing    a file opened with the fopen
  1290. X    command.
  1291. X
  1292. X    If the switch '-n' is omitted, a newline is    appended after <str> in     the
  1293. X    file; if present, no newline is written.
  1294. X
  1295. X    If a write error occurs, procedure execution is terminated.
  1296. X
  1297. X    Example:
  1298. X
  1299. X    $s0='abc'; fputc 1 $s0          writes 'a'
  1300. X
  1301. X
  1302. X
  1303. X    6.2.28  fseek
  1304. X
  1305. X    usage: fseek <file>    <position>
  1306. X
  1307. X    This command sets  the  file  position  of    <file>    to  <position.     The
  1308. X    corresponding  integer  function  %ftell  may  be  used to determine the
  1309. X    current file position.
  1310. X
  1311. X    Note: if <file> is open for    append ('-a'), then the    fseek  command    will
  1312. X    have no effect.
  1313. X
  1314. X
  1315. X
  1316. X
  1317. X
  1318. X
  1319. X
  1320. X    Public Domain by wht@n4hgf          5/7/90
  1321. X
  1322. X
  1323. X
  1324. X
  1325. X
  1326. X
  1327. X
  1328. X    ECU    Technical Description                      49
  1329. X
  1330. X
  1331. X
  1332. X    6.2.29  getf
  1333. X
  1334. X
  1335. X    usage: getf    -x <int-var-spec> <offset>
  1336. X
  1337. X    where: -x ==
  1338. X       -b byte
  1339. X       -w word (little-endian)
  1340. X       -W word (big-endian)
  1341. X       -l 32-bits (little-endian)
  1342. X       -L 32-bits (big-endian)
  1343. X
  1344. X
  1345. X
  1346. X    6.2.30  goto
  1347. X
  1348. X    usage: goto    <label>
  1349. X
  1350. X    This command transfers control of procedure    to a  statement     other    than
  1351. X    the    one immediately    following.  The    <label>    argument may be    literal    text
  1352. X    or may be a    string,    allowing a "computed goto" feature.
  1353. X
  1354. X    Example:
  1355. X
  1356. X    goto GET_NEXT
  1357. X    goto 'GET_NEXT'
  1358. X    goto 'GET'+'_NEXT'
  1359. X    $s0 = 'GET_NEXT'; goto $s0
  1360. X    $s0 = 'NEXT'; goto 'GET_'+$s0
  1361. X
  1362. X    Note: all the above    examples cause transfer    to the label GET_NEXT.
  1363. X
  1364. X
  1365. X    6.2.31  gotob
  1366. X
  1367. X    usage: gotob <label>
  1368. X
  1369. X    This command serves    the same function as the  goto    command     except     the
  1370. X    programmer is signifying that the label is behind the current statement,
  1371. X    resulting in slightly faster execution.  (The label    is not    REQUIRED  to
  1372. X    be    at  any     specific  location  in     the procedure relative    to the gotob
  1373. X    statement.)
  1374. X
  1375. X
  1376. X    6.2.32  hangup
  1377. X
  1378. X    usage: hangup
  1379. X
  1380. X    This command causes    Data Terminal Ready (DTR) to be    dropped    momentarily,
  1381. X    causing  (hopefully)  the  termination  of    any  current connection    to a
  1382. X    remote system. This    command    is  only  effective  if     the  attached    Data
  1383. X
  1384. X
  1385. X
  1386. X    Public Domain by wht@n4hgf          5/7/90
  1387. X
  1388. X
  1389. X
  1390. X
  1391. X
  1392. X
  1393. X
  1394. X    ECU    Technical Description                      50
  1395. X
  1396. X
  1397. X
  1398. X    Communications  Equipment  is  configured to terminate its connection on
  1399. X    loss of DTR.
  1400. X
  1401. X    If no line is attached, the    command    is ignored (a warning  is  generated
  1402. X    if procedure tracing is enabled).
  1403. X
  1404. X
  1405. X    6.2.33  hexdump
  1406. X
  1407. X    usage: hexdump [-s]    <str>
  1408. X       hexdump -t[s] <str1>    <str>
  1409. X
  1410. X
  1411. X    <str> buf to dump <str1> title (if -t) -s short (terse) dump
  1412. X
  1413. X    This command prints    a hexadecimal dump of <str> on the  screen  (and  to
  1414. X    the    procedure log file, if logging enabled with the    ptrace command).
  1415. X
  1416. X    The    switch '-t' signifies that <str1> is a title to    be printed
  1417. X
  1418. X    Example:
  1419. X
  1420. X    $s0='The quick brown fox jumped    over the lazy dog's back'
  1421. X    hexdump    -t 'Example hex    dump' $s0
  1422. X    ---------------------------- Example hex dump ----------------------------
  1423. X    0000  54 68    65 20 71 75 69 63 6B 20    62 72 6F 77 6E 20 | The    quick brown  |
  1424. X    0010  66 6F    78 20 6A 75 6D 70 65 64    20 6F 76 65 72 20 | fox    jumped over  |
  1425. X    0020  74 68    65 20 6C 61 7A 79 20 64    6F 67 27 73 20 62 | the    lazy dog's b |
  1426. X    0030  61 63    6B                      | ack             |
  1427. X
  1428. X    hexdump    %left($s0,9)
  1429. X    0000  54 68    65 20 71 75 69 63 6B              | The    quick         |
  1430. X
  1431. X    hexdump    -ts 'Example hex dump' %left($s0,9)
  1432. X    Example hex    dump
  1433. X    0000  54 68    65 20 71 75 69 63 6B | The quick |
  1434. X
  1435. X    hexdump    -s %left($s0,9)
  1436. X    0000  54 68    65 20 71 75 69 63 6B | The quick |
  1437. X
  1438. X
  1439. X
  1440. X    6.2.34  home
  1441. X
  1442. X    usage: home
  1443. X
  1444. X    This command homes the video cursor.
  1445. X
  1446. X
  1447. X
  1448. X
  1449. X
  1450. X
  1451. X
  1452. X    Public Domain by wht@n4hgf          5/7/90
  1453. X
  1454. X
  1455. X
  1456. X
  1457. X
  1458. X
  1459. X
  1460. X    ECU    Technical Description                      51
  1461. X
  1462. X
  1463. X
  1464. X    6.2.35  icolor
  1465. X
  1466. X    usage: %icolor <int-colors>
  1467. X
  1468. X    This command sets the  normal  and    reverse     foreground  and  background
  1469. X    colors according to    <int-colors>, an integer value in the format as    that
  1470. X    returned by    the %colors integer function.
  1471. X
  1472. X    This command is provided primarily to be able to save the  color  state,
  1473. X    modify it temporarily and then restore it.
  1474. X
  1475. X    Example:
  1476. X
  1477. X    mkvar $icolor_save; $icolor_save = %colors
  1478. X    color red; echo    'Connection seems to be    dead'
  1479. X    icolor $icolor_save # restore previous colors
  1480. X
  1481. X
  1482. X
  1483. X    6.2.36  ifi
  1484. X
  1485. X    usage: ifi <int> <rel-op> <int> <statement>
  1486. X       ifi <int> <rel-op> <int>
  1487. X           <statement>
  1488. X       ifi <int> <rel-op> <int>
  1489. X       {
  1490. X           any kind    or number of statements
  1491. X       }
  1492. X
  1493. X
  1494. X    This command selectively executes one or more statements based on a    test
  1495. X    of    two integer quantities.     See the description of    the break, continue,
  1496. X    and    else commmands for examples of how the command is used.
  1497. X
  1498. X
  1499. X    6.2.37  ifs
  1500. X
  1501. X    usage: ifs <str> <rel-op> <str> <statement>
  1502. X       ifs <int> <rel-op> <int>
  1503. X           <statement>
  1504. X       ifs <int> <rel-op> <int>
  1505. X       {
  1506. X           any kind    or number of statements
  1507. X       }
  1508. X
  1509. X
  1510. X    This command selectively executes one or more statements based on a    test
  1511. X    of    two  string values.  See the description of the    break, continue, and
  1512. X    else commmands and many other  examples  throughout     the  document,     for
  1513. X    examples of    how the    command    is used.
  1514. X
  1515. X
  1516. X
  1517. X
  1518. X    Public Domain by wht@n4hgf          5/7/90
  1519. X
  1520. X
  1521. X
  1522. X
  1523. X
  1524. X
  1525. X
  1526. X    ECU    Technical Description                      52
  1527. X
  1528. X
  1529. X
  1530. X    6.2.38  lbreak
  1531. X
  1532. X    usage: lbreak
  1533. X
  1534. X    This command transmits a break to the remote system.
  1535. X
  1536. X
  1537. X    6.2.39  lgets
  1538. X
  1539. X
  1540. X    usage: lgets [-er] <strvar>    <t1-int> <t2-int> [<stop-str>]
  1541. X
  1542. X    -e echo received characters    to screen
  1543. X    -r raw read    (retain    carriage returns)
  1544. X
  1545. X
  1546. X    This command reads a  string  from    the  attached  communications  line.
  1547. X    <t1-int>  is  the  number of tenths    of seconds before timing out waiting
  1548. X    for    the first character to be  received.   <t2-int>     is  the  number  of
  1549. X    tenths  of seconds before timing out on later characters.  <stop-str> is
  1550. X    an optional    argument, which     if  received,    immediately  terminates     the
  1551. X    read.  Integer variable $i0    is set to the count of characters received.
  1552. X
  1553. X    If the specified string variable is    filled with  characters     before     the
  1554. X    <stop-str>    has  been  encountered    or before a timeout occurs, then the
  1555. X    command returns with $i0 set to the    maximum    size of    the variable.  Refer
  1556. X    to    the section on string variables    above and the section describing the
  1557. X    mkvar command below    for information    on the size of string variables.
  1558. X
  1559. X
  1560. X    6.2.40  insline
  1561. X
  1562. X    usage: insline
  1563. X
  1564. X    This command inserts a line    onto the video screen at the current line.
  1565. X
  1566. X
  1567. X    6.2.41  logevent
  1568. X
  1569. X    usage: logevent <str>
  1570. X
  1571. X
  1572. X    This command writes    a log item to ~/.ecu/log.
  1573. X
  1574. X
  1575. X
  1576. X
  1577. X
  1578. X
  1579. X
  1580. X
  1581. X
  1582. X
  1583. X
  1584. X    Public Domain by wht@n4hgf          5/7/90
  1585. X
  1586. X
  1587. X
  1588. X
  1589. X
  1590. X
  1591. X
  1592. X    ECU    Technical Description                      53
  1593. X
  1594. X
  1595. X
  1596. X    Example:
  1597. X
  1598. X    $s0='/tmp/alm.log'
  1599. X    log 'appending alarm info to '+$s0
  1600. X
  1601. X    writes:
  1602. X    10-02-1989-17:39-01261-PROC    appending alarm    info to    /tmp/alm.log
  1603. X
  1604. X    6.2.42  lookfor
  1605. X
  1606. X    lookfor [-e] [quiet    | <str>] [<timeout-int>]
  1607. X
  1608. X    -e echo to screen while "looking"
  1609. X
  1610. X    This command is used to read from the attached commuications line  until
  1611. X    one    of two user-specified conditions occurs.
  1612. X
  1613. X    The    'quiet'    option waits becomes quiet  for     the  number  of  tenths  of
  1614. X    seconds specified  by <timeout-int>.
  1615. X
  1616. X    The    other option reads the line until <str>    is read     from  the  line  or
  1617. X    until  <timeout-int>  tenths  of  seconds  elapses.      With    this option,
  1618. X    integer variable $i0 is set    to 1 if    <str> is found    within    the  timeout
  1619. X    period or 0    if not.
  1620. X
  1621. X
  1622. X    Examples:
  1623. X
  1624. X    lookfor    -e quiet 20   wait for quiet line for 2    secs
  1625. X    lookfor    'word:'    50    wait for 'word:' for up to 5 secs
  1626. X
  1627. X    6.2.43  mkvar
  1628. X
  1629. X    usage: mkvar [$]i<name>
  1630. X       mkvar [$]s<name>(<size>)
  1631. X
  1632. X
  1633. X    This command creates one or    more named integer or string variables.     The
  1634. X    variable  type  is    determines  by    the first character of the variable,
  1635. X    which must be 'i' or 's'.    The  size  of  a  string  variable  must  be
  1636. X    specified  via the <size> argument.     An optional '$' may be    supplies for
  1637. X    neatness, but may be omitted if desired.
  1638. X
  1639. X    The    maximum    value for <size> is 5120.  Note    that most commands  are     not
  1640. X    capable  of     handling  variables  longer  in  current  length  than    256.
  1641. X    Procedures employing created string    variables longer than 256 characters
  1642. X    should be tested carefully with string lengths that    exceed 256.
  1643. X
  1644. X    The    scope of created variables is for the duration of the  execution  of
  1645. X    the    creating procedure.  Procedures    called by the creating procedure (by
  1646. X    'do') can reference    created    variables.  When created, integer  variables
  1647. X
  1648. X
  1649. X
  1650. X    Public Domain by wht@n4hgf          5/7/90
  1651. X
  1652. X
  1653. X
  1654. X
  1655. X
  1656. X
  1657. X
  1658. X    ECU    Technical Description                      54
  1659. X
  1660. X
  1661. X
  1662. X    are     set  to  zero    and  string variables are set to zero length.  These
  1663. X    features differ from numbered variables which  retain  their  scope     and
  1664. X    values  at    all  times, even when procedure    execution terminates and ECU
  1665. X    returns to interactive mode.
  1666. X
  1667. X    The    <name> space for integer and string variables are separate.   It  is
  1668. X    possible to    have an    integer    variable named '$ixyz' and a string variable
  1669. X    named '$sxyz'.  <name> may contain any alphabetic or  numeric  character
  1670. X    or    the  underscore     ('_')    character, but must begin with a non-numeric
  1671. X    character.    '$s_xyz' and '$sxyz' or    legal, but '$s3xyz' is not (would be
  1672. X    interpreted    as '$s3' followed by the illegal command sequence 'xyz').
  1673. X
  1674. X    Variables may be created by    the same name more than     once.     The  latest
  1675. X    mkvar  execution  specifies     the  variable    referenced.   Thus  if proc1
  1676. X    declares '$ixx' and    calls proc2  which  also  declares  '$ixx',  proc2's
  1677. X    variable  is distinct from proc1's and disappears when proc2 terminates,
  1678. X    thus making    proc1's    available to it    again, containing the same value  as
  1679. X    it had at the time proc2 was called.
  1680. X
  1681. X
  1682. X    Examples:
  1683. X
  1684. X    mkvar i_count
  1685. X    mkvar $i_count
  1686. X    mkvar s20(20),s80(80),i_timeout,$i_colors
  1687. X
  1688. X
  1689. X
  1690. X    6.2.44  nap
  1691. X    usage: nap <int>
  1692. X
  1693. X    This command suspends procedure execution for <int>    tenths of seconds.
  1694. X
  1695. X
  1696. X    Examples:
  1697. X
  1698. X    nap 30
  1699. X    nap $i0*$i2
  1700. X
  1701. X    6.2.45  parity
  1702. X
  1703. X    usage: parity [even    | odd |    none]
  1704. X       parity <str>
  1705. X
  1706. X
  1707. X    This command sets the parity for the attached communications  line.      If
  1708. X    <str>  is  supplied,  the  first  character     must  be  'e',     'o' or    'n'.
  1709. X    Uppercase equivalents are also accepted.
  1710. X
  1711. X
  1712. X
  1713. X
  1714. X
  1715. X
  1716. X    Public Domain by wht@n4hgf          5/7/90
  1717. X
  1718. X
  1719. X
  1720. X
  1721. X
  1722. X
  1723. X
  1724. X    ECU    Technical Description                      55
  1725. X
  1726. X
  1727. X
  1728. X    Examples:
  1729. X
  1730. X    parity even
  1731. X    parity 'e'
  1732. X    parity 'Even now as we speak'
  1733. X
  1734. X
  1735. X
  1736. X    6.2.46  pclose
  1737. X    usage: pclose <filenum>
  1738. X
  1739. X    This command should    be issued when a command started by the     interactive
  1740. X    popen commandf completes.
  1741. X
  1742. X
  1743. X    6.2.47  plog
  1744. X
  1745. X    usage: plog
  1746. X       plog    <str>
  1747. X       plog    off
  1748. X
  1749. X
  1750. X    This command controls logging to a file  of     the  screen  output  during
  1751. X    procedure  execution.  With    no argument, the command displays the status
  1752. X    of logging.     <str> specifies  a  log  file    pathname,  while  the  'off'
  1753. X    argument turns logging off.
  1754. X
  1755. X    If procedure execution terminates due to an    error, procedure logging  is
  1756. X    turned  off.   However, if procedure execution terminates normally while
  1757. X    logging is active, erratic and  unpredictable  portions  of     interactive
  1758. X    mode screen    output will continue to    be logged to the current log file.
  1759. X
  1760. X    The    interactive mode command plog may also be used to control  procedure
  1761. X    logging.
  1762. X
  1763. X    Example:
  1764. X
  1765. X    mkvar s_logname(128)
  1766. X    $s_logname = %dir+'logname'
  1767. X    plog $s_logname
  1768. X    echo 'Test'
  1769. X    plog off;cd 'somewhere_else';plog $s_logname
  1770. X    echo 'Test'
  1771. X
  1772. X
  1773. X
  1774. X    6.2.48  popen
  1775. X    usage: popen [-switches] <filenum> <command>
  1776. X
  1777. X    This command executes a shell command defined  by  the  string  argument
  1778. X    <command>  and  associates it with the user-chosen file number <filenum>
  1779. X
  1780. X
  1781. X
  1782. X    Public Domain by wht@n4hgf          5/7/90
  1783. X
  1784. X
  1785. X
  1786. X
  1787. X
  1788. X
  1789. X
  1790. X    ECU    Technical Description                      56
  1791. X
  1792. X
  1793. X
  1794. X    (which must    be an integer value between 0 and 4, inclusive).
  1795. X
  1796. X    The    argument switches govern whether the command  is  to  receive  input
  1797. X    from ecu or    output to ecu and must be chosen from this list:
  1798. X
  1799. X    -r       The command will output to ecu.
  1800. X
  1801. X    -w       The command will receive input from ecu.
  1802. X
  1803. X    The    switches parameter may be omitted; in such cases, the file is opened
  1804. X    as    though    '-r'  had  been     supplied.  However, if    procedure tracing is
  1805. X    enabled (see the description of the    interactive  and  procedure  command
  1806. X    ptrace), a warning message will be issued.
  1807. X
  1808. X    The    command    sets $i0 = 0 if    successful,  else  to  the  errno  from     the
  1809. X    associated    system    call  (refer  to  the %errstr string function and/or
  1810. X    /usr/include/sys/errno.h).
  1811. X
  1812. X    Example:
  1813. X
  1814. X    popen 0    -r 'ls -l *.log'
  1815. X    popen 1    -w 'cat    | sort > /tmp/sorted'
  1816. X
  1817. X
  1818. X
  1819. X
  1820. X    6.2.49  prompt
  1821. X    usage: prompt <str>
  1822. X
  1823. X    This command allows    selection of an    alternate prompt to the     interactive
  1824. X    mode  HOME command trigger.     Refer to the section titled "ECUPROMPT" for
  1825. X    more information on    the interactive    mode prompt.
  1826. X
  1827. X    Note: the interactive and  procedure  hangup  commands  both  cause     the
  1828. X    default prompt to be reestablished.
  1829. X
  1830. X
  1831. X    Example:
  1832. X
  1833. X     prompt    %rname+' >'    use remote name in prompt
  1834. X
  1835. X
  1836. X
  1837. X    6.2.50  ptrace
  1838. X
  1839. X    usage: ptrace [ <str> | off    ]
  1840. X
  1841. X
  1842. X    This command controls procedure  execution    tracing.   Trace  output  is
  1843. X    written to the screen and varys in its nature depending upon the command
  1844. X    being traced.  Specifically, any change to a string    or integer  variable
  1845. X
  1846. X
  1847. X
  1848. X    Public Domain by wht@n4hgf          5/7/90
  1849. X
  1850. X
  1851. X
  1852. X
  1853. X
  1854. X
  1855. X
  1856. X    ECU    Technical Description                      57
  1857. X
  1858. X
  1859. X
  1860. X    is noted.  If tracing is enabled, the output will also be written to any
  1861. X    active procedure log  file    (see  the  plog     interactive  and  procedure
  1862. X    commands).
  1863. X
  1864. X
  1865. X    6.2.51  putf
  1866. X
  1867. X    Not    yet implemented.
  1868. X
  1869. X
  1870. X    6.2.52  return
  1871. X    usage: return [<int>]
  1872. X
  1873. X    This command causes    the  currently    executing  procedure  to  terminate,
  1874. X    returning  either to a calling procedure or    to the interactive mode.  If
  1875. X    <int> is supplied, if  it  nonzero,     then  all  procedure  execution  is
  1876. X    terminated    and  the  integer status is printed on the screen along    with
  1877. X    the    name of    the executing procedure.
  1878. X
  1879. X
  1880. X    6.2.53  rk
  1881. X    usage: rk [-a]
  1882. X
  1883. X    This command invokes the Kermit file receive protocol.  If    switch    '-a'
  1884. X    is    omitted,  the  received     files    are  stored  as     received; otherwise
  1885. X    carriage return/linefeed pairs are converted to  newlines.     The  remote
  1886. X    sender must    have been started prior    the the    execution of this command.
  1887. X
  1888. X
  1889. X    6.2.54  rname
  1890. X    usage: rname <str>
  1891. X
  1892. X    Normally, the %rname string    function returns  the  same  string  as     the
  1893. X    logical  dialing directory entry.  This command allows the default value
  1894. X    to be overridden with a user-selected value    (63-character maximum).
  1895. X
  1896. X    This feature is useful in  situations  where  one  system  is  initially
  1897. X    dialed,  but  a connection is made to yet another system from the dialed
  1898. X    system via networking.
  1899. X
  1900. X
  1901. X    6.2.55  rs
  1902. X    usage: rs
  1903. X
  1904. X    This command invokes the SEAlink file receive  protocol.   There  is  no
  1905. X    provision  in  the    SEAlink    protocol to convert carriage return/linefeed
  1906. X    pairs to newlines, so the received files are stored     as  received.     The
  1907. X    remote  sender  must  have    been started prior the the execution of    this
  1908. X    command.
  1909. X
  1910. X
  1911. X
  1912. X
  1913. X
  1914. X    Public Domain by wht@n4hgf          5/7/90
  1915. X
  1916. X
  1917. X
  1918. X
  1919. X
  1920. X
  1921. X
  1922. X    ECU    Technical Description                      58
  1923. X
  1924. X
  1925. X
  1926. X    6.2.56  rx
  1927. X    usage: rx [-a] <str>
  1928. X
  1929. X    This command invokes the XMODEM file receive protocol  to  receive    file
  1930. X    <str>.   If     switch     '-a'  is  omitted,  the  received file    is stored as
  1931. X    received; otherwise    carriage  return/linefeed  pairs  are  converted  to
  1932. X    newlines.    The  remote  sender  must  have     been  started prior the the
  1933. X    execution of this command.
  1934. X
  1935. X
  1936. X    6.2.57  ry
  1937. X    usage: ry
  1938. X
  1939. X    This command invokes the YMODEM Batch (not to be confused  with  XMODEM-
  1940. X    1K)     protocol  to receive files from a remote system.  The remote sender
  1941. X    must have been started prior the the execution of this command.
  1942. X
  1943. X
  1944. X    6.2.58  rz
  1945. X    usage: rz
  1946. X
  1947. X    This command invokes the ZMODEM protocol to    receive    files from a  remote
  1948. X    system.   The  remote  sender  must     have  been  started  prior  the the
  1949. X    execution of this command.
  1950. X
  1951. X
  1952. X    6.2.59  scrdump
  1953. X    usage: scrdump [<str>]
  1954. X
  1955. X    This command causes    the current screen contents to be stored in a  file.
  1956. X    If    <str>  is  supplied,  it  is  used  as    a pathname.  If    <str> is not
  1957. X    supplied, "~/.ecu/screen.dump".  The actions of the     interactive  sdname
  1958. X    command have no effect on the execution of this command.
  1959. X
  1960. X
  1961. X    6.2.60  send
  1962. X    usage: send    [-n] <str>
  1963. X
  1964. X    This command sends <str> to    the communications line.  If the '-n' switch
  1965. X    is    omitted, a carriage return (0x0D) is transmitted after <str>.  If '-
  1966. X    n' is supplied, no carriage    return is transmitted.
  1967. X
  1968. X
  1969. X    Examples:
  1970. X
  1971. X    send 'ps -au'
  1972. X    send -n    %chr(0x02)+"START'+%chr(0x03)
  1973. X
  1974. X
  1975. X
  1976. X
  1977. X
  1978. X
  1979. X
  1980. X    Public Domain by wht@n4hgf          5/7/90
  1981. X
  1982. X
  1983. X
  1984. X
  1985. X
  1986. X
  1987. X
  1988. X    ECU    Technical Description                      59
  1989. X
  1990. X
  1991. X
  1992. X    6.2.61  set
  1993. X
  1994. X    usage: set [$]i<name>=<int-expression>[, ...]
  1995. X       set [$]s<name>=<str-expression>[, ...]
  1996. X
  1997. X
  1998. X    This command sets an integer or string variable to an  expression.     The
  1999. X    'set'  verb     may  be  omitted  provided  the  otherwise  optional '$' is
  2000. X    supplied.  There are many examples of how the set statement    is performed
  2001. X    throughout    this document.    The examples here are to further clarify the
  2002. X    statement's    syntax.
  2003. X
  2004. X    If the  '=<expression>'  is     omitted,  the    value  of  the    variable  is
  2005. X    displayed  (useful    when  debugging).    If    procedure tracing is enabled
  2006. X    with the ptrace command, all variables referenced by  the  set  command,
  2007. X    whether a value is assigned    or not,    are displayed.
  2008. X
  2009. X
  2010. X    Examples:
  2011. X
  2012. X    set i0=0
  2013. X    set $s0='brown',s1='The    quick '+$s0+' fox'
  2014. X    set $S0             with no '=', displays contents
  2015. X    set i0,$i1,s0='abc',s1
  2016. X    $s0 = 'abc'         legal
  2017. X    set s0='abc'         legal
  2018. X    s0 = 'abc'         illegal
  2019. X
  2020. X    6.2.62  sk
  2021. X    usage: sk [-a] <str>
  2022. X
  2023. X    This command invokes the Kermit file transfer protocol to  send  one  or
  2024. X    more  files.   If  switch  '-a'  is     supplied, newlines are    converted to
  2025. X    carriage return/linefeed pairs.  If    '-a' is     omitted,  the    file(s)     are
  2026. X    transmitted    without    modification.
  2027. X
  2028. X    Integer variable $i0 receives the exit status from the transfer.   Note:
  2029. X    procedure  execution  is  NOT terminated by    a SIGINT to the    spawned    file
  2030. X    transfer process.  It is the responsibility    of the procedure to  process
  2031. X    the    exit status returned in    $i0.  If $i0 is    set to -1, the file transfer
  2032. X    program did    not begin.
  2033. X
  2034. X
  2035. X    6.2.63  ss
  2036. X    usage: ss <str>
  2037. X
  2038. X    This command invokes the SEAlink file transfer protocol to send  one  or
  2039. X    more  files.   There  is no    provision in the SEAlink protocol to convert
  2040. X    newlines to    carriage return/linefeed pairs.     so the    received  files     are
  2041. X    stored as received.
  2042. X
  2043. X
  2044. X
  2045. X
  2046. X    Public Domain by wht@n4hgf          5/7/90
  2047. X
  2048. X
  2049. X
  2050. X
  2051. X
  2052. X
  2053. X
  2054. X    ECU    Technical Description                      60
  2055. X
  2056. X
  2057. X
  2058. X    Integer variable $i0 receives the exit status from the transfer.   Note:
  2059. X    procedure  execution  is  NOT terminated by    a SIGINT to the    spawned    file
  2060. X    transfer process.  It is the responsibility    of the procedure to  process
  2061. X    the    exit status returned in    $i0.  If $i0 is    set to -1, the file transfer
  2062. X    program did    not begin.
  2063. X
  2064. X
  2065. X    6.2.64  sx
  2066. X    usage: sx [-ak[l]] [<label-str>] <filename-str>
  2067. X
  2068. X    This command invokes the XMODEM or XMODEM-1K file transfer    protocol  to
  2069. X    send  a  file.  If '-k' is supplied, XMODEM-1K is used, else XMODEM.  If
  2070. X    switch  '-a'  is  supplied,      newlines   are   converted   to   carriage
  2071. X    return/linefeed  pairs.  If    '-a' is    omitted, the file(s) are transmitted
  2072. X    without modification.  If '-l' is supplied,    then <label-str> specifies a
  2073. X    string to display on the bottom of the file    transfer screen.  If '-l' is
  2074. X    omitted, then <label_str> must also    be omitted.
  2075. X
  2076. X    Integer variable $i0 receives the exit status from the transfer.   Note:
  2077. X    procedure  execution  is  NOT terminated by    a SIGINT to the    spawned    file
  2078. X    transfer process.  It is the responsibility    of the procedure to  process
  2079. X    the    exit status returned in    $i0.  If $i0 is    set to -1, the file transfer
  2080. X    program did    not begin.
  2081. X
  2082. X
  2083. X    Examples:
  2084. X
  2085. X    sx -al 'sending    log file' '/tmp/log.file'
  2086. X    sx -
  2087. X
  2088. X
  2089. X
  2090. X    6.2.65  sy
  2091. X    usage: sy [-a[l]] [<label-str>] <filelist-str>
  2092. X
  2093. X    This command invokes the YMODEM Batch (not to be confused  with  XMODEM-
  2094. X    1K)    file transfer protocol to send one or more files.
  2095. X
  2096. X    If    switch    '-a'  is  supplied,  newlines  are  converted  to   carriage
  2097. X    return/linefeed  pairs.  If    '-a' is    omitted, the file(s) are transmitted
  2098. X    without modification.  If '-l' is supplied,    then <label-str> specifies a
  2099. X    string to display on the bottom of the file    transfer screen.  If '-l' is
  2100. X    omitted, then <label_str> must also    be omitted.
  2101. X
  2102. X    Integer variable $i0 receives the exit status from the transfer.   Note:
  2103. X    procedure  execution  is  NOT terminated by    a SIGINT to the    spawned    file
  2104. X    transfer process.  It is the responsibility    of the procedure to  process
  2105. X    the    exit status returned in    $i0.  If $i0 is    set to -1, the file transfer
  2106. X    program did    not begin.
  2107. X
  2108. X
  2109. X
  2110. X
  2111. X
  2112. X    Public Domain by wht@n4hgf          5/7/90
  2113. X
  2114. X
  2115. X
  2116. X
  2117. X
  2118. X
  2119. X
  2120. X    ECU    Technical Description                      61
  2121. X
  2122. X
  2123. X
  2124. X    6.2.66  system
  2125. X    usage: system [-l] <cmdstr>
  2126. X
  2127. X    If switch '-l', is supplied, the attached  communications  line  becomes
  2128. X    the    stdin and stdout for the command.
  2129. X
  2130. X    Integer variable $i0 is set    to the spawned process'    exit status  if     the
  2131. X    process  exits "normally", or 0x100    if the process is killed, dumps    core
  2132. X    or interrupted.
  2133. X
  2134. X    Note:  procedure execution is NOT terminated by a SIGINT to    the  spawned
  2135. X    process.   It is the responsibility    of the procedure to process the    exit
  2136. X    status returned in $i0.  If    $i0 is set to -1, the file transfer  program
  2137. X    did    not begin.
  2138. X
  2139. X
  2140. X    6.2.67  sz
  2141. X    usage: sz [-anf[l]]    [<label-str>] <filelist-str>
  2142. X
  2143. X    This command invokes the ZMODEM (CRC-32 capable) file transfer  protocol
  2144. X    to send one    or more    files.
  2145. X
  2146. X    Switch '-n'    causes the receiver to accept  files  with  do    not  already
  2147. X    exist  at  the  remote  system or which have older times of     last access
  2148. X    that at the    sending    system.
  2149. X
  2150. X    Switch '-f'      causes  the  full  pathname  of  each     file  to  be  sent;
  2151. X    otherwise, the simple filename is transmitted.
  2152. X
  2153. X    If    switch    '-a'  is  supplied,  newlines  are  converted  to   carriage
  2154. X    return/linefeed  pairs.  If    '-a' is    omitted, the file(s) are transmitted
  2155. X    without modification.
  2156. X
  2157. X    If '-l' is supplied, then <label-str> specifies a string to     display  on
  2158. X    the     bottom     of  the  file    transfer  screen.   If '-l' is omitted,    then
  2159. X    <label_str>    must also be omitted.
  2160. X
  2161. X    Integer variable $i0 receives the exit status from the transfer.   Note:
  2162. X    procedure  execution  is  NOT terminated by    a SIGINT to the    spawned    file
  2163. X    transfer process.  It is the responsibility    of the procedure to  process
  2164. X    the    exit status returned in    $i0.  If $i0 is    set to -1, the file transfer
  2165. X    program did    not begin.
  2166. X
  2167. X
  2168. X    6.2.68  vidcolor
  2169. X    usage: vidcolor <type> <fcolor> [<bcolor>]
  2170. X
  2171. X    This command allows    control    over the internal color    choices     ecu  makes.
  2172. X    <type> must    be one of the following:
  2173. X
  2174. X
  2175. X
  2176. X
  2177. X
  2178. X    Public Domain by wht@n4hgf          5/7/90
  2179. X
  2180. X
  2181. X
  2182. X
  2183. X
  2184. X
  2185. X
  2186. X    ECU    Technical Description                      62
  2187. X
  2188. X
  2189. X
  2190. X     normal      - normal video color
  2191. X     reverse  - reverse video color
  2192. X     notify      - color used for low key notifications such as
  2193. X            "[interactive mode]" and "[procedure finished]"
  2194. X     success  - color used for modem CONNECT messages and other
  2195. X            "success" notifications
  2196. X     alert      - color used to alert    user for warning or caution
  2197. X            purposes
  2198. X     error      - color used to display error    status or messages
  2199. X
  2200. X
  2201. X    <fcolor> and <bcolor> are color names as described in the description of
  2202. X    the     color    command.  <fcolor>  choses  the    foreground color and must be
  2203. X    supplied.  <bcolor>    choses the background color and    is optional; if     not
  2204. X    supplied, the background color is black.
  2205. X
  2206. X    Note: The vidcolor normal and reverse options are analogs of  the  color
  2207. X    and    color -r command.
  2208. X
  2209. X
  2210. X    Examples:  (showing    ecu default internal color list)
  2211. X
  2212. X    vidcolor normal    lt_green
  2213. X    vidcolor reverse red white
  2214. X    vidcolor notify    gray
  2215. X    vidcolor success lt_green
  2216. X    vidcolor alert yellow
  2217. X    vidcolor error red
  2218. X
  2219. X
  2220. X
  2221. X    6.2.69  vidnorm
  2222. X    usage: vidnorm
  2223. X
  2224. X    This command causes    later screen output to    appear    in  the     normal,  as
  2225. SHAR_EOF
  2226. echo "End of ecuman280 part 2"
  2227. echo "File doc/ecu.man is continued in part 3"
  2228. echo "3" > @shar_seq_.tmp
  2229. exit 0
  2230.  
  2231.