diff options
Diffstat (limited to 'lldb/source/Host/common/Terminal.cpp')
-rw-r--r-- | lldb/source/Host/common/Terminal.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/source/Host/common/Terminal.cpp b/lldb/source/Host/common/Terminal.cpp index ce0e15fb610..89d21cf0bf6 100644 --- a/lldb/source/Host/common/Terminal.cpp +++ b/lldb/source/Host/common/Terminal.cpp @@ -120,6 +120,15 @@ TerminalState::~TerminalState() { } +void +TerminalState::Clear () +{ + m_tty.Clear(); + m_tflags = -1; + m_termios_ap.reset(); + m_process_group = -1; +} + //---------------------------------------------------------------------- // Save the current state of the TTY for the file descriptor "fd" // and if "save_process_group" is true, attempt to save the process |