Skip to content

Releases: bash-bastion/bash-term

v0.2.0

06 Apr 03:22
v0.2.0
341b529
Compare
Choose a tag to compare

First release! 🥳

This mainly finalizes the interface and implements most functions. This includes

  • btput
    • Accepts common tput arguments without consulting the terminfo database. Most of these functions are not yet implemented
  • term.*
    • An interface that one would normally expect from a terminal interface - names of functions include term.cursor_to and term.erase_line_start. btput is implemented using these functions

Because terminals may not behave as expected, there is a test for the BASH_TTY_FORCE_TPUT variable. If it is set, then it will fallback to just calling tput. But uhm, I sort of just realized this is a dumb idea right now - so it's quite probable this "feature" will be removed in the next release

Again, both of these are substantially faster than tput. Only the most common tput arguments will be supported (ones that are supported by essentially all VT100/VT220 terminal emulators)