freebsd-dev/contrib/nvi/ex/script.h
Peter Wemm b8ba871bd9 Import of nvi-1.79, minus a few bits that we dont need (eg: postscript
files, curses, db, regex etc that we already have).  The other glue will
follow shortly.

Obtained from: Keith Bostic <bostic@bostic.com>
1996-11-01 06:45:43 +00:00

24 lines
655 B
C

/*-
* Copyright (c) 1993, 1994
* The Regents of the University of California. All rights reserved.
* Copyright (c) 1993, 1994, 1995, 1996
* Keith Bostic. All rights reserved.
*
* See the LICENSE file for redistribution information.
*
* @(#)script.h 10.2 (Berkeley) 3/6/96
*/
struct _script {
pid_t sh_pid; /* Shell pid. */
int sh_master; /* Master pty fd. */
int sh_slave; /* Slave pty fd. */
char *sh_prompt; /* Prompt. */
size_t sh_prompt_len; /* Prompt length. */
char sh_name[64]; /* Pty name */
#ifdef TIOCGWINSZ
struct winsize sh_win; /* Window size. */
#endif
struct termios sh_term; /* Terminal information. */
};