mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 17:57:35 +00:00
TerminalSettings: Provide default values for terminal settings
The change ensures that functions that parse string values for terminal settings fall back to a default value, if there is no value present or the value is invalid.
This commit is contained in:
parent
1df31e426d
commit
2850bb881a
2 changed files with 8 additions and 8 deletions
|
@ -28,8 +28,8 @@ private:
|
|||
ErrorOr<void> setup();
|
||||
void write_back_settings() const;
|
||||
|
||||
static VT::TerminalWidget::BellMode parse_bell(StringView bell_string);
|
||||
static VT::TerminalWidget::AutoMarkMode parse_automark_mode(StringView automark_mode);
|
||||
static Optional<VT::TerminalWidget::BellMode> parse_bell(StringView bell_string);
|
||||
static Optional<VT::TerminalWidget::AutoMarkMode> parse_automark_mode(StringView automark_mode);
|
||||
static ByteString stringify_bell(VT::TerminalWidget::BellMode bell_mode);
|
||||
static ByteString stringify_automark_mode(VT::TerminalWidget::AutoMarkMode automark_mode);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue