Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- TCXL Database - kwgetyn, kvgetyn http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
KwGetYn, KvGetYn

Get a Yes/No response from the keyboard, with echo.

Header File.....TCXLinp.h

Prototype.......ChrT CTYP KwGetYn(ChrT cd);
                ChrT CTYP KvGetYn(ChrT cd);

Source File.....INP\KWGETYN.C
                INP\KVGETYN.C

Arguments.......cd -  The Default Value (0=No, 1=Yes)

Returns.........'Y' if Yes was selected, an 'N' if No was selected, or a
                '\0' if the user pressed  Esc  and Escape checking was on.

Notes...........Gets a  Y es or  N o response from the keyboard.  Entered
                characters will be echoed to the active window using the
                current text attribute (See Appendix A), or to the Standard
                Output device.  Cursor position is updated.  Escape
                checking is provided by default, but can be turned off with
                the WsetEsc() function.

                Please note that the "acceptable" values for this function
                are dependent on the NLS support provided under DOS.
                Examine the YnoT structure in FMT\_NLSINIT.C for specific
                country information.

                For maximum portability, instead of testing the return
                values here for 'Y' or 'N', test them against NlsYes and
                NlsNo.

See Also: Appendix A

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson