xref: /freebsd/contrib/nvi/ex/script.h (revision d7d962ead0b6e5e8a39202d0590022082bf5bfb6)
1 /*-
2  * Copyright (c) 1993, 1994
3  *	The Regents of the University of California.  All rights reserved.
4  * Copyright (c) 1993, 1994, 1995, 1996
5  *	Keith Bostic.  All rights reserved.
6  *
7  * See the LICENSE file for redistribution information.
8  */
9 
10 struct _script {
11 	pid_t	 sh_pid;		/* Shell pid. */
12 	int	 sh_master;		/* Master pty fd. */
13 	int	 sh_slave;		/* Slave pty fd. */
14 	char	*sh_prompt;		/* Prompt. */
15 	size_t	 sh_prompt_len;		/* Prompt length. */
16 	char	 sh_name[64];		/* Pty name */
17 	struct winsize sh_win;		/* Window size. */
18 	struct termios sh_term;		/* Terminal information. */
19 };
20