| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.txt | 2025-07-08 | 1.8 kB | |
| strng.pas | 2025-07-08 | 17.6 kB | |
| CPCmonitor.lpr | 2025-07-08 | 395 Bytes | |
| CPCmonitor.lps | 2025-07-08 | 6.7 kB | |
| cpcmonitor.pas | 2025-07-08 | 230 Bytes | |
| CPCmonitor.res | 2025-07-08 | 4.6 kB | |
| datasaveandload.pas | 2025-07-08 | 10.9 kB | |
| basicsh.pas | 2025-07-08 | 286.8 kB | |
| cpcmonitor.lfm | 2025-07-08 | 150 Bytes | |
| CPCmonitor.lpi | 2025-07-08 | 2.2 kB | |
| CPCmonitor.ico | 2025-07-08 | 2.7 kB | |
| Totals: 11 Items | 334.0 kB | 0 | |
This is Version 0.3 Beta of 07/08/2025
Must commands are working
tested only with Linux and httpd (OpenBSD) Webserver
Linux:
Put the basicsh binary (optional CPCmonitor binary) into your preferred bin directory. You can add a soft link bs -> basicsh if you want.
Graphic and Sound:
CPCmonitor or CPCmonitor.exe is needed to see and hear graphic and sound. Try the |GUI command. But be aware to type your commands into the shell, you see them in the CPCmonitor app.
If your shell supports Sixel (as "Konsole" does), you can start the |SIXELMODE
OpenBSD
if you want to compile the source for a web server you have to change the {$DEFINE WEBSERVER_NO} to {$DEFINE WEBSERVER_YES} in the begin of the basicsh.pas file.
1. create the /var/www/bin directory and a /var/www/tmp directory and the /var/www/usr/lib directory
2. put the basicsh binary (for webserver) in /var/www/bin
3. create a file bas-cgi.sh in it:
#!/bin/sh
pid=/tmp/$$
/bin/basicsh "htdocs/$HTTP_HOST/$DOCUMENT_URI" --nologo --stdoutfile=$pid
cat $pid
rm $pid
4. chmod 755 /var/www/bin/bas-cgi.sh
5. test "ldd basicsh" and copy the needed libs into /var/www/usr/lib
6. change the httpd.conf file:
server "default" {
listen on * port 80
root "/htdocs"
location "*.bas" {
fastcgi socket "/run/slowcgi.sock"
root "/bin/bas-cgi.sh"
}
}
7.
rcctl enable slowcgi
rcctl start slowcgi
rcctl restart httpd relayd
8. create a hello works program hello.bas:
10 |HTMLSTART
20 a$="Hello World!"
30 PRINT "<html><body>";a$:PRINT "</body></html>"
40 BYE
There are the following web-sprecific commands:
|HTMLSTART
|GET
|POST
|COOKIE
and REPLACE$ is often useful in web applications
Help:
try the HELP command
There are some few new commands.