M
mathewsdw@sbcglobal.net
Guest
I have a command-line program that I originally wrote years ago that has a lot of capabilities and options, enough so that it has a fairly complete and detailed help system built into it. Said "help system" is invoked by entering "command-name /?", after which the screen is cleared and a series of "help screens" are displayed, one by one. In cmd.exe, the message "Hit ESC(ape) to quit, any other key to continue." is displayed at the bottom of every help screen. Said program (written in C++) uses the API/library function "GetConsoleScreenBufferInfo" to get information about the number of rows in the screen, and the API/library function "SetConsoleCursorPosition" to move the cursor to the bottom of the screen before writing the "Hit ESC(ape).." message. Problem is, said code does not work at all in "tcmd/tcc". In truth, I don't really know if the call to "GetConsoleScreenBufferInfo" works, but it doesn't really matter because the call to "SetConsoleCursorPosition" definitely does not work, even if I hard-code the screen coordinates of where I want the message to be displayed. The question is, of course, what can I do to fix this, is there a "JPSoft" equivalent of these function(s) that I should be calling? If the answer is "yes" what are they and where can I get them? If not, what are the TCMD/TCC equivalents, if any, to this functionality?