Function 0Ah Buffered Keyboard Input
Reads characters from STDIN and places them in the buffer beginning
at the third byte.
entry AH 0Ah
DS:DX pointer to an input buffer
note 1) Min buffer size = 1, max = 255
2) Char is checked for ctrl-C. If ctrl-C is detected, executes int 23h.
3) Format of buffer DX:
1 Maximum number of chars the buffer will take, including CR.
Reading STDIN and filling the buffer continues until a carriage
return (Enter or 0Dh) is read. If the buffer fills to one less
than the maximum number the buffer can hold, each additional
number read is ignored and ASCII 7 (BEL) is output to the
display until a carriage return is read. (you must set this
2 Actual number of characters received, excluding the carriage
return, which is always the last character. (the function sets
3-n Characters received are placed into the buffer starting here.
Buffer must be at least as long as the number in byte 1.
4) Input is redirectable. If redirected, there is no way to check EOF.
5) The string may be edited with the standard DOS editing commands as it
is being entered.
6) Extended ASCII characters are stored as 2 bytes, the first byte being
|file: /Techref/INT/21f/0a.htm, 1KB, , updated: 1999/4/26 11:31, local time: 2023/11/30 12:31,
|©2023 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.massmind.org/techref/INT/21f/0a.htm"> INT 21f 0a</A>
|Did you find what you needed?|
Welcome to massmind.org!
Welcome to www.massmind.org!