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 - kwgetcf, kvgetcf http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
KwGetCf, KvGetCf

Get a character (via a format string) from the keyboard with echo.

Header File.....TCXLinp.h

Prototype.......IntT CTYP KwGetCf(ChrP v, ChrT d);
                IntT CTYP KvGetCf(ChrP v, ChrT d);

Source File.....INP\KWGETCF.C
                INP\KVGETCF.C

Arguments.......v  -  Valid Character String
                d  -  Default Selection

Returns.........The ASCII value of the key pressed, or a zero if an error
                      occurred.  On error, TcxlErr contains:
                   W_NOACTIVE  -  No Active Window
                   W_ESCPRESS  -  The  Esc  Key Was Pressed

Notes...........Gets a character from the keyboard.  Allows input only of
                characters listed in the string of valid characters.
                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.

See Also: Appendix A

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