1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:07:34 +00:00

LibVT: Support the DA (Device Attributes) request (final 'c')

This is used by vttest on startup to query the device for identity.
This commit is contained in:
Andreas Kling 2020-01-25 19:12:08 +01:00
parent f4e7aecec2
commit e6f5ce8285
4 changed files with 27 additions and 0 deletions

View file

@ -41,6 +41,7 @@ public:
virtual void set_window_title(const StringView&) = 0;
virtual void terminal_did_resize(u16 columns, u16 rows) = 0;
virtual void terminal_history_changed() = 0;
virtual void emit_char(u8) = 0;
};
struct Attribute {
@ -145,6 +146,8 @@ private:
void unimplemented_escape();
void unimplemented_xterm_escape();
void emit_string(const StringView&);
void escape$A(const ParamVector&);
void escape$B(const ParamVector&);
void escape$C(const ParamVector&);
@ -167,6 +170,7 @@ private:
void escape$T(const ParamVector&);
void escape$L(const ParamVector&);
void escape$h_l(bool, bool, const ParamVector&);
void escape$c(const ParamVector&);
TerminalClient& m_client;