mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 19:17:44 +00:00
LibVT+TerminalSettings: Move settings parsing functions to LibVT
This change moves the automark and bell settings parsing functions to LibVT, so that they can be shared between Terminal and TerminalSettings.
This commit is contained in:
parent
2850bb881a
commit
5c8962b8f1
4 changed files with 52 additions and 53 deletions
|
@ -28,11 +28,6 @@ private:
|
|||
ErrorOr<void> setup();
|
||||
void write_back_settings() const;
|
||||
|
||||
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);
|
||||
|
||||
VT::TerminalWidget::BellMode m_bell_mode { VT::TerminalWidget::BellMode::Disabled };
|
||||
VT::TerminalWidget::AutoMarkMode m_automark_mode { VT::TerminalWidget::AutoMarkMode::MarkInteractiveShellPrompt };
|
||||
bool m_confirm_close { true };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue