aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorPhilip Wittamore <philip@wittamore.com>2025-05-18 09:15:16 +0200
committerPhilip Wittamore <philip@wittamore.com>2025-05-18 09:15:16 +0200
commitc541fc0e1ad13ca18a297c5220ecad557c19d6db (patch)
treef6eaccc6259110d22f00d2d8e40bed14e6d8dc3a /README.md
parent1a81432a550f5f4a0d638a6ef22fe6d922f71326 (diff)
downloadbashlib-c541fc0e1ad13ca18a297c5220ecad557c19d6db.tar.gz
bashlib-c541fc0e1ad13ca18a297c5220ecad557c19d6db.tar.bz2
bashlib-c541fc0e1ad13ca18a297c5220ecad557c19d6db.zip
update
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/README.md b/README.md
index 15f92d0..c7ec09d 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
## number functions
-**pb_number**
+###pb_number
pb_isuint is var unsigned int
pb_isint is var signed int
@@ -11,11 +11,15 @@
## colour functions
-**pb_colour**
+###pb_colour
pb_fg 0-254 set foreground colour
pb_bg 0-254 set background colour
- pb_nc remove coulours
+ pb_nc remove colours
+
+ **Usage**
+ source ./pb
+ printf %b "$(pb_bg 196)$(pb_fg 254) RED $(pb_nc)\n"
## Bash string manipulation cheatsheet
[https://gist.github.com/magnetikonline/90d6fe30fc247ef110a1](https://gist.github.com/magnetikonline/90d6fe30fc247ef110a1)