pure POSIX sh tui lib for future project | (psh-tui)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Nicole P. Lastname 2d36f68451 deleted a single whitespace b/c typo (i am cool and good developer) 1 month ago
LICENSE init 1 month ago
README added text support to rec() 1 month ago
ptui deleted a single whitespace b/c typo (i am cool and good developer) 1 month ago

README

----
# ptui / psh-tui
- micro-sized tui lib in pure sh
## Functions
- hline
-- create line
---- $1 length
---- $2/- char to use
---- $3 indentation
---- $4 text to print AROUND
---- $5 indentation before
---- $6 indentation after
-- does NOT create a new line
- vline
-- create vertical line
---- $1 tall
---- $2 indentation
---- $3/| char to use
---- $4 text to print
---- $5 line to print on
---- $6 indentation before
-- creates new line
- dvline
-- creates 2 lines
---- $1 tall
---- $2 indentation
---- $3/| char to use
---- $4 apart
---- $5 text to print AROUND
---- $6 lint to print on
---- $7 indetation before
-- indents after based on `$(($2-${#5}-${7:-0})))`
-- creates new line
- mvline
-- same as dvline but for $1 lines
---- $1 lines
---- $2 tall
---- $3 indentation
---- $4/| char to use
---- $5 apart
---- $6 text to print
---- $7 lines down
---- $8 line to print AFTER
---- $9 indentation before
-- indents after based on `$(($3-${#6}-${9:-0})))`
-- creates new line
- rec
-- makes a fucking rectangle
---- $1 indentation
---- $2 wide (-1)
---- $3 tall (-1)
---- $4/- char to use for top and bottom
---- $5/| char to use for sides
---- $6 disable + corners if 0
---- $7 text to print
---- $8 lines down
---- $9 indentation
-- indents after based on `$((${#7}-${9:-0})))`
-- creates new line