I put this together since I find myself switching away from the terminal to see if anything new popped up in HN. There might be similar ones out there, didn't bother looking. It was a quick experiment, which might end up with a few more features.
I used pkrumins ncurses hacker-top program, it's nice.
<a href="https://github.com/pkrumins/hacker-top" rel="nofollow">https://github.com/pkrumins/hacker-top</a>
Sometime it has a bug to retrieve news, and I fixed it.
<a href="https://github.com/Nic0/hacker-top" rel="nofollow">https://github.com/Nic0/hacker-top</a><p>Certainly a nice way to follow HN, the only advantage with the website, it to have gray links on already visited links. That's mainly why I don't use it anymore.
Here's a couple of edits that will pull colors from the 256-color (XTerm) palette and make the titles bold:<p><pre><code> blue_highlight=`echo "\033[0;38;5;68m"`
brown_highlight=`echo "\033[0;1;38;5;202m"`
. . .
. . . (end of script)
echo "\033[0m"</code></pre>
When you say "If you're terminal is awesome, you can ⌘-click on the links to open them in a browser.", what kind of awesome do I need?<p>I'm running plain old terminal on OS X.<p>(oh, and not to be picky, but that should be "your", not "you're")
You're altering the terminal colors without resetting them. You should output a reset code after you're done (\033[0m IIRC?) or (drastically) issue `reset`. Although, a blue terminal is kind of a nice change.
I tried it on CentOS (RHEL) 5.6<p><pre><code> [admin@gold admin]# hackernews
sed: invalid option -- E
[admin@gold admin]# sed --version
GNU sed version 4.1.5</code></pre>
Dear Sir,<p>You have committed an egregious atrocity: you parse XML with a regex.<p>Please read this classic post: <a href="http://goo.gl/wPtKX" rel="nofollow">http://goo.gl/wPtKX</a><p>Thank you,
Internet