SETASCII

Action

Enables/disables ASCII console output. In KiXtart, standard console output is in Unicode, and SetASCII enables you to change this to ASCII, so you can output extended characters, such as line characters.

 

Syntax

SETASCII("mode")

 

Parameters

Mode

String that specifies whether to turn ASCII output on or off. Specifying "ON" will turn ASCII output on, and specifying "OFF" will turn ASCII output off.

Returns

 

"ON" | "OFF"

Previous output state.

 

Example

$previousstate = SetASCII( "ON" )

 

? "═══════════"   ; output ASCII line characters

 

SetASCII( $previousstate )

 

Remarks

SETASCII is only supported for backward compatibility. New scripts should use the SETOPTION function.