private static void MoveUp()
{
if (historyPosn == -1) {
if (History.Count > 0) {
historySave = new String(buffer, 0, length);
historyPosn = 0;
SetCurrent(History.GetHistory(historyPosn));
}
} else if ((historyPosn + 1) < History.Count) {
++historyPosn;
SetCurrent(History.GetHistory(historyPosn));
} else {
Console.Beep();
}
}