Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Dynamic Images and Padding

Compare
Choose a tag to compare
@dylanaraps dylanaraps released this 31 Dec 00:23
· 5262 commits to master since this release

Changelog:

  • Added flag to disable bold text --nobold
  • Added flag to disable text wrapping --nowrap
  • Moved to using only printf instead of a mix of echo/printf
  • The script now aligns the cursor to the bottom of the
    terminal instead of using a hardcoded amount of newlines
  • Image size and padding is now dynamic, the only difference on the user
    side is that instead of setting a long line of spaces as
    padding, you set your font width. This means that you set the
    var once and the script will just work at any window size.
  • You can disable dynamic images and go back to the old
    behaviour with by using the --size or the in config var.
    $img_auto
  • Manual padding now takes a count, so --padding 10 will pad
    the text 10 spaces.
  • tput is now a dependency because we need (tput cols/lines/cup)
    for the dynamic images and it allows us to support more terminals.
  • Color block width can now be changed with the flag --blockwidth.
    It takes a count like --padding so --blockwidth 10 will make
    the color blocks 10 spaces wide.

Let me know if you're having issues.