Fix ^C not clearing the line buffer.

This commit is contained in:
Jonas 'Sortie' Termansen 2013-11-03 16:44:16 +01:00
parent bfd013ab10
commit 945c769daf
1 changed files with 2 additions and 0 deletions

View File

@ -130,6 +130,8 @@ namespace Sortix
if ( kbkey == -KBKEY_LCTRL ) { control = false; }
if ( mode & TERMMODE_SIGNAL && control && kbkey == KBKEY_C )
{
while ( linebuffer.CanBackspace() )
linebuffer.Backspace();
pid_t pid = Process::HackGetForegroundProcess();
Process* process = Process::Get(pid);
if ( process )