term.c File Reference

#include "in_all.h"
#include "term.h"
#include "machine.h"
#include "output.h"
#include "display.h"
#include "options.h"
#include "getline.h"
#include "keys.h"
#include "main.h"

Include dependency graph for term.c:

Go to the source code of this file.

Defines

#define _TERM_

Functions

char * strcpy ()
char ** strcat ()
char *** tgoto ()
char **** tgetstr ()
char ***** getenv ()
static VOID handle (char *c)
VOID inittty ()
VOID resettty ()
STATIC char * getcap (char *cap)
VOID ini_terminal ()
VOID mgoto (register n)
VOID clrbline ()
 ins_line (l)
VOID home ()
VOID bottom ()
int window ()

Variables

static char rcsid [] = "$Header: /opt/proj/minix/cvsroot/src/commands/yap/term.c,v 1.1.1.1 2005/04/21 14:55:41 beng Exp $"
static char tcbuf1 [1024]
static char * ptc
static char tcbuf [1024]
short ospeed
char PC
char * UP
static char * ll
linelist _X [100]
static struct sgttyb _tty _svtty


Define Documentation

#define _TERM_
 

Definition at line 11 of file term.c.


Function Documentation

VOID bottom  ) 
 

Definition at line 460 of file term.c.

References BO, fputch(), maxpagesize, mgoto(), and tputs().

Referenced by clrbline(), mgoto(), and SetUpScreen().

VOID clrbline  ) 
 

Definition at line 426 of file term.c.

References bottom(), CE, clrtoeol, insert_line, maxpagesize, putline(), and stupid.

Referenced by give_prompt(), n_or_rn_search(), quit(), readline(), ret_to_continue(), scrollb(), scrollf(), and shellescape().

STATIC char* getcap char *  cap  ) 
 

Definition at line 231 of file term.c.

References ptc, s, and tgetstr().

char* * * * * getenv  ) 
 

static VOID handle char *  c  )  [static]
 

Definition at line 62 of file term.c.

References isused().

Referenced by inittty().

VOID home  ) 
 

Definition at line 454 of file term.c.

References fputch(), HO, and tputs().

VOID ini_terminal  ) 
 

Definition at line 244 of file term.c.

References _X, addstring(), AL, AM, BC, BO, CE, cflag, CL, CM, COLS, DB, getcap(), getenv(), getpid, hardcopy, HO, i, initkeys(), inittty(), ioctl, LINES, ll, lp, maxpagesize, mb, MD, ME, mr, nflag, pagesize, panic, PC, ptc, s, scrollsize, SE, SO, sppat, SR, strcat(), strcpy(), stupid, TA, tcbuf, tcbuf1, TE, tgetent(), tgetflag(), tgetnum(), tgoto(), TI, TIOCGPGRP, UC, UE, uflag, UP, US, VOID, and XN.

Referenced by initialize().

VOID inittty  ) 
 

Definition at line 73 of file term.c.

References _svtty, _tty, CBREAK, cfgetospeed, CRMOD, ECHO, ECHOE, ECHOK, ECHONL, erasech, expandtabs, handle(), ICANON, ioctl, isused(), IXON, killch, LCASE, OPOST, ospeed, p, RAW, tcgetattr, TCSANOW, tcsetattr, TIOCGETC, TIOCGETP, TIOCSETC, TIOCSETP, TIOCSPGRP, VERASE, VINTR, VKILL, VMIN, VQUIT, VTIME, and XTABS.

Referenced by ini_terminal(), and shellescape().

ins_line  ) 
 

Definition at line 448 of file term.c.

References AL, fputch(), maxpagesize, tgoto(), and tputs().

VOID mgoto register  n  ) 
 

Definition at line 398 of file term.c.

References BO, bottom(), CM, fputch(), home, maxpagesize, putline(), tgoto(), tputs(), and UP.

Referenced by bottom(), and scrollf().

VOID resettty  ) 
 

Definition at line 202 of file term.c.

References _svtty, flush, ioctl, putline(), TCSANOW, tcsetattr, TE, TIOCSETC, TIOCSETP, and TIOCSPGRP.

Referenced by quit(), and shellescape().

char* * strcat  ) 
 

char* strcpy  ) 
 

char* * * * tgetstr  ) 
 

char* * * tgoto  ) 
 

int window  ) 
 

Definition at line 467 of file term.c.

References BO, CM, COLS, ioctl, LINES, ll, maxpagesize, pagesize, scrollsize, strcpy(), tgoto(), TIOCGWINSZ, VOID, winsize::ws_col, and winsize::ws_row.


Variable Documentation

struct sgttyb _tty _svtty [static]
 

Definition at line 51 of file term.c.

Referenced by inittty(), and resettty().

struct linelist _X[100]
 

Definition at line 41 of file term.c.

char* ll [static]
 

Definition at line 39 of file term.c.

Referenced by __diff(), aside(), findwhen(), ini_terminal(), ivdrink(), scrollf(), veat(), and window().

short ospeed
 

Definition at line 36 of file term.c.

char PC
 

Definition at line 37 of file term.c.

char* ptc [static]
 

Definition at line 34 of file term.c.

Referenced by getcap(), and ini_terminal().

char rcsid[] = "$Header: /opt/proj/minix/cvsroot/src/commands/yap/term.c,v 1.1.1.1 2005/04/21 14:55:41 beng Exp $" [static]
 

Definition at line 8 of file term.c.

char tcbuf[1024] [static]
 

Definition at line 35 of file term.c.

Referenced by getcap(), and ini_terminal().

char tcbuf1[1024] [static]
 

Definition at line 33 of file term.c.

Referenced by ini_terminal().

char* UP
 

Definition at line 38 of file term.c.


Generated on Fri Apr 14 23:07:39 2006 for minix by  doxygen 1.4.6