// === CODE ===
/**
* \fn int VT_Install(char **Arguments)
+ * \brief Installs the Virtual Terminal Driver
*/
int VT_Install(char **Arguments)
{
memset(Term->Text, 0, Term->Width*Term->Height*VT_SCROLLBACK*sizeof(tVT_Char));
Term->WritePos = 0;
Term->ViewPos = 0;
+ VT_int_UpdateScreen(Term, 1);
}
break;
// Set Font flags
Term->WritePos ++;
break;
}
+
+ // Move Screen
if(Term->WritePos >= Term->Width*Term->Height*VT_SCROLLBACK)
{
int base, i;
VT_int_UpdateScreen( Term, 1 );
}
+ else if(Term->WritePos > Term->Width*Term->Height+Term->ViewPos)
+ {
+ Term->ViewPos += Term->Width;
+ VT_int_UpdateScreen( Term, 1 );
+ }
else
VT_int_UpdateScreen( Term, 0 );