mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
Terminal: Make it so typing resets the cursor blink timer.
Patch contributed by "pd"
This commit is contained in:
parent
96ca8bea6c
commit
561bfd3ed6
1 changed files with 5 additions and 0 deletions
|
@ -1010,6 +1010,11 @@ void Terminal::event(CEvent& event)
|
|||
|
||||
void Terminal::keydown_event(GKeyEvent& event)
|
||||
{
|
||||
// Reset timer so cursor doesn't blink while typing.
|
||||
m_cursor_blink_timer.stop();
|
||||
m_cursor_blink_state = true;
|
||||
m_cursor_blink_timer.start();
|
||||
|
||||
switch (event.key()) {
|
||||
case KeyCode::Key_Up:
|
||||
write(m_ptm_fd, "\033[A", 3);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue