XINU
Data Structures | Macros | Variables
tty.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ttycblk
 

Macros

#define TC_ECHO   9 /* Turn on echo */
 
#define TC_ICHARS   8 /* Return number of input chars */
 
#define TC_MODEC   5 /* Set input mode to cooked */
 
#define TC_MODEK   6 /* Set input mode to cbreak */
 
#define TC_MODER   4 /* Set input mode to raw */
 
#define TC_NEXTC   3 /* Look ahead 1 character */
 
#define TC_NOECHO   10 /* Turn off echo */
 
#define TY_BACKSP   '\b' /* Backspace character */
 
#define TY_BACKSP2   '\177' /* Alternate backspace char. */
 
#define TY_BELL   '\07' /* Character for audible beep */
 
#define TY_BLANK   ' ' /* Blank */
 
#define TY_EBUFLEN   20 /* Size of echo queue */
 
#define TY_EOFCH   '\04' /* Control-D is EOF on input */
 
#define TY_FULLCH   TY_BELL /* Char to echo when buffer full*/
 
#define TY_IBUFLEN   128 /* Num. chars in input queue */
 
#define TY_IMCBREAK   'K' /* Honor echo, etc, no line edit*/
 
#define TY_IMCOOKED   'C' /* Cooked mode => line editing */
 
#define TY_IMRAW   'R' /* Raw input mode => no edits */
 
#define TY_KILLCH   '\025' /* Control-U is line kill */
 
#define TY_NEWLINE   '\n' /* Newline == line feed */
 
#define TY_OBMINSP   20 /* Min space in buffer before */
 
#define TY_OBUFLEN   64 /* Num. chars in output queue */
 
#define TY_OMRAW   'R' /* Raw output mode => no edits */
 
#define TY_RETURN   '\r' /* Carriage return character */
 
#define TY_STOPCH   '\023' /* Control-S stops output */
 
#define TY_STRTCH   '\021' /* Control-Q restarts output */
 
#define TY_UPARROW   '^' /* Used for control chars (^X) */
 

Variables

struct ttycblk ttytab []
 

Macro Definition Documentation

◆ TC_ECHO

#define TC_ECHO   9 /* Turn on echo */

Definition at line 83 of file tty.h.

Referenced by ttycontrol().

◆ TC_ICHARS

#define TC_ICHARS   8 /* Return number of input chars */

Definition at line 82 of file tty.h.

Referenced by ttycontrol().

◆ TC_MODEC

#define TC_MODEC   5 /* Set input mode to cooked */

Definition at line 80 of file tty.h.

Referenced by ttycontrol().

◆ TC_MODEK

#define TC_MODEK   6 /* Set input mode to cbreak */

Definition at line 81 of file tty.h.

Referenced by ttycontrol().

◆ TC_MODER

#define TC_MODER   4 /* Set input mode to raw */

Definition at line 79 of file tty.h.

Referenced by ttycontrol().

◆ TC_NEXTC

#define TC_NEXTC   3 /* Look ahead 1 character */

Definition at line 78 of file tty.h.

Referenced by ttycontrol().

◆ TC_NOECHO

#define TC_NOECHO   10 /* Turn off echo */

Definition at line 84 of file tty.h.

Referenced by ttycontrol().

◆ TY_BACKSP

#define TY_BACKSP   '\b' /* Backspace character */

Definition at line 63 of file tty.h.

Referenced by erase1(), and ttyinit().

◆ TY_BACKSP2

#define TY_BACKSP2   '\177' /* Alternate backspace char. */

Definition at line 64 of file tty.h.

Referenced by ttyinit().

◆ TY_BELL

#define TY_BELL   '\07' /* Character for audible beep */

Definition at line 65 of file tty.h.

◆ TY_BLANK

#define TY_BLANK   ' ' /* Blank */

Definition at line 67 of file tty.h.

Referenced by echoch(), and erase1().

◆ TY_EBUFLEN

#define TY_EBUFLEN   20 /* Size of echo queue */

Definition at line 5 of file tty.h.

Referenced by eputc(), and ttyhandle_out().

◆ TY_EOFCH

#define TY_EOFCH   '\04' /* Control-D is EOF on input */

Definition at line 66 of file tty.h.

Referenced by ttyinit().

◆ TY_FULLCH

#define TY_FULLCH   TY_BELL /* Char to echo when buffer full*/

Definition at line 74 of file tty.h.

Referenced by ttyinit().

◆ TY_IBUFLEN

#define TY_IBUFLEN   128 /* Num. chars in input queue */

Definition at line 13 of file tty.h.

Referenced by erase1(), ttygetc(), and ttyhandle_in().

◆ TY_IMCBREAK

#define TY_IMCBREAK   'K' /* Honor echo, etc, no line edit*/

Definition at line 23 of file tty.h.

Referenced by ttycontrol(), and ttyhandle_in().

◆ TY_IMCOOKED

#define TY_IMCOOKED   'C' /* Cooked mode => line editing */

Definition at line 22 of file tty.h.

Referenced by ttycontrol(), ttygetc(), ttyinit(), and ttyread().

◆ TY_IMRAW

#define TY_IMRAW   'R' /* Raw input mode => no edits */

Definition at line 21 of file tty.h.

Referenced by ttycontrol(), and ttyhandle_in().

◆ TY_KILLCH

#define TY_KILLCH   '\025' /* Control-U is line kill */

Definition at line 72 of file tty.h.

Referenced by ttyinit().

◆ TY_NEWLINE

#define TY_NEWLINE   '\n' /* Newline == line feed */

Definition at line 68 of file tty.h.

Referenced by echoch(), ttyhandle_in(), ttyputc(), and ttyread().

◆ TY_OBMINSP

#define TY_OBMINSP   20 /* Min space in buffer before */

Definition at line 3 of file tty.h.

◆ TY_OBUFLEN

#define TY_OBUFLEN   64 /* Num. chars in output queue */

Definition at line 16 of file tty.h.

Referenced by ttyhandle_out(), ttyinit(), and ttyputc().

◆ TY_OMRAW

#define TY_OMRAW   'R' /* Raw output mode => no edits */

Definition at line 24 of file tty.h.

◆ TY_RETURN

#define TY_RETURN   '\r' /* Carriage return character */

Definition at line 69 of file tty.h.

Referenced by echoch(), ttyhandle_in(), ttyputc(), and ttyread().

◆ TY_STOPCH

#define TY_STOPCH   '\023' /* Control-S stops output */

Definition at line 70 of file tty.h.

Referenced by ttyinit().

◆ TY_STRTCH

#define TY_STRTCH   '\021' /* Control-Q restarts output */

Definition at line 71 of file tty.h.

Referenced by ttyinit().

◆ TY_UPARROW

#define TY_UPARROW   '^' /* Used for control chars (^X) */

Definition at line 73 of file tty.h.

Referenced by echoch().

Variable Documentation

◆ ttytab

struct ttycblk ttytab[]

Definition at line 11 of file ttyinit.c.

Referenced by ttycontrol(), ttygetc(), ttyhandler(), ttyinit(), ttyputc(), and ttyread().