Termenv Versions Save

Advanced ANSI style & color support for your terminal applications

v0.8.0

3 years ago

Fixed:

  • Reliably query terminal on high latency connections (#27)
  • Detect screen/tmux sessions (#28)
  • Fix TemplateFuncs example (#22)

Added:

  • Add Profile.FromColor to convert a color.Color interface to a termenv Color (#24)

v0.7.4

3 years ago

Fixed:

  • Handle more COLORTERM env var values & behavior in tmux/screen

v0.7.3

3 years ago

Fixed:

  • Support for Solaris/illumos

v0.7.2

3 years ago

Fixed:

  • Fix storing/restoring term state on Linux

Added:

  • EnvNoColor: returns whether the environment variables explicitly disable color output
  • EnvColorProfile: returns the color profile based on environment variables set

v0.7.1

3 years ago

Fixed:

  • Use golang.org/x/sys/unix to work around syscall differences

v0.7.0

3 years ago

Added:

  • ANSI color name constants

Fixed:

  • Retry sysSelect in Darwin on EINTR

v0.6.0

3 years ago

Changes:

  • Optimize ClearLines by reducing it to a single print statement

Added:

  • Add function for setting terminal scrolling region (aka CSR)
  • Implement cursor back/forward functions
  • Add sequences and functions for saving and restoring the cursor
  • Add sequences and functions for line insertion and deletion
  • Add mouse sequences and functions (#8)
  • Add Style.Width, which returns the width of printable runes

Fixed:

  • Fix missing color conversion in ansi256ToANSIColor

v0.5.2

4 years ago

Fixed:

  • Make ClearLines use the more commonly supported CursorUp sequence

v0.5.1

4 years ago

Fixed:

  • Make the status reports work reliably in macOS Terminal

v0.5.0

4 years ago

Added:

  • Screen/cursor control methods

Fixed:

  • Reading status reports with variable length and corrupt termination
  • nil pointer panic when user passes the empty string as a color value