LLDB mainline
|
#include <Terminal.h>
Classes | |
struct | Data |
Public Types | |
enum class | Parity { No , Even , Odd , Space , Mark } |
enum class | ParityCheck { No , ReplaceWithNUL , Ignore , Mark } |
Public Member Functions | |
Terminal (int fd=-1) | |
~Terminal ()=default | |
bool | IsATerminal () const |
int | GetFileDescriptor () const |
void | SetFileDescriptor (int fd) |
bool | FileDescriptorIsValid () const |
void | Clear () |
llvm::Error | SetEcho (bool enabled) |
llvm::Error | SetCanonical (bool enabled) |
llvm::Error | SetRaw () |
llvm::Error | SetBaudRate (unsigned int baud_rate) |
llvm::Error | SetStopBits (unsigned int stop_bits) |
llvm::Error | SetParity (Parity parity) |
llvm::Error | SetParityCheck (ParityCheck parity_check) |
llvm::Error | SetHardwareFlowControl (bool enabled) |
Protected Member Functions | |
llvm::Expected< Data > | GetData () |
llvm::Error | SetData (const Data &data) |
Protected Attributes | |
int | m_fd |
Friends | |
class | TerminalState |
Definition at line 19 of file Terminal.h.
|
strong |
Enumerator | |
---|---|
No | |
Even | |
Odd | |
Space | |
Mark |
Definition at line 21 of file Terminal.h.
|
strong |
Enumerator | |
---|---|
No | |
ReplaceWithNUL | |
Ignore | |
Mark |
Definition at line 29 of file Terminal.h.
|
inline |
Definition at line 41 of file Terminal.h.
|
default |
|
inline |
Definition at line 53 of file Terminal.h.
References m_fd.
Referenced by lldb_private::TerminalState::Clear().
|
inline |
Definition at line 51 of file Terminal.h.
References m_fd.
Referenced by GetData(), lldb_private::TerminalState::IsValid(), and SetData().
|
protected |
Definition at line 40 of file Terminal.cpp.
References FileDescriptorIsValid(), IsATerminal(), m_fd, and termiosMissingError().
Referenced by SetBaudRate(), SetCanonical(), SetEcho(), SetHardwareFlowControl(), SetParity(), SetParityCheck(), SetRaw(), and SetStopBits().
|
inline |
Definition at line 47 of file Terminal.h.
References m_fd.
Referenced by lldb_private::TerminalState::Restore(), and lldb_private::TerminalState::Save().
bool Terminal::IsATerminal | ( | ) | const |
Definition at line 31 of file Terminal.cpp.
References m_fd.
Referenced by GetData(), lldb_private::TerminalState::Save(), and SetData().
llvm::Error Terminal::SetBaudRate | ( | unsigned int | baud_rate | ) |
Definition at line 273 of file Terminal.cpp.
References GetData(), SetData(), and termiosMissingError().
llvm::Error Terminal::SetCanonical | ( | bool | enabled | ) |
Definition at line 92 of file Terminal.cpp.
References GetData(), SetData(), and termiosMissingError().
Referenced by IOHandlerProcessSTDIO::Run().
|
protected |
Definition at line 61 of file Terminal.cpp.
References FileDescriptorIsValid(), IsATerminal(), m_fd, and termiosMissingError().
Referenced by SetBaudRate(), SetCanonical(), SetEcho(), SetHardwareFlowControl(), SetParity(), SetParityCheck(), SetRaw(), and SetStopBits().
llvm::Error Terminal::SetEcho | ( | bool | enabled | ) |
Definition at line 76 of file Terminal.cpp.
References GetData(), SetData(), and termiosMissingError().
Referenced by IOHandlerProcessSTDIO::Run().
|
inline |
Definition at line 49 of file Terminal.h.
References m_fd.
llvm::Error Terminal::SetHardwareFlowControl | ( | bool | enabled | ) |
Definition at line 379 of file Terminal.cpp.
References GetData(), SetData(), and termiosMissingError().
llvm::Error Terminal::SetParity | ( | Terminal::Parity | parity | ) |
Definition at line 324 of file Terminal.cpp.
References GetData(), Mark, No, Odd, SetData(), Space, and termiosMissingError().
llvm::Error Terminal::SetParityCheck | ( | Terminal::ParityCheck | parity_check | ) |
Definition at line 357 of file Terminal.cpp.
References GetData(), Ignore, Mark, No, SetData(), and termiosMissingError().
llvm::Error Terminal::SetRaw | ( | ) |
Definition at line 108 of file Terminal.cpp.
References GetData(), SetData(), and termiosMissingError().
llvm::Error Terminal::SetStopBits | ( | unsigned int | stop_bits | ) |
Definition at line 299 of file Terminal.cpp.
References GetData(), SetData(), and termiosMissingError().
|
friend |
Definition at line 79 of file Terminal.h.
|
protected |
Definition at line 74 of file Terminal.h.
Referenced by Clear(), FileDescriptorIsValid(), GetData(), GetFileDescriptor(), IsATerminal(), SetData(), and SetFileDescriptor().