mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add terminal support for ^L.
This commit is contained in:
parent
ddf3dd329f
commit
871469d443
1 changed files with 11 additions and 0 deletions
|
@ -214,6 +214,17 @@ void LogTerminal::ProcessKeystroke(int kbkey)
|
|||
return;
|
||||
}
|
||||
|
||||
if ( termmode & TERMMODE_LINEBUFFER && control && kbkey == KBKEY_L )
|
||||
{
|
||||
while ( linebuffer.CanBackspace() )
|
||||
linebuffer.Backspace();
|
||||
QueueUnicode(KBKEY_ENCODE(KBKEY_ENTER));
|
||||
QueueUnicode('\n');
|
||||
QueueUnicode(KBKEY_ENCODE(-KBKEY_ENTER));
|
||||
Log::PrintF("\e[H\e[2J");
|
||||
return;
|
||||
}
|
||||
|
||||
uint32_t unikbkey = KBKEY_ENCODE(kbkey);
|
||||
QueueUnicode(unikbkey);
|
||||
uint32_t unicode = kblayout->Translate(kbkey);
|
||||
|
|
Loading…
Reference in a new issue