# ECHO

Updated: 10/14/2021, 2:20:00 PM
Created: 10/14/2021, 2:20:00 PM
Last Updated By: mikes
Read Time: 1 minute(s)

Tags: keyboard entry

# Description

The ECHO statement will turn on or off the echoing of characters typed at the keyboard.

ECHO ON
1

or

ECHO OFF
1

or

ECHO expression
1

Where the statement, if used with the keywords ON and OFF, may serve to specify echoing or not.

If used with an expression, then expression should evaluate to a Boolean TRUE or FALSE result.

TRUE: echoing on

FALSE: echoing off.

# Note

The SYSTEM function is used to determine the current state of character echoing. SYSTEM(24) returns Boolean TRUE if enabled and returns Boolean FALSE if disabled.

An example of use is as:

ECHO OFF
CRT "Enter your password ":
INPUT Password
ECHO ON
1
2
3
4

The above would disable the character input echoing while typing in a password. After the character echoing will be turned back on.

Go back to jBASE BASIC

Go back to Programmers' Reference Guide