cpjreynolds / rustty

A terminal UI library
https://docs.rs/rustty
MIT License
153 stars 14 forks source link

Driver implementation improvements #3

Closed cpjreynolds closed 9 years ago

cpjreynolds commented 9 years ago

This pull request improves the current driver implementation.

Rustty now relies on a terminfo database to control the underlying terminal, resulting in far more portability than hard-coding specific escape sequences for arbitrary terminals.

The terminfo database is statically allocated with lazy_static!{} and verified to contain all required functionality on calling Driver::new(). More specific details can be found in the commit messages and comments in the driver module itself.