https://github.com/mobluse/telehack-basic
Scripts in BASIC for Telehack.com
https://github.com/mobluse/telehack-basic
basic basic-programming-language fabgl telebasic telehack telnet vga32 vt100 xterm
Last synced: about 2 months ago
JSON representation
Scripts in BASIC for Telehack.com
- Host: GitHub
- URL: https://github.com/mobluse/telehack-basic
- Owner: mobluse
- License: gpl-3.0
- Created: 2023-07-20T03:04:47.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-22T22:05:23.000Z (about 2 years ago)
- Last Synced: 2025-03-13T14:13:41.330Z (7 months ago)
- Topics: basic, basic-programming-language, fabgl, telebasic, telehack, telnet, vga32, vt100, xterm
- Language: BASIC
- Homepage: https://github.com/telehack-foundation
- Size: 30.3 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Telehack BASIC
Scripts in TeleBASIC for [Telehack.com](https://telehack.com/telehack.html). The scripts, except color.bas, are translations of the scripts of the same name in the file [programs.h](https://github.com/fdivitto/FabGL/blob/master/examples/VGA/MultitaskingCPM/src/programs.h) in MultitaskingCPM in [FabGL](https://github.com/fdivitto/FabGL).I use `sed` to extract the programs:
sed -e '/0x/ d' -e 's/^[^"]*\"\(.*\)\".*NL/\1/;s/\\\"/\"/g' programs.h
The BASIC dialect that the example scripts in MultitaskingCPM is using is MBASIC AKA BASIC-80 by Microsoft. This is similar to GW-BASIC, since GWBASIC is a translation to 8086 assembler from MBASIC's 8080 assembler.
Telehack BASIC doesn't have WHILE, WEND, and WIDTH. TeleBASIC don't use % after variables to indicate that they are integers; at least not in practice for functions. In Telehack BASIC all numbers seem to be floats (i.e. doubles). When numbers are printed a space is added before positive numbers as in MBASIC, but STR$() doesn't add a space in TeleBASIC. The editor inside BASIC doesn't seem to handle lines wider than the terminal.
Telehack BASIC claims to be Dartmouth DTSS TeleBASIC (c) 1964,1966,1969,1970,1971,1979, but that cannot be correct (outside the game) since Dartmouth BASIC has matrix operations and TeleBASIC does not.