Skip to content

Commit

Permalink
add README
Browse files Browse the repository at this point in the history
  • Loading branch information
sebnozzi committed Feb 17, 2024
1 parent be0dcf0 commit 03de369
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ jobs:
dist
example
LICENSE.txt
README.md
34 changes: 34 additions & 0 deletions README.md
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).

0 comments on commit 03de369

Please sign in to comment.