public bool IsSpecialKey (ConsoleKeyInfo key)
{
if (!inited)
return false;
switch (key.Key) {
case ConsoleKey.Backspace:
return true;
case ConsoleKey.Tab:
return true;
case ConsoleKey.Clear:
return true;
case ConsoleKey.Enter:
cursorLeft = 0;
cursorTop++;
if (cursorTop >= WindowHeight) {
cursorTop--;
//TODO: scroll up
}
return false;
default:
// CStreamWriter will handle writing this key
IncrementX ();
return false;
}
}