-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ jobs: | |
dist | ||
example | ||
LICENSE.txt | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# MiniScript Web-Terminal | ||
|
||
MiniScript terminal for the Web. | ||
|
||
It allows you to write MiniScript programs that run on a web-terminal. Intrinsics like `print` and `input` interact directly with the terminal. | ||
|
||
The terminal component is [xterm.js](http://xtermjs.org/). As such it supports all [escape sequences](http://xtermjs.org/docs/api/vtfeatures/) that xterm.js is capable of. | ||
|
||
The MiniScript implementation also supports module `import`, either local modules or "lib" modules. Included are the same modules as "command-line" MiniScript. | ||
|
||
## Usage | ||
|
||
Download one of the latest releases from a successful build in the "Actions" of the GitHub project. | ||
|
||
It consists of an "index.html" page and additional files / folders, among them the "lib" folder with "command-line" MiniScript modules. | ||
|
||
Put your MiniScript files directly in the root folder or under a sub-folder of your choice. | ||
|
||
Change "data-src-file" in "index.html" (on the "body" element) to point to | ||
the entry file of your program. | ||
|
||
For example, if you put it in the root folder it would read: | ||
|
||
```html | ||
<body data-src-file="myProgram.ms"> | ||
``` | ||
|
||
And if you put it in a sub-folder it would read: | ||
|
||
```html | ||
<body data-src-file="src/myProgram.ms"> | ||
``` | ||
|
||
You can then serve the contents locally (e.g. with `python3 -m http.server 8080`) or zip them and upload somewhere (e.g. to itch.io). |