Fix ^C not clearing the line buffer.
This commit is contained in:
parent
bfd013ab10
commit
945c769daf
|
@ -130,6 +130,8 @@ namespace Sortix
|
||||||
if ( kbkey == -KBKEY_LCTRL ) { control = false; }
|
if ( kbkey == -KBKEY_LCTRL ) { control = false; }
|
||||||
if ( mode & TERMMODE_SIGNAL && control && kbkey == KBKEY_C )
|
if ( mode & TERMMODE_SIGNAL && control && kbkey == KBKEY_C )
|
||||||
{
|
{
|
||||||
|
while ( linebuffer.CanBackspace() )
|
||||||
|
linebuffer.Backspace();
|
||||||
pid_t pid = Process::HackGetForegroundProcess();
|
pid_t pid = Process::HackGetForegroundProcess();
|
||||||
Process* process = Process::Get(pid);
|
Process* process = Process::Get(pid);
|
||||||
if ( process )
|
if ( process )
|
||||||
|
|
Loading…
Reference in New Issue