phronmophobic / membrane.term

A terminal emulator in pure clojure
Eclipse Public License 1.0
53 stars 1 forks source link

Refine command line support #7

Closed lread closed 2 years ago

lread commented 2 years ago
lread commented 2 years ago

Lemme know watcha think. Even though I reviewed several times, I'm sure there must be some typos for you to find!

lread commented 2 years ago

New error reporting for #5

> clj -M:membrane.term run-term --color-scheme :foobar
*
* Error: --color-scheme: unable to open path, :foobar (No such file or directory)
*

membrane.term

Usage:
  membrane.term run-term   [--width=<cols>] [--height=<rows>] [--color-scheme=<path>]
  membrane.term screenshot --play=<path> [--width=<cols>] [--height=<rows>] [--color-scheme=<path>] [--out=<file>] [--line-delay=<ms>] [--final-delay=<ms>]
  membrane.term --help

Common Options:
  -w, --width=<cols>         Width in characters [default: 90]
  -h, --height=<rows>        Height in characters [default: 30]
  -s, --color-scheme=<path>  Local path or url to iTerm .itermcolors scheme file, uses internal scheme by default.

Screenshot Options:
  -p, --play=<path>          Path to script to play in terminal
  -o, --out=<file>           Filename of the image to generate [default: terminal.png]
  -l, --line-delay=<ms>      Delay in ms to wait after each line is sent to the terminal [default: 1000]
  -f, --final-delay=<ms>     Delay in ms to wait before writing the view of the terminal [default: 10000]

Replace membrane.term with your appropriate Clojure tools CLI launch sequence. For example:
|
| clojure -M:membrane.term run-term -w 133 -h 60
|
phronmophobic commented 2 years ago

So good! Thank you!

lread commented 2 years ago

Cool, glad it works for you too!