WikiPendium

(beta)

Crawcin()

WikiPendium :: RecentChanges :: RecentlyCommented :: UserSettings :: You are ec2-3-142-197-198.us-east-2.compute.amazonaws.com

Crawcin()

(Char RAW Console INput)

LONG Crawcin( VOID )


Crawcin() is similar to Cnecin(), however it does not process any special keys, like Control-C. As with Cnecin(), the inputted character is not echoed.

Opcode

7 (0x07)

Availability

All GEMDOS versions.

Binding

	move.w	#$07,-(sp)
	trap	#1
	addq.l	#2,sp


Return Value

The LONG value returned is a bit array arranged as follows:

Bits 31-24 Bits 23-16 Bits 15-8 Bits 7-0
Shift key status(see below) Keyboard scancode Unused (0) ASCII code of character

The ASCII code of the character will be 0 if a non-ascii keyboard key is struck.

Caveats

When using this function while its handle is redirected, an end-of-file condition will hang the system. GEMDOS version 0.30 and all MiNT versions correct this bug.
MiNT returns MINT_EOF (0xFF1A) when the end-of-file is reached.

Comments

The shift key status will only be returned when bit 3 of the system variable conterm (char *(0x484)) is set. This is normally not enabled.

If the handle has been redirected, the inputted character will appear in the lower 8 bits of the return value.

Under normal circumstances, when GEMDOS handle 0 is being read from, no special system keys, including Control-C, are checked.

See Also

Cnecin(), Cconin(), Crawio(), Bconin()

Il n'y a pas de commentaire sur cette page. [Afficher commentaires/formulaire]