2013-12-06 12:04:52 +01:00
|
|
|
/* $NetBSD: script.h,v 1.2 2013/11/22 15:52:05 christos Exp $ */
|
2013-01-22 12:03:53 +01:00
|
|
|
/*-
|
|
|
|
* 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.
|
|
|
|
*
|
2013-12-06 12:04:52 +01:00
|
|
|
* Id: script.h,v 10.2 1996/03/06 19:53:00 bostic Exp (Berkeley) Date: 1996/03/06 19:53:00
|
2013-01-22 12:03:53 +01: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 */
|
|
|
|
#ifdef TIOCGWINSZ
|
|
|
|
struct winsize sh_win; /* Window size. */
|
|
|
|
#endif
|
|
|
|
struct termios sh_term; /* Terminal information. */
|
|
|
|
};
|