Core Function InputC

From Sputnik Wiki
Jump to: navigation, search
InputC( <prompt/flag> )

Contents

Description

Capture a char (or info about the char) typed to console window.

Parameters

prompt/flag

Optional; A message to display to user.

OR a boolean of the value TRUE which will cause more information to be given about the key pressed.

See examples.

Return Value

The key pressed or information about the key.

Remarks

None.

Example

Simply read a key the user typed

$c = InputC("Press any key...");
println("You typed $c");

Read more information about the key typed

my List($Key, $KeyChar, $sKey, $sKeyChar, $Modifiers) = InputC(true);
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox