9#ifndef LLDB_HOST_TERMINAL_H
10#define LLDB_HOST_TERMINAL_H
13#include "llvm/Support/Error.h"
55 llvm::Error
SetEcho(
bool enabled);
A RAII-friendly terminal state saving/restoring class.
~TerminalState()
Destroy the instance, restoring terminal state if saved.
int m_tflags
Cached tflags information.
bool TFlagsIsValid() const
Test if tflags is valid.
bool Save(Terminal term, bool save_process_group)
Save the TTY state for fd.
std::unique_ptr< Terminal::Data > m_data
Platform-specific implementation.
bool TTYStateIsValid() const
Test if ttystate is valid.
bool Restore() const
Restore the TTY state to the cached state.
Terminal m_tty
A terminal.
lldb::pid_t m_process_group
Cached process group information.
bool IsValid() const
Test for valid cached TTY state information.
bool ProcessGroupIsValid() const
Test if the process group information is valid.
llvm::Error SetEcho(bool enabled)
int GetFileDescriptor() const
llvm::Error SetParityCheck(ParityCheck parity_check)
llvm::Error SetCanonical(bool enabled)
llvm::Error SetBaudRate(unsigned int baud_rate)
bool FileDescriptorIsValid() const
llvm::Error SetData(const Data &data)
llvm::Error SetHardwareFlowControl(bool enabled)
llvm::Expected< Data > GetData()
llvm::Error SetParity(Parity parity)
llvm::Error SetStopBits(unsigned int stop_bits)
void SetFileDescriptor(int fd)
A class that represents a running process on the host machine.