1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:37:42 +00:00
serenity/Userland/Libraries/LibVT
Daniel Bertalan ae6bdc4e29 LibVT+Kernel: Clean up scroll API
This commit cleans up some of the `#ifdef`-ed code smell in
`Terminal`, by extending the scroll APIs to take a range of lines as a
parameter. This makes it possible to use the same code for `IL`/`DL` as
for scrolling.

Note that the current scrolling implementation is very naive, and does
many insertions/deletions in the middle of arrays, whereas swaps should
be enough. This optimization will come in a later commit.

The `linefeed` override was removed from `VirtualConsole`. Previously,
it exhibited incorrect behavior by moving to column 0. Now that we use
the method defined in `Terminal`, code which relied on this behavior
stopped working. We go instead go through the TTY layer which handles
the various output flags. Passing the input character-by-character
seems a bit excessive, so a fix for it will come in another PR.
2021-06-10 17:18:02 +02:00
..
Attribute.h LibVT+Kernel: Create Color class 2021-06-04 09:02:43 +01:00
CMakeLists.txt Meta: Make generate_state_machine() generate a proper target 2021-05-20 12:11:27 +01:00
Color.h LibVT: Implement bright color support 2021-06-04 09:02:43 +01:00
EscapeSequenceParser.cpp Everywhere: codepoint => code point 2021-06-01 10:01:11 +02:00
EscapeSequenceParser.h LibVT: Implement new ANSI escape sequence parser 2021-05-16 11:50:56 +02:00
Line.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Line.h Kernel/Graphics + SystemServer: Support text mode properly 2021-05-16 19:58:33 +02:00
Position.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Range.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
StateMachine.txt LibVT: Fix UTF-8 handling in OSC sequences 2021-05-22 23:23:08 +02:00
Terminal.cpp LibVT+Kernel: Clean up scroll API 2021-06-10 17:18:02 +02:00
Terminal.h LibVT+Kernel: Clean up scroll API 2021-06-10 17:18:02 +02:00
TerminalWidget.cpp LibVT: Fix underlines incorrectly rendering in red 2021-06-04 09:02:43 +01:00
TerminalWidget.h LibVT: Implement bright color support 2021-06-04 09:02:43 +01:00
XtermColors.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00