File: script.h

package info (click to toggle)
vigor 0.016-15
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 5,700 kB
  • ctags: 3,859
  • sloc: ansic: 44,551; sh: 2,941; tcl: 1,544; makefile: 754; perl: 269; awk: 24; csh: 13
file content (23 lines) | stat: -rw-r--r-- 655 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*-
 * 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. */
};