Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter TwoLanguage Overview (continued)

ConsoleGetCharacter Function

Overview

The ConsoleGetCharacter function waits for a single character from the default console window.

Syntax/Parameters

Syntax

int = ConsoleGetCharacter ( );

Parameters

(none)

Return Value

An int containing the character value or a formatted error code on failure.

Remarks

This function only operates on the console version of Legato Basic on the default console window. For other versions, ERROR_FUNCTION_NOT_SUPPORTED will be returned.

Input is retrieved from stdin or the standard input which by default is the keyboard.

This function will wait until a character is received from the input. It does not echo the character to the console window.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic