summaryrefslogtreecommitdiff
path: root/Libraries/LibVT/Terminal.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-16 19:21:53 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-16 19:30:43 +0200
commitc4edc4c550bc6ec3f8ce452426efd31d872fd71f (patch)
tree414367394dbb923d4d12abecc712b0d5414f6d9c /Libraries/LibVT/Terminal.h
parentcd298446328af0d71a74d31f750fb1326689a3fe (diff)
downloadserenity-c4edc4c550bc6ec3f8ce452426efd31d872fd71f.zip
LibVT: Switch VT::Line to being backed by 32-bit codepoints
This will allow us to have much better Unicode support. It does incur a memory usage regression which we'll have to optimize to cover.
Diffstat (limited to 'Libraries/LibVT/Terminal.h')
-rw-r--r--Libraries/LibVT/Terminal.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Libraries/LibVT/Terminal.h b/Libraries/LibVT/Terminal.h
index 8e11041ac9..ce3c4201d3 100644
--- a/Libraries/LibVT/Terminal.h
+++ b/Libraries/LibVT/Terminal.h
@@ -105,7 +105,7 @@ private:
void scroll_down();
void newline();
void set_cursor(unsigned row, unsigned column);
- void put_character_at(unsigned row, unsigned column, u8 ch);
+ void put_character_at(unsigned row, unsigned column, u32 ch);
void set_window_title(const String&);
void unimplemented_escape();
@@ -188,8 +188,7 @@ private:
Vector<u8> m_xterm_parameters;
Vector<bool> m_horizontal_tabs;
u8 m_final { 0 };
-
- u8 m_last_char { 0 };
+ u32 m_last_codepoint { 0 };
};
}