terminal.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* Terminal interface definitions for GDB, the GNU Debugger.
  2. Copyright (C) 1986-2022 Free Software Foundation, Inc.
  3. This file is part of GDB.
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  14. #if !defined (TERMINAL_H)
  15. #define TERMINAL_H 1
  16. struct inferior;
  17. extern void new_tty_prefork (std::string ttyname);
  18. extern void new_tty (void);
  19. extern void new_tty_postfork (void);
  20. extern void copy_terminal_info (struct inferior *to, struct inferior *from);
  21. /* Exchange the terminal info and state between inferiors A and B. */
  22. extern void swap_terminal_info (inferior *a, inferior *b);
  23. extern pid_t create_tty_session (void);
  24. /* Set up a serial structure describing standard input. In inflow.c. */
  25. extern void initialize_stdin_serial (void);
  26. extern void gdb_save_tty_state (void);
  27. /* Take a snapshot of our initial tty state before readline/ncurses
  28. have had a chance to alter it. */
  29. extern void set_initial_gdb_ttystate (void);
  30. #endif /* !defined (TERMINAL_H) */