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