curx = orgx;
cury = orgy;
//bContinue=TRUE;
- break;
}
+ break;
case _T('D'):
/* delete current history entry */
ConOutPrintf (_T("%s"), str);
GetCursorXY (&curx, &cury);
//bContinue=TRUE;
- break;
}
+ break;
#endif /*FEATURE_HISTORY*/
case _T('M'):
str[charcount] = _T('\0');
ConOutChar (_T('\n'));
bReturn = TRUE;
- break;
}
+ break;
+
+ case _T('H'): /* ^H does the same as VK_BACK */
+ if (dwControlKeyState & (LEFT_CTRL_PRESSED | RIGHT_CTRL_PRESSED))
+ {
+ bCharInput = FALSE;
+ goto DoBackSpace;
+ }
+ break;
}
}
switch (ir.Event.KeyEvent.wVirtualKeyCode)
{
case VK_BACK:
+ DoBackSpace:
/* <BACKSPACE> - delete character to left of cursor */
if (current > 0 && charcount > 0)
{