Live data from Hacker News

Spark

github.com

21–30 of 100 posts

Re: Spark

#24
post #13

What would be really interesting is finding out which decent programming fonts can show block elements. I mean, beyond the DejaVu Sans Mono fiasco.

schumacher clean works (i can cut + paste the title of this post to my shell) - it's a bitmap font that's been in X forever.

and has anyone worked out how to get recent cpu load into their bash prompt yet?

Re: Spark

#26
post #3

The script is not a proper POSIX bourne shell script, as it uses arrays. For starters, it won't work in dash (Debian and Ubuntu /bin/sh implementation). So the shebang line should be changed to #!/bin/bash (not sure if it would work in Zsh either).

Maybe this shouldn't be a shell script. A C implementation would be quite portable and also pretty fast.

Re: Spark

#27
post #9

Hmm, I get the following: [scotty@Scotty-Allens-MacBook-Air ~/bin]$ spark 1,2,3,4,5 ▇\c ▇\c ▇\c ▇\c ▇\c I suspect this has something to do with my terminal settings, but I'm not sure quite what... Nifty idea, regardless.

Try changing line 120 to echo -e $"$(print_tick $number)\c" And it should work fine.

I found it necessary to escape the backslash

         echo -e $"$(print_tick $number)\\c"

Re: Spark

#29
post #13

What would be really interesting is finding out which decent programming fonts can show block elements. I mean, beyond the DejaVu Sans Mono fiasco.

http://www.levien.com/type/myfonts/inconsolata.html

This is what I've been using (after more than a year with DejaVu Sans Mono) and I sometimes still stop to admire my terminal ;)

Using #e8e8e8 instead of pure white for the text color helps too.

Post reply on HN