Here is the complete command list: [Befehlsliste]
The Locomotive BASIC Shell is a versatile BASIC interpreter for Linux, Windows, UNIX and other systems, developed in FreePascal with Lazarus. It closely follows the Locomotive BASIC of the Amstrad CPC and offers a high level of compatibility with the original. The interpreter is suitable for both beginners and experienced users.
In addition, it can run under Linux as a shell replacement or on a web server as a CGI program, enabling the development of dynamic web applications in BASIC. The graphics (SIXEL mode or external display) and sound functions known from the Amstrad CPC are fully supported and can be used seamlessly in both desktop and web applications. On a web server you can output not only text, but also the entire graphics screen or parts of it as HTML images. GET, POST and COOKIE variables are fully supported (tested under OpenBSD).
With the |TAPE command you can save programs and data as WAV files — exactly like on an original Amstrad cassette.
Features:
- full Amstrad CPC command set
- |TAPE for saving files
- graphics output either as SIXEL graphics, via the CPCmonitor program or as web image for web servers
- SQLite support as RSX extension
- JSON support
- MariaDB support (in progress)
- Dybnamic Arrays and longstring support (everywhere)
- New commands: ALIAS, BYE, CIRCLE, EURO$, HELP, LABEL, RECTANGLE, REPLACE$, SIZEOF, |BITMAP, |DIR, |GUI, |JSON, |MYSQL, |SIXELMODE, |PARAMCOUNT, |PARAMSTR, |PRINTSIXEL, PRINTSLOW, |SCROLL, |SHOWALLVARIABLES, |SAVEENVIRONMENT, |LOADENVIRONMENT, |SHOWALLLOOPS, |SHOWKEYBOARD, |SHELLCOMMANDS, |SQLITE, |TEXTMODE' , |WAVEFORM
- graphics screen can also be larger or smaller than the original CPC with extended MODE command
- RGB colours possible by specifying #rrggbb instead of colour code
- SOUND commands will be fully supported in the future (currently complex sounds do not work correctly yet)
- can be used as (Linux) shell, non-BASIC input is interpreted as Linux command if possible
- Can be used as comfortable desk calculator. No need to type ? or PRINT every time, just continue with + or any mathematic sign, in the command line.
- some commands have additional extensions to the standard
Development is primarily done on a Linux system (currently Fedora 45). Windows and other builds will follow later.