Debian Codegraph @

README.md

raw symbols SCIP
1 #VT100
2
3 [![Build Status](https://travis-ci.org/jaguilar/vt100.svg?branch=master)](https://travis-ci.org/jaguilar/vt100)
4
5 [![GoDoc](https://godoc.org/github.com/jaguilar/vt100?status.svg)](https://godoc.org/github.com/jaguilar/vt100)
6
7 This is a vt100 screen reader. It seems to do a pretty
8 decent job of parsing the nethack input stream, which
9 is all I want it for anyway.
10
11 Here is a screenshot of the HTML-formatted screen data:
12
13 ![](_readme/screencap.png)
14
15 The features we currently support:
16
17 * Cursor movement
18 * Erasing
19 * Many of the text properties -- underline, inverse, blink, etc.
20 * Sixteen colors
21 * Cursor saving and unsaving
22 * UTF-8
23
24 Not currently supported (and no plans to support):
25
26 * Scrolling
27 * Prompts
28 * Other cooked mode features
29
30 The API is not stable! This is a v0 package.
31
32 ## Demo
33
34 Try running the demo! Install nethack:
35
36 sudo apt-get install nethack
37
38 Get this code:
39
40 go get github.com/jaguilar/vt100
41 cd $GOPATH/src/githib.com/jaguilar/vt100
42
43 Run this code:
44
45 go run demo/demo.go -port=8080 2>/tmp/error.txt
46
47 Play some nethack and check out the resulting VT100 terminal status:
48
49 # From another terminal . . .
50 xdg-open http://localhost:8080/debug/vt100
51
52 The demo probably assumes Linux (it uses pty-related syscalls). I'll happily
53 accept pull requests that replicate the pty-spawning functions on OSX and
54 Windows.