Navigation:  thinBasic Modules > Console >

Console_InkeyB

Previous pageReturn to chapter overviewNext page

 

Description

 

Read a keyboard character event from the console input buffer.

Function will return immediately.

 

Syntax

 

s = Console_InkeyB

 

Returns

 

String

 

Parameters

 

Name

Type

Optional

Meaning

None




 

Remarks

 

Function will return different string length depending on event:

Len

Meaning

0

Nothing in the input buffer

1

A standard keyboard key was pressed

2

An extended keyboard key was pressed. In this case the first char is zero, while the second is the extended keyboard code.

 

Position

Type

1

Zero

2

Extended keyboard code

 

 

 

Restrictions

 

See also

 

Examples