summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-26 20:28:22 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-27 09:23:06 +0100
commitb7c66233f6650e69c705ea07830e9136b760727a (patch)
tree8bd55100b044203247899ae496dcda66fd4d5a08 /Kernel
parentc58570ebafa7bb5b5e53152067297c8b12a317a7 (diff)
downloadserenity-b7c66233f6650e69c705ea07830e9136b760727a.zip
LibVT: Make VT::Line use a Vector for storage
This is preparation for non-destructive terminal resizing which will require more dynamic storage for lines.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/TTY/VirtualConsole.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/TTY/VirtualConsole.cpp b/Kernel/TTY/VirtualConsole.cpp
index 4f136ab069..9ccddbed95 100644
--- a/Kernel/TTY/VirtualConsole.cpp
+++ b/Kernel/TTY/VirtualConsole.cpp
@@ -293,7 +293,7 @@ void VirtualConsole::flush_dirty_lines()
continue;
for (size_t column = 0; column < line.length(); ++column) {
u32 code_point = line.code_point(column);
- auto attribute = line.attributes()[column];
+ auto attribute = line.attribute_at(column);
u16 vga_index = (visual_row * 160) + (column * 2);
m_current_vga_window[vga_index] = code_point < 128 ? code_point : '?';
m_current_vga_window[vga_index + 1] = attribute_to_vga(attribute);