Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

Terminal Independence

jBASE uses the standard terminfo database supplied on all Unix platforms. For Windows, jBASE provides a terminfo database for several popular terminal.


Terminal I/O is handled via terminfo database, which is usually found in /usr/lib/terminfo or /usr/share/terminfo. The terminfo database is a directory structure containing compiled versions of all available terminal definitions.

jBASE for Unix includes terminfo definitions for several popular terminals and terminal emulators in the $JBCRELEASEDIR/src/terminfo.src directory. These are not compiled into the terminfo database when jBASE is installed, but you are welcome to use them if the standard Unix terminfo is not satisfactory.

To obtain the terminfo source for a particular terminal, use the "infocmp" command:

infocmp vt220

infocmp vt220 > MyNewTermDef

Use any text editor (vim, nano, etc.) to modify or create a new terminfo definition, then use the "tic" command to compile the terminal definition:

tic MyNewTermDef



jBASE for Windows includes terminfo definitions for many common terminals. The source definitions are supplied in the %JBCRELEASEDIR%\src\terminfo.src directory. The standard terminal definitions are compiled from %JBCRELEASEDIR%\src\jbase_nt.ti into a Unix-like terminfo database located at %JBCRELEASEDIR%\misc.

It is possible to import terminal definitions from a Unix system using the "infocmp" command (see above). The output of the infocmp command can be redirected to a text file containing the terminal definition source. Save the terminal definition file in a directory on the Windows system, and use the "jtic" command to compile it into the jBASE terminfo database:

jtic MyNewTermDef

Setting the terminal type

To configure jBASE to use the required terminal definition, set the TERM environment variable or use the jBASE TERM command.

export TERM=vt220 (Unix)
set TERM=vt220 (Windows)
TERM vt220 (jBASE)

Note: in Unix, the backspace character defined by the stty "erase" setting will override the backspace character specified in the terminal definition.

The jtic utility also provides the ability to add extra terminal and printer independent control characters to the @() function in BASIC. It can also be used to extend terminal definitions beyond the normal terminfo capabilities.

Was this article helpful?