xref: /minix3/external/bsd/nvi/dist/ex/script.h (revision 84d9c625bfea59e274550651111ae9edfdc40fbd)
1*84d9c625SLionel Sambuc /*	$NetBSD: script.h,v 1.2 2013/11/22 15:52:05 christos Exp $	*/
2*84d9c625SLionel Sambuc /*-
3*84d9c625SLionel Sambuc  * Copyright (c) 1993, 1994
4*84d9c625SLionel Sambuc  *	The Regents of the University of California.  All rights reserved.
5*84d9c625SLionel Sambuc  * Copyright (c) 1993, 1994, 1995, 1996
6*84d9c625SLionel Sambuc  *	Keith Bostic.  All rights reserved.
7*84d9c625SLionel Sambuc  *
8*84d9c625SLionel Sambuc  * See the LICENSE file for redistribution information.
9*84d9c625SLionel Sambuc  *
10*84d9c625SLionel Sambuc  *	Id: script.h,v 10.2 1996/03/06 19:53:00 bostic Exp  (Berkeley) Date: 1996/03/06 19:53:00
11*84d9c625SLionel Sambuc  */
12*84d9c625SLionel Sambuc 
13*84d9c625SLionel Sambuc struct _script {
14*84d9c625SLionel Sambuc 	pid_t	 sh_pid;		/* Shell pid. */
15*84d9c625SLionel Sambuc 	int	 sh_master;		/* Master pty fd. */
16*84d9c625SLionel Sambuc 	int	 sh_slave;		/* Slave pty fd. */
17*84d9c625SLionel Sambuc 	char	*sh_prompt;		/* Prompt. */
18*84d9c625SLionel Sambuc 	size_t	 sh_prompt_len;		/* Prompt length. */
19*84d9c625SLionel Sambuc 	char	 sh_name[64];		/* Pty name */
20*84d9c625SLionel Sambuc #ifdef TIOCGWINSZ
21*84d9c625SLionel Sambuc 	struct winsize sh_win;		/* Window size. */
22*84d9c625SLionel Sambuc #endif
23*84d9c625SLionel Sambuc 	struct termios sh_term;		/* Terminal information. */
24*84d9c625SLionel Sambuc };
25