1 /* Terminal interface definitions for GDB, the GNU Debugger.
2 Copyright (C) 1986-2017 Free Software Foundation, Inc.
4 This file is part of GDB.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
19 #if !defined (TERMINAL_H)
24 extern void new_tty_prefork (const char *);
26 extern void new_tty (void);
28 extern void new_tty_postfork (void);
30 extern void copy_terminal_info (struct inferior *to, struct inferior *from);
32 /* Do we have job control? Can be assumed to always be the same within
33 a given run of GDB. In inflow.c. */
34 extern int job_control;
36 extern pid_t create_tty_session (void);
38 /* Set the process group of the caller to its own pid, or do nothing if
39 we lack job control. */
40 extern int gdb_setpgid (void);
42 /* Set up a serial structure describing standard input. In inflow.c. */
43 extern void initialize_stdin_serial (void);
45 extern void gdb_save_tty_state (void);
47 /* Take a snapshot of our initial tty state before readline/ncurses
48 have had a chance to alter it. */
49 extern void set_initial_gdb_ttystate (void);
51 /* Set the process group of the caller to its own pid, or do nothing
52 if we lack job control. */
53 extern int gdb_setpgid (void);
55 #endif /* !defined (TERMINAL_H) */