static void DrawInput()
{
if (Key.Destination != keydest_t.key_console && !_ForcedUp)
return; // don't draw anything
// add the cursor frame
Key.Lines[Key.EditLine][Key.LinePos] = (char)(10 + ((int)(Host.RealTime * _CursorSpeed) & 1));
// fill out remainder with spaces
for (int i = Key.LinePos + 1; i < _LineWidth; i++)
Key.Lines[Key.EditLine][i] = ' ';
// prestep if horizontally scrolling
int offset = 0;
if (Key.LinePos >= _LineWidth)
offset = 1 + Key.LinePos - _LineWidth;
//text += 1 + key_linepos - con_linewidth;
// draw it
int y = _VisLines - 16;
for (int i = 0; i < _LineWidth; i++)
Drawer.DrawCharacter((i + 1) << 3, _VisLines - 16, Key.Lines[Key.EditLine][offset + i]);
// remove cursor
Key.Lines[Key.EditLine][Key.LinePos] = '\0';
}