Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

screen, and without waiting for the user to press the Enter key?

enter key Press screen user waiting
0
10 Posted

screen, and without waiting for the user to press the Enter key?

0

Date: 5 Feb 2002 22:03:03 -0400 The C compilers from Microsoft and Borland offer getch() (or getche() to echo the character); Turbo Pascal has ReadKey. In other programming languages, execute INT 21 AH=8; AL is returned with the character from standard input (possibly redirected). If you don’t want to allow redirection, or you want to capture Ctrl-C and other special keys, use INT 16 AH=10; this will return the scan code in AH and ASCII code (if possible) in AL, but AL=E0 with AH nonzero indicates that one of the gray “extended” keys was pressed. (If your BIOS doesn’t support the extended keyboard, use INT 16 AH=0 not 10.) ——————————————————————————– Subject:

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.