Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jedi4ever/terminal-parser.js
Native Javascript/Nodejs terminal escape codes Parser/Stream
https://github.com/jedi4ever/terminal-parser.js
Last synced: about 1 month ago
JSON representation
Native Javascript/Nodejs terminal escape codes Parser/Stream
- Host: GitHub
- URL: https://github.com/jedi4ever/terminal-parser.js
- Owner: jedi4ever
- Created: 2014-01-07T12:47:08.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-20T20:53:41.000Z (almost 11 years ago)
- Last Synced: 2023-04-10T14:22:19.910Z (over 1 year ago)
- Language: JavaScript
- Size: 467 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/jedi4ever/terminal-parser.js.png)](https://travis-ci.org/jedi4ever/terminal-parser.js)
Nothing see here yet
# Usage
## ttydebug & ttydebugdThis repo contains a utility/binary to debug terminal sessions. It will show the codes/operations that the escape codes in a terminal are doing.
To start a debugging listener/daemon
`$ ttydebugd`To start a new terminal
`$ ttydebug`They both communicate via /tmp/ttydebug socket. If you would like to change it, pass the new name as a param to both binaries
```
{"code":"CHAR","data":" "}
{"code":"OP","ops":[["ATTR","BOLD","ON"]]}
{"code":"OP","ops":[["ATTR","FG",6]]}
{"code":"CHAR","data":"$"}
{"code":"OP","ops":[["ATTR","RESET"]]}
{"code":"CHAR","data":" "}
{"code":"CHAR","data":"df -k"}
{"type":"special","cmd":"BACKSPACE"}
{"type":"special","cmd":"BACKSPACE"}
{"type":"special","cmd":"BACKSPACE"}
{"type":"special","cmd":"BACKSPACE"}
{"type":"special","cmd":"BACKSPACE"}
{"code":"OP","ops":[["ERASE","INLINE",0]]}
{"code":"CHAR","data":"df -k"}
{"code":"CHAR","data":"\r\n"}
{"code":"CHAR","data":"bash: __git_ps1: command not found\r\n"}
{"code":"CHAR","data":"("}
```