Skip to content

Commit 7f0d209

Browse files
committed
readme: Add basic usage
1 parent cc19c9a commit 7f0d209

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,18 @@ Use [Basalt](https://github.com/hyperupcall/basalt), a Bash package manager, to
1414
basalt add hyperupcall/bash-term
1515
```
1616

17-
## Acknowledgements
17+
## Usage
1818

19-
- [justjavac/deno_ansi](https://github.com/justjavac/deno_ansi)
19+
See [Tweet](https://twitter.com/hyperupcall/status/1553612233388670976)
20+
21+
```sh
22+
# -d means 'done'; that is, reset the style at the end of the string (same as `term.style_reset`)
23+
# -p means 'print'; that is, print the value of "$REPLY" that it sets
24+
term.color_light_purple 'four'
25+
term.style_strikethrough "$REPLY"
26+
term.style_inverse "$REPLY"
27+
term.style_underline -dp "$REPLY"
28+
```
2029

2130
## References
2231

0 commit comments

Comments
 (0)