Live data from Hacker News

Show HN: Hacker News without leaving your terminal

github.com

11–20 of 28 posts

Re: Show HN: Hacker News without leaving your terminal

#12

I 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

#13
post #4

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? I'm running plain old terminal on OS X. (oh, and not to be picky, but that should be "your", not "you're")

I'm running plain old terminal on OS X Lion and if I hold down the ⌘-key and double click, the link in the terminal opens in my default browser.

Re: Show HN: Hacker News without leaving your terminal

#14
post #4

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? I'm running plain old terminal on OS X. (oh, and not to be picky, but that should be "your", not "you're")

MacTerm does this, for one.

http://www.macterm.net/

Re: Show HN: Hacker News without leaving your terminal

#16
post #12

I 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.

If you add a line like the following to the end of the script, any color changes should be undone:

    echo "\033[0m"
Also, I believe Debian's /bin/sh is "dash" whereas it is "bash" on most other systems. You could change your copy of the script's header to use "/bin/bash" instead of "sh" (assuming that bash is installed too), which is easier than fixing equal-signs and such.

As far as the original code is concerned, using "perl" may be slightly more portable than "sed -E".

Re: Show HN: Hacker News without leaving your terminal

#18
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.

Post reply on HN