I used pkrumins ncurses hacker-top program, it's nice. https://github.com/pkrumins/hacker-top Sometime it has a bug to retrieve news, and I fixed it. https://github.com/Nic0/hacker-top 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.
Show HN: Hacker News without leaving your terminal
21–28 of 28 posts
Re: Show HN: Hacker News without leaving your terminal
#22Re: Show HN: Hacker News without leaving your terminal
#23kind of cool but in the end, you need to open your browser anyway !!
Here is one way to force your browser to open a URL by entering a terminal command: echo 'open location "http://my.domain.com/some/file.html"' | osascript
open http://my.domain.com/some/file.htmlRe: Show HN: Hacker News without leaving your terminal
#24You have committed an egregious atrocity: you parse XML with a regex.
Please read this classic post: http://goo.gl/wPtKX
Thank you, Internet
Re: Show HN: Hacker News without leaving your terminal
#25Dear Sir, You have committed an egregious atrocity: you parse XML with a regex. Please read this classic post: http://goo.gl/wPtKX Thank you, Internet
Re: Show HN: Hacker News without leaving your terminal
#26Here's a couple of edits that will pull colors from the 256-color (XTerm) palette and make the titles bold: blue_highlight=`echo "\033[0;38;5;68m"` brown_highlight=`echo "\033[0;1;38;5;202m"` . . . . . . (end of script) echo "\033[0m"
Re: Show HN: Hacker News without leaving your terminal
#27I tried it on CentOS (RHEL) 5.6 [admin@gold admin]# hackernews sed: invalid option -- E [admin@gold admin]# sed --version GNU sed version 4.1.5
Changing "sed -E" to "sed -r" and all instances of "==" to "=" makes this script run on my Debian system. Unfortunately, it leaves the terminal blue when it is done.
Re: Show HN: Hacker News without leaving your terminal
#28You'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.