Skip to content
Snippets Groups Projects
Commit 9eadc333 authored by John Hodge's avatar John Hodge
Browse files

Kernel/VTerm - Minor cleanup to VT input (remove logging)

parent 98bd9c0c
Branches
No related merge requests found
...@@ -75,6 +75,9 @@ void VT_KBCallBack(Uint32 Codepoint) ...@@ -75,6 +75,9 @@ void VT_KBCallBack(Uint32 Codepoint)
switch(term->RawScancode) switch(term->RawScancode)
{ {
case KEYSYM_DELETE:
// TODO: Reboot, or poke secure registered app
return;
case KEYSYM_F1 : VT_SetTerminal(0); return; case KEYSYM_F1 : VT_SetTerminal(0); return;
case KEYSYM_F2 : VT_SetTerminal(1); return; case KEYSYM_F2 : VT_SetTerminal(1); return;
case KEYSYM_F3 : VT_SetTerminal(2); return; case KEYSYM_F3 : VT_SetTerminal(2); return;
...@@ -106,9 +109,7 @@ void VT_KBCallBack(Uint32 Codepoint) ...@@ -106,9 +109,7 @@ void VT_KBCallBack(Uint32 Codepoint)
case KEYSYM_PGUP: case KEYSYM_PGUP:
if( term->Flags & VT_FLAG_ALTBUF ) if( term->Flags & VT_FLAG_ALTBUF )
return ; return ;
Log_Debug("VTerm", "ScrollUp - Old=%i, step=%i", term->ViewTopRow, scroll_step);
term->ViewTopRow = (term->ViewTopRow > scroll_step ? term->ViewTopRow - scroll_step : 0); term->ViewTopRow = (term->ViewTopRow > scroll_step ? term->ViewTopRow - scroll_step : 0);
Log_Debug("VTerm", "ScrollUp - New=%i", term->ViewTopRow);
VT_int_UpdateScreen(term, 1); VT_int_UpdateScreen(term, 1);
return; return;
// - View down (text goes up) // - View down (text goes up)
...@@ -116,9 +117,7 @@ void VT_KBCallBack(Uint32 Codepoint) ...@@ -116,9 +117,7 @@ void VT_KBCallBack(Uint32 Codepoint)
if( term->Flags & VT_FLAG_ALTBUF ) if( term->Flags & VT_FLAG_ALTBUF )
return ; return ;
Log_Debug("VTerm", "ScrollDown - Old=%i, max=%i", term->ViewTopRow, scroll_max);
term->ViewTopRow = MIN(term->ViewTopRow + scroll_step, scroll_max); term->ViewTopRow = MIN(term->ViewTopRow + scroll_step, scroll_max);
Log_Debug("VTerm", "ScrollDown - New=%i", term->ViewTopRow);
VT_int_UpdateScreen(term, 1); VT_int_UpdateScreen(term, 1);
return; return;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment