3 ms·
This is a console application that I wrote for browsing HN in a terminal. It has an ncurses UI and uses libcurl to query the HN API [0]. Currently works on Linu
by ggerganov 7y ago
This is a console application that I wrote for browsing HN in a terminal. It has an ncurses UI and uses libcurl to query the HN API [0]. Currently works on Linux and Mac. I also ported it to web with Emscripten's Fetch API so it can be easily demonstrated [1].
[0] - https://github.com/HackerNews/API https://github.com/HackerNews/API
[1] - https://hnterm.ggerganov.com https://hnterm.ggerganov.com
- johnnyfived 7y agoThis is awesome, but not sure why pressing o / O on mac (catalina) doesn't open anything.
- ggerganov 7y agoI’m just calling system() with “xdg-open” and url as argument. This is what a quick google search told me can be used for openning a browser from a C++ program. Maybe “xdg-open” is not available on Catalina. It is on Mojave I think.
- ComputerGuru 7y agoUse `open` instead of xdg-open on macOS.
- Terretta 7y agoCool app // And screenshot
- deleted 7y ago[deleted]