home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archimedes / aratio.h < prev    next >
C/C++ Source or Header  |  2020-01-01  |  4KB  |  110 lines

  1. /* -> h.ckatio
  2.  */
  3.  
  4. /*
  5.  * Variables available to outside world:
  6.  */
  7.  
  8. extern char* dftty;  /* Pointer to default tty name string, like "/dev/tty". */
  9. extern int dfloc;  /* 0 if dftty is console, 1 if external line. */
  10. extern int dfprty; /* Default parity */
  11. extern int dfflow; /* Default flow control */
  12. extern int ckxech; /* Flag for who echoes console typein:
  13.               1 - The program (system echo is turned off)
  14.               0 - The system (or front end, or terminal).
  15.             functions that want to do their own echoing should check this
  16.             flag before doing so. */
  17. extern int backgrd; /* Flag indicating program executing in background
  18.               - not applicable */
  19.  
  20. /*
  21.  * Functions for assigned communication line (either external or console tty):
  22.  */
  23.  
  24. /* Open the named extern int tty for exclusive access. */
  25. extern int ttopen(char *, int *, int );
  26.  
  27. /* Close & reset the extern int tty, releasing any access lock. */
  28. extern void ttclos( void );
  29.  
  30. extern void tthang( void ); /* Hangup phone line */
  31. extern void ttsndb( void ); /* Send a break signal */
  32.  
  33. /* Put the extern int tty in packet mode and set the speed. */
  34. extern int ttpkt( int, int);
  35.  
  36. /* Put the extern int tty in virtual terminal mode.
  37.    or in DIALING or CONNECTED modem control state. */
  38. extern void ttvt( int, int );
  39.  
  40. extern void ttres( void ); /* Restore terminal to normal mode */
  41.  
  42. /* Timed read line from the extern int tty. */
  43. extern int ttinl( char *, int, int, int );
  44.  
  45. extern int ttinc( int ); /* Timed read character from extern int tty. */
  46.  
  47. /* See how many characters in extern int tty input buffer. */
  48. extern int ttchk( void );
  49.  
  50. /* Read n characters from extern int tty (untimed). */
  51. extern void ttxin( int, char * );
  52.  
  53. extern void ttol( char *, int ); /* Write a string to the extern int tty. */
  54. extern void ttoc( char ); /* Write a character to the extern int tty. */
  55. extern void ttflui( void ); /* Flush extern int tty input buffer. */
  56.  
  57.  
  58. /*
  59.  * Functions for console terminal:
  60.  */
  61.  
  62. extern void congm( void ); /* Get extern int console terminal modes. */
  63.  
  64. /* Put the extern int console in single-character wakeup mode with no echo. */
  65. extern int concb( char );
  66.  
  67. /* Put the extern int console in binary (raw) mode. */
  68. extern int conbin( char );
  69.  
  70. /* Restore the extern int console to mode obtained by congm(); */
  71. extern int conres( void ); 
  72.  
  73. /* Unbuffered output, one character to extern int console. */
  74. extern void conoc( char );
  75.  
  76. /* Unbuffered output, null-terminated string to the extern int console. */
  77. extern void conol( char *);
  78.  
  79. /* Unbuffered output, string + CR LF to the extern int console. */
  80. extern void conoll( char *);
  81.  
  82. /* Unbuffered output, array of strings to the extern int console. */
  83. extern void conola( char *[] );
  84.  
  85. /* Unbuffered output, n characters to the extern int console. */
  86. extern void conxo( int, char *);
  87.  
  88. /* Check if characters available at extern int console (bsd 4.2).
  89.    Check if escape char (^\) typed at extern int console (System III/V). */
  90. extern int conchk( void );
  91.  
  92. /* Timed get a character from the extern int console. */
  93. extern int coninc( int );
  94.  
  95. extern int conin( void );   /* untimed get from extern int console (new) */
  96.  
  97. /* Enable terminal interrupts on the extern int console if not background. */
  98. extern void conint( void (*f)() );
  99.  
  100. /* Disable terminal interrupts on the extern int console if not background. */
  101. extern void connoi( void );
  102.  
  103. /*
  104.  * Time functions:
  105.  */
  106.  
  107. extern int msleep( int m ); /* Millisecond sleep */
  108. extern void ztime( char ** ); /* Return pointer to date/time string */
  109.  
  110.