instead-hub / instead-cli

INSTEAD interpreter for developers

Home Page:https://instead.hugeping.ru

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

instead-cli

Trivial INSTEAD interpreter for developers.

Build and run

Dependencies: luajit (or lua), iconv.

$ git clone https://github.com/instead-hub/instead-cli.git
$ cd instead-cli
$ git submodule init
$ git submodule update
# edit Makefile if needed
$ make install
$ cd release
$ ./instead-cli

System wide setup:

Edit Makefile.defs.

DESTDIR=/
BIN=/usr/local/bin
STEADPATH=/usr/local/share/instead-cli/

Then:

$ make && sudo make install

9front (Plan9) build

% git/clone https://github.com/instead-hub/instead-cli.git
% mk init
% mk
% mk install

Run

./instead-cli

To pass internal command to STEAD use '/' prefix. Some internal commands:

  • /save filename
  • /load filename
  • /quit
  • /inv
  • /look

Options:

  • -d - debug mode;
  • -dfile - debug mode + write stderr to file;
  • -wnum - line width is num symbols (70 by default);
  • -iscript - read script line by line and use it as commands;
  • -lfile - write all input commands to file;
  • -cpCODEPAGE - Win only (1251 by default), use 65001 for UTF-8;
  • -a - autosave on exit and autoload on start (autosave file);
  • -x - execute lua script;
  • -e - echo input command;
  • -m - enable multimedia output;
  • -mcmd - enable run cmd on multimedia. Examples: -m/usr/bin/xdg-open (Linux), -m/bin/plumb (Plan9), -m"start""" (Windows).

Links

About

INSTEAD interpreter for developers

https://instead.hugeping.ru


Languages

Language:C 91.5%Language:Lua 4.8%Language:Makefile 3.7%