2017 © Pedro Peláez
 

library tty

TTY/PTY library

image

linkorb/tty

TTY/PTY library

  • Thursday, March 24, 2016
  • by joostfaassen
  • Repository
  • 5 Watchers
  • 5 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 5 % Grown

The README.md

TTY library

This library contains functionality for working with TTY/PTYs and related formats and protocols., (*1)

Included:

  • A ttyrec parser (extracts frames with payload and timing from ttyrec files)
  • A VT100/ANSI Terminal Emulator. Parses escape codes, CSI, OSI etc commands
  • An AsciiRenderer, to render Terminal buffers for replays and debugging
  • Examples in examples/

How to use

composer install
ttyrec tty.log
# execute some commands, like ls, df, etc
exit
php examples/ttyrec-player.php

Notes

When starting this project I had no idea what I was getting in to. VT100 is an insane protocol. I'm keeping notes on things I'm learning along the way in NOTES.md, (*2)

TODO / Next steps:

  • [ ] Extract executed commands from tty sessions (initial goal of this project)
  • [ ] Solid test-cases based on pre-recorded tty sessions
  • [ ] Support more escape codes for coloring, scrolling and other more advanced use-cases

License

MIT. Please refer to the license file for details., (*3)

Brought to you by the LinkORB Engineering team


Check out our other projects at linkorb.com/engineering., (*4)

Btw, we're hiring!, (*5)

The Versions

24/03 2016

dev-master

9999999-dev https://github.com/linkorb/tty

TTY/PTY library

  Sources   Download

MIT

The Development Requires

terminal emulator linkorb vt100 xterm tty pty ttyrec