From: John Hodge Date: Tue, 17 Feb 2015 03:03:33 +0000 (+0800) Subject: Kernel/VTerm - Minor cleanup to VT input (remove logging) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=9eadc33399e705035c33e8434a9644d91e44ed44;p=tpg%2Facess2.git Kernel/VTerm - Minor cleanup to VT input (remove logging) --- diff --git a/KernelLand/Kernel/drv/vterm_input.c b/KernelLand/Kernel/drv/vterm_input.c index aa517d9d..15da798e 100644 --- a/KernelLand/Kernel/drv/vterm_input.c +++ b/KernelLand/Kernel/drv/vterm_input.c @@ -75,6 +75,9 @@ void VT_KBCallBack(Uint32 Codepoint) switch(term->RawScancode) { + case KEYSYM_DELETE: + // TODO: Reboot, or poke secure registered app + return; case KEYSYM_F1 : VT_SetTerminal(0); return; case KEYSYM_F2 : VT_SetTerminal(1); return; case KEYSYM_F3 : VT_SetTerminal(2); return; @@ -106,9 +109,7 @@ void VT_KBCallBack(Uint32 Codepoint) case KEYSYM_PGUP: if( term->Flags & VT_FLAG_ALTBUF ) return ; - Log_Debug("VTerm", "ScrollUp - Old=%i, step=%i", term->ViewTopRow, scroll_step); term->ViewTopRow = (term->ViewTopRow > scroll_step ? term->ViewTopRow - scroll_step : 0); - Log_Debug("VTerm", "ScrollUp - New=%i", term->ViewTopRow); VT_int_UpdateScreen(term, 1); return; // - View down (text goes up) @@ -116,9 +117,7 @@ void VT_KBCallBack(Uint32 Codepoint) if( term->Flags & VT_FLAG_ALTBUF ) return ; - Log_Debug("VTerm", "ScrollDown - Old=%i, max=%i", term->ViewTopRow, scroll_max); term->ViewTopRow = MIN(term->ViewTopRow + scroll_step, scroll_max); - Log_Debug("VTerm", "ScrollDown - New=%i", term->ViewTopRow); VT_int_UpdateScreen(term, 1); return; }