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

Shell: Make ^W and ^U work when cursor is not at the end of the line.

This commit is contained in:
Andreas Kling 2019-05-07 05:29:07 +02:00
parent b04f08ba48
commit 67108f872f
2 changed files with 38 additions and 22 deletions

View file

@ -16,6 +16,9 @@ public:
private:
void clear_line();
void append(const String&);
void vt_save_cursor();
void vt_restore_cursor();
void vt_clear_to_end_of_line();
Vector<char, 1024> m_buffer;
int m_cursor { 0 };