23

HNTerm – Browse Hacker News in the Terminal

 4 years ago
source link: https://github.com/ggerganov/imtui/tree/master/examples/hnterm
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

hnterm

Interactive browsing of Hacker News in the terminal

Live demo in the browser

The Emscripten port of HNTerm uses Emscripten's Fetch API instead of libcurl to perform requests to the HN API .

Demo: hnterm.ggerganov.com (not suitable for mobile devices)

Details

HNTerm is a small console application written in C++ for browsing Hacker News . It queries the official HN API and interactively displays the current stories and comments. It uses libcurl to perform the GET requests to the API. The UI is rendered with ImTui . HNTerm fetches only the content that is currently visible on the screen. The window splits allow browsing multiple stories/comment sections at the same time.

Building

Linux and Mac:

git clone https://github.com/ggerganov/imtui --recursive
cd imtui
mkdir build && cd build
cmake ..
make

./bin/hnterm

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK