After cloning the repo...
./balance_ticker.sh nristen
./functions.sh: line 229: jq: command not found
./functions.sh: line 138: jq: command not found
So I ran:
brew search jq
jq
brew install jq
This of course means that brew
was already installed in OSX.
./worth.sh nristen
89.408
./balance_ticker.sh nristen
nristen: 89.51 USD [44.98 USD (10.411 SBD at 4.32 USD) STEEM: 44.54 USD (9.92 STEEM at 4.49 USD)]
This was run inside of iterm the OSX terminal emulator (separate from terminal however I doubt that the terminal emulator would make a difference).
On a whim I decided to run the balance_ticker.sh as a background process to see if I could do other things in the terminal while the ticker was displayed:
That did not work that well... I was still able to see the prompt but I lost the blinking cursor (I could still type... just couldn't see where I was on the screen).
./worth_ticker.sh nristen
(standard_in) 1: parse error
(standard_in) 1: parse error
ten: 0.00^C0
I am not really sure what happened in the last command.
Thanks!
The invisible cursor is because I hide the cursor before doing the ticker line. I'm not sure I could make a backgroundable ticker. It needs to put text in specific locations on the screen which might end up moving the cursor, but it's something I might play with. As long as the terminal supports escape sequences, it might be possible. I'll definitely look into it.
I suspected
jq
wouldn't be available. I'm looking at some bash JSON projects to replace it, but I'm undecided as of yet.For the worth ticker it may have failed to fetch something or one of the sub commands was missing. You could edit the script to include
set -x
but the output can be troublesome to debug without understanding what the script is doing.Did you try running the worth ticker multiple times?
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I have a fix for the invisible cursor. My github-fu is weak.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Your fix makes the cursor visible again when the user hits control c to kill the ticker, but it doesn't do anything for when it's backgrounded.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit