home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / pub / wkermit / lckuserdoc.txt < prev    next >
Text File  |  2020-01-01  |  3KB  |  97 lines

  1.  
  2.          C K U U S R --  "User Interface" for PC-DOS Kermit
  3.  
  4. C M D L I N  --  Get arguments from command line
  5.  
  6.          cmdlin() {
  7.  
  8. D O A R G  --     Do a command-line argument.  */
  9.  
  10.          doarg(x)
  11.          char x = character on command line to be evaluated
  12.  
  13. U S A G E  --     Print help message , how to use
  14.  
  15.          usage()
  16.  
  17. F A T A L  --     Print error message and exit to dos through  doexit()
  18.  
  19.          fatal(msg)
  20.          char *msg = message to print
  21.  
  22. D O E X I T  --  Close files, turn of interrupt and exit from the program
  23.  
  24.          doexit(exitstat)
  25.          int exitstat = type of exit to pass to exit().
  26.  
  27. B L D L E N  --  Make length-encoded copy of string  */
  28.  
  29.          char *bldlen(str,dest)
  30.          char *str = string to copy
  31.          char *dest = destination string
  32.  
  33. D E B O P N  --  Open a debugging file    */
  34.  
  35.          debopn(s)
  36.          char *s = name of debug file
  37.  
  38. C H K S P D  --  Check if argument is a valid baud rate  */
  39.  
  40.          chkspd(x)
  41.          int x = baud rate to check
  42.  
  43. I N T M S G  --  Issue message about terminal interrupts during file
  44.          transfer if not quiet
  45.  
  46.          intmsg(n)
  47.          long n  = if 1 print message else print ignored
  48.  
  49.  
  50. C H K I N T  --  Check for console interrupts during file transfer
  51.          and execute them if any. Ignored if quiet = TRUE
  52.  
  53.          chkint()
  54.  
  55. D E B U G  --     Enter a record in the debugging log
  56.  
  57.          debug(f,s1,s2,n)
  58.          Call with a format, two strings, and a number:
  59.          int f      - Format, a bit string in range 0-7.
  60.                 If bit x is on, then argument number x is printed.
  61.          char *s1 - String, argument number 1.    Printed as is.
  62.          char *s2 - String, argument number 2.    Printed in brackets.
  63.          int n      - Int, argument 3.  Printed preceded by equals sign.
  64.  
  65.          f=0 is special: print s1,s2, and interpret n as a char.
  66.  
  67. T L O G  --     Log a record in the transaction file
  68.  
  69.          tlog(f,s1,s2,n)
  70.          Call with a format and 3 arguments: two strings and a number:
  71.          int f    - Format, a bit string in range 0-7, bit x is on,
  72.               arg #x is printed.
  73.          char *s1,s2 - String arguments 1 and 2.
  74.          long  n     - Int, argument 3.
  75.  
  76. E R M S G --     Print an error message on file stderr
  77.  
  78.          ermsg(msg)
  79.          char *msg = message to print
  80.  
  81.  
  82. P E R R O R --     Print a error message and associated errno
  83.  
  84.          perror(s)
  85.          char *s = message to print
  86.  
  87. S C R E E N  --  Screen display function
  88.  
  89.          screen(f,c,n,s)
  90.          int f - argument descriptor (format to use)
  91.          int c - a character or small integer
  92.          long n - a long integer (used for packet number)
  93.          char *s - a string to print.
  94.  
  95.          The possible values of f currently accepted are
  96.          defined as SCR_??? in the lckerm.h header file
  97.