[lldb] [Host] Add setters for common teletype properties to Terminal
authorMichał Górny <mgorny@moritz.systems>
Sun, 3 Oct 2021 18:25:01 +0000 (20:25 +0200)
committerMichał Górny <mgorny@moritz.systems>
Thu, 21 Oct 2021 08:33:38 +0000 (10:33 +0200)
commit92fb574c9f20aef56948c51f4921a92efbb72a5b
tree17ff0c4c3a433e8632d6fc152f451681b5b90c9a
parentb37e5187f22fc13079a2f6d0684ccc08ecfdf0a8
[lldb] [Host] Add setters for common teletype properties to Terminal

Add setters for common teletype properties to the Terminal class:

- SetRaw() to enable common raw mode options

- SetBaudRate() to set the baud rate

- SetStopBits() to select the number of stop bits

- SetParity() to control parity bit in the output

- SetHardwareControlFlow() to enable or disable hardware control flow
  (if supported)

Differential Revision: https://reviews.llvm.org/D111030
lldb/include/lldb/Host/Terminal.h
lldb/source/Host/common/Terminal.cpp
lldb/unittests/Host/posix/TerminalTest.cpp