1998-01-09 11:03:16 +03:00
|
|
|
/* $NetBSD: script.h,v 1.6 1998/01/09 08:08:14 perry Exp $ */
|
|
|
|
|
1994-01-24 08:52:58 +03:00
|
|
|
/*-
|
1994-08-17 20:35:35 +04:00
|
|
|
* Copyright (c) 1993, 1994
|
1994-01-24 08:52:58 +03:00
|
|
|
* The Regents of the University of California. All rights reserved.
|
1996-05-20 07:47:00 +04:00
|
|
|
* Copyright (c) 1993, 1994, 1995, 1996
|
|
|
|
* Keith Bostic. All rights reserved.
|
1994-01-24 08:52:58 +03:00
|
|
|
*
|
1996-05-20 07:47:00 +04:00
|
|
|
* See the LICENSE file for redistribution information.
|
1994-01-24 08:52:58 +03:00
|
|
|
*
|
1996-05-20 07:47:00 +04:00
|
|
|
* @(#)script.h 10.2 (Berkeley) 3/6/96
|
1994-01-24 08:52:58 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
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 */
|
1996-05-20 07:47:00 +04:00
|
|
|
#ifdef TIOCGWINSZ
|
1994-01-24 08:52:58 +03:00
|
|
|
struct winsize sh_win; /* Window size. */
|
1996-05-20 07:47:00 +04:00
|
|
|
#endif
|
1994-01-24 08:52:58 +03:00
|
|
|
struct termios sh_term; /* Terminal information. */
|
|
|
|
};
|