- May 20, 2008
If the user does
then a left-pointing arrow appears on the screen. Actually in the console screen buffer is the Unicode character 8592 (0x2190). If a plugin internal variable (_CURCHAR) returns that character like this
then the only tests for it I can find are
Is there any way to test for that character using the more familiar number 27? If, internally, I try WideCharToMultiByte(CP_ACP) on it, I wind up with 63, i.e., the question mark (default unprintable, I suppose).
ReadConsoleOutput(STD_OUT, &ci, cdOne, cdZero, &sr); Sprintf(pszSrgs, L"%c", ci.Char.UnicodeChar); return 0;
IF %@CHAR[%_CURCHAR] == 8592 IF %@UNICODE[%_CURCHAR] == 8592