SquidDev, on 29 June 2018 - 06:29 PM, said:
- I wonder if it'd be worth it'd be worth caching the HTTP request, so it's only made on the first button press. Subsequent presses could then just sleep for a random delay before displaying it. It might be cool to display some TV static or something between pressing and displaying, but I've no clue if that would looks visually appealing.
- You don't currently handle terminate events. I didn't really think to press backspace, so I didn't know how else to get out of it. Maybe also add another couple of quit keybindings, like "q"?
Done! It now caches the HTTP request for 5 mins after which it will request it again. There's a shiny new progress bar and instructions on how to quit.
Might have a look at making the pipes a bit fancier, I've not really done anything with the new palettes so would be good to play around with them a bit.
Edit: Almost forgot.. you'll need to run 'pastebin run J8azvLQg WhereIsDan
true' to overwrite the old file
Edited by blunty666, 29 June 2018 - 07:51 PM.