Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/jaguilar/vt100

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/jaguilar/vt100

  • v0.0.0-20201024211400-81de19cb81a4
  • Source
  • Go
  • Socket score

Version published
Created
Source

#VT100

Build Status

GoDoc

This is a vt100 screen reader. It seems to do a pretty decent job of parsing the nethack input stream, which is all I want it for anyway.

Here is a screenshot of the HTML-formatted screen data:

The features we currently support:

  • Cursor movement
  • Erasing
  • Many of the text properties -- underline, inverse, blink, etc.
  • Sixteen colors
  • Cursor saving and unsaving
  • UTF-8

Not currently supported (and no plans to support):

  • Scrolling
  • Prompts
  • Other cooked mode features

The API is not stable! This is a v0 package.

Demo

Try running the demo! Install nethack:

sudo apt-get install nethack

Get this code:

go get github.com/jaguilar/vt100
cd $GOPATH/src/githib.com/jaguilar/vt100

Run this code:

go run demo/demo.go -port=8080 2>/tmp/error.txt

Play some nethack and check out the resulting VT100 terminal status:

# From another terminal . . .
xdg-open http://localhost:8080/debug/vt100

The demo probably assumes Linux (it uses pty-related syscalls). I'll happily accept pull requests that replicate the pty-spawning functions on OSX and Windows.

FAQs

Package last updated on 24 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc