TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Hacker News without leaving your terminal

25 点作者 jeybalachandran超过 13 年前
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.

11 条评论

Nic0超过 13 年前
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.
评论 #3392613 未加载
makecheck超过 13 年前
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>
评论 #3393037 未加载
spatten超过 13 年前
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")
评论 #3392538 未加载
评论 #3392543 未加载
评论 #3392521 未加载
评论 #3392530 未加载
评论 #3392520 未加载
xdissent超过 13 年前
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.
评论 #3393609 未加载
dangrossman超过 13 年前
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>
评论 #3392536 未加载
评论 #3392533 未加载
makecheck超过 13 年前
Pretty neat.<p>Note that in order to work on Mac OS X, the word "wget" should change to "curl" in the script. (Otherwise it works exactly as-is.)
评论 #3392452 未加载
burgerbrain超过 13 年前
Not to be rude, but what does this get me over elinks?
JacobIrwin超过 13 年前
Cool.. Here I was thinking the HN web app was as simple and plain as I could view the feeds..
zx2c4超过 13 年前
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
评论 #3392881 未加载
tuananh超过 13 年前
kind of cool but in the end, you need to open your browser anyway !!
评论 #3392535 未加载
lightyrs超过 13 年前
This is dangerously good. Thanks?