Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

keyboard(3)  —  Unix Programmer’s Manual

NAME

keyboard - return an ASCII character

SYNOPSIS

C
char keyboard()

FORTRAN
character function keyboa()

Pascal
function keyboard: char;

DESCRIPTION

Keyboard returns an ASCII character.  It blocks the calling process until a character has been typed.  If more than one character has been typed, the most recently typed character is returned.  If a keyboard key has been queued as a button, it is not considered part of the keyboard.  That is, if the P key has been queued as a button, the keyboard command will not return the character ‘P’.  If the keyboard is queued when keyboard is executed, the character returned will not be entered into the queue. 

SEE ALSO

qkeyboard

NOTE

This command can only be used in immediate mode. 

Silicon Graphics  —  R1c

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026