Table of Contents
Note: This API call is for DOS and Win16 personality only. Use Family API for portability.
Int 21H, AH=0AH
Version
1 and higher
Brief
BUFFERED INPUT
Family API
Input
AH = 0Ah DS:DX -> buffer (see #01344)
Return
buffer filled with user input
Notes
^C/^Break are checked, and INT 23 is called if either detected reads from standard input, which may be redirected under DOS 2+
if the maximum buffer size is set to 00h, this call returns immediately without reading any input
Format of DOS input buffer:
Offset | Size | Description |
---|---|---|
00h | BYTE | maximum characters buffer can hold |
01h | BYTE | (call) number of chars from last input which may be recalled (ret) number of characters actually read, excluding CR |
02h | N BYTEs | actual characters read, including the final carriage return |
See also
AH=0Ch,INT 2F/AX=4810h
Note
Text based on Ralf Brown Interrupt List Release 61
osFree Macro Library | |
---|---|
Video I/O | @SetMode @SetCurSz @SetCurPos @GetCur @SetPage @ScrollUp @ScrollDn @Scroll @GetChAtr @PutChAtr @PutCh @SetPalet @SetColor @SetDot @GetDot @WrtTTY @VideoState @GetMode @GetDisplay @GetVideoState @GetEGAInfo @Cls |
Hardware info | @Equipment @MemSize |
Serial I/O | @AuxInit @AuxSendChar @AuxRecieveChar @AuxStatus |
Tape I/O | @TapeOn @TapeOff @TapeRead @TapeWrite |
Keyboard I/O | @KbdStatus @CharIn @CharPeek |
Printer I/O | @PrnPrint @PrnInit @PrnStatus |
Disk I/O | @DskReset @DskStatus @DskRead @DskWrite @DskVerify @DskFormat |
Date and Time | @SetTime @GetTime |
Mouse | @MouInit @MouShowPointer @MouStatus @MouSetPos @MouSetMickey @MouRegion |
Memory manager | @ModBlok SET_BLOCK |