Forked function library for cf-node-bootstrap (CircuitForge node setup)
Find a file
pyr0ball 7b63dbca46 fix: terminate truncated ANSI codes, honor ASCII fallback in box borders
- blk/nln/unbl/rsinv/hid/unh were missing the trailing 'm', producing
  invalid escape sequences. Concatenated with text (e.g. temperature
  readouts using ${blk}), strict-parsing terminals would read the
  digits/letters that followed as CSI parameters, causing garbled
  output or unwanted cursor movement.
- norm used bash's $"..." locale-translation syntax on an ANSI code
  instead of a plain string.
- set-boxtype() always ran box-norm/double/heavy/light/rounded, which
  draw with hardcoded Unicode corner glyphs, even when
  check_unicode_support() determined the terminal/locale couldn't
  render Unicode. This defeated box_chars_simple()'s ASCII fallback
  entirely. Now the Unicode style dispatch is skipped when
  unicode_supported is false.
- Removed a duplicate box-singlechar() definition.
2026-07-17 16:01:11 -07:00
demo.sh added padding around comments 2023-05-09 12:06:56 -07:00
functions fix: terminate truncated ANSI codes, honor ASCII fallback in box borders 2026-07-17 16:01:11 -07:00
README.md updated screenshot to latest 2023-05-02 14:18:50 -07:00

pyr0-bash-functions

A functions library for bash-like scripting

Includes:

  • Colorization
  • Text Formatting
  • Bounding Box Drawing
  • Logging
  • User-interactable menus

With all of these tools combined, you can make powerful interactive scripts with ease and pleasant form

run ./demo.sh for example output

image