a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Devices:
 console.device
  CDInputHandler
  CD_ASKDEFAULTKEYMAP
  CD_ASKKEYMAP
  CD_SETDEFAULTKEYMAP
  CD_SETKEYMAP
  CMD_CLEAR
  CMD_READ
  CMD_WRITE
  OpenDevice
  RawKeyConvert
Include
GuruMeditation
Docs » Autodocs » console.device » CMD_READ

NAME

	CMD_READ -- return the next input from the keyboard

FUNCTION

	Read the next input, generally from the keyboard.  The form of
this input is as an ANSI byte stream: i.e. either ASCII text
or control sequences. Raw input events received by the
console device can be selectively filtered via the aSRE and aRRE
control sequences (see the write command). Keys are converted
via the keymap associated with the unit, which is modified
with AskKeyMap and SetKeyMap
If, for example, raw keycodes had been enabled by writing
<CSI>1{ to the console (where <CSI> is $9B or Esc[), keys
would return raw keycode reports with the information from
the input event itself, in the form:
<CSI>1;0;<keycode>;<qualifiers>;0;0;<seconds>;<microseconds>q
If there is no pending input, this command will not be
satisfied, but if there is some input, but not as much as can
fill io_Length, the request will be satisfied with the input
currently available.
IO REQUEST
io_Message mn_ReplyPort set if quick I/O is not possible
io_Device preset by the call to OpenDevice
io_Unit preset by the call to OpenDevice
io_Command CMD_READ
io_Flags IOF_QUICK if quick I/O possible, else zero
io_Length sizeof(*buffer)
io_Data char buffer[]
a pointer to the destination for the characters to read
from the keyboard.

RESULT

	This function sets the error field in the IOStdReq, and fills
in the io_Data area with the next input, and io_Actual with
the number of bytes read.

BUGS

SEE ALSO

<exec/io.h>, <devices/console.h>

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Anarchy

SCX
SNT
ANA
RBS

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se