Skip to content

a-n-t-h-o-n-y/Escape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Escape 🕳️

Terminal Escape Sequence Library

Consists mainly of functions returning escape sequence strings, that, when written to stdout, will alter the appearance or functionality of the terminal emulator.

Also provides a read() function that returns an Event variant for keyboard, mouse and window resize events.

This library tries to be as general as possible and work with as many terminals as possible without relying on the terminfo database.

Please open an issue if you find any bugs.

Note that not all terminals implement these features in the same way.

Future Features

  • Add Terminal_focus_in and Terminal_focus_out Events that are triggered on CSI I and CSI O input sequences. Enabled by Focus Event Mouse 1004. Only if most terminal emulators support this.

  • Add BELL modifier sequences for frequency and duration.

  • Check MacOS support

  • Sixel graphics, but only if most terminal emulators support this.

Known Issues

  • Does not work with: aterm, eterm

  • Some terminal emulators(Konsole) mouse input is always in Mouse_mode::Drag.

About

Terminal Escape Sequence Library in C++17

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published