diff options
| author | Stephen Szwiec <55602870+StephenSzwiec@users.noreply.github.com> | 2021-03-10 06:19:47 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-10 07:19:47 -0500 |
| commit | 87c295003995ffdb071551ce0fe56307aadfdda8 (patch) | |
| tree | 8b13c83da1dc6c593ec7c5e56646f24d93611d21 /.local/bin/statusbar | |
| parent | 9666c78aef55c5f0d27d0433186e2d54f9643e06 (diff) | |
| download | eibhear-87c295003995ffdb071551ce0fe56307aadfdda8.tar.gz eibhear-87c295003995ffdb071551ce0fe56307aadfdda8.tar.zst eibhear-87c295003995ffdb071551ce0fe56307aadfdda8.zip | |
Handle color control sequences (#911)
* Handle color control sequences
Is: `less` outputs the raw ascii of the $chartfile, which includes escape characters to change output colors. This does not resemble a graph.
Should be: Adding -n flag to have `less` create colored output properly.
* typo
changed to -Srf to reflect proposed change
Diffstat (limited to '.local/bin/statusbar')
| -rwxr-xr-x | .local/bin/statusbar/sb-price | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/statusbar/sb-price b/.local/bin/statusbar/sb-price index 45b01ad..35b072f 100755 --- a/.local/bin/statusbar/sb-price +++ b/.local/bin/statusbar/sb-price @@ -21,7 +21,7 @@ updateprice() { ping -q -c 1 example.org >/dev/null 2>&1 && updateprice "$1" case $BLOCK_BUTTON in - 1) setsid "$TERMINAL" -e less -Sf "$chartfile" ;; + 1) setsid "$TERMINAL" -e less -Srf "$chartfile" ;; 2) notify-send -u low "$3 Updating..." "Updating $2 price..." updateprice "$1" && notify-send "$3 Update complete." "$2 price is now \$$(cat "$pricefile")" ;; |
