hnterm
所属分类:collect
开发工具:C++
文件大小:0KB
下载次数:0
上传日期:2022-09-15 06:17:14
上 传 者:
sh-1993
说明: 航站楼的黑客新闻,
(Hacker News in the terminal,)
文件列表:
CHANGELOG.md (805, 2022-09-14)
CMakeLists.txt (1932, 2022-09-14)
LICENSE (1072, 2022-09-14)
cmake/ (0, 2022-09-14)
cmake/GitVars.cmake (717, 2022-09-14)
media/ (0, 2022-09-14)
media/asciinema.png (457835, 2022-09-14)
media/banner-transparent-small.png (45040, 2022-09-14)
media/banner-transparent.png (42882, 2022-09-14)
media/cover.png (87067, 2022-09-14)
media/default.png (24484, 2022-09-14)
media/favicons/ (0, 2022-09-14)
media/favicons/android-icon-144x144.png (4864, 2022-09-14)
media/favicons/android-icon-192x192.png (4886, 2022-09-14)
media/favicons/android-icon-36x36.png (1718, 2022-09-14)
media/favicons/android-icon-48x48.png (2049, 2022-09-14)
media/favicons/android-icon-72x72.png (2679, 2022-09-14)
media/favicons/android-icon-96x96.png (3323, 2022-09-14)
media/favicons/apple-icon-114x114.png (3641, 2022-09-14)
media/favicons/apple-icon-120x120.png (3887, 2022-09-14)
media/favicons/apple-icon-144x144.png (4864, 2022-09-14)
media/favicons/apple-icon-152x152.png (5069, 2022-09-14)
media/favicons/apple-icon-180x180.png (6118, 2022-09-14)
media/favicons/apple-icon-57x57.png (2288, 2022-09-14)
media/favicons/apple-icon-60x60.png (2362, 2022-09-14)
media/favicons/apple-icon-72x72.png (2679, 2022-09-14)
media/favicons/apple-icon-76x76.png (2807, 2022-09-14)
media/favicons/apple-icon-precomposed.png (5462, 2022-09-14)
media/favicons/apple-icon.png (5462, 2022-09-14)
media/favicons/browserconfig.xml (281, 2022-09-14)
media/favicons/favicon-16x16.png (1250, 2022-09-14)
media/favicons/favicon-32x32.png (1557, 2022-09-14)
media/favicons/favicon-96x96.png (3323, 2022-09-14)
media/favicons/favicon.ico (1150, 2022-09-14)
... ...
#
![HNTerm : Hacker News in terminal](media/banner-transparent-small.png)
[![Actions Status](https://github.com/ggerganov/hnterm/workflows/CI/badge.svg)](https://github.com/ggerganov/hnterm/actions)
[![HNTerm on Snapcraft](https://snapcraft.io//hnterm/badge.svg)](https://snapcraft.io/hnterm)
[![HNTerm v0.4 badge][changelog-badge]][changelog]
[![MIT License Badge][license-badge]][license]
Browse [Hacker News](https://news.ycombinator.com/news) interactively in your terminal
[![hnterm-demo](https://asciinema.org/a/291253.svg)](https://asciinema.org/a/291253)
## Details
HNTerm is a small console application written in C++ for browsing [Hacker News](https://news.ycombinator.com/news). It queries the official [HN API](https://github.com/HackerNews/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](https://github.com/ggerganov/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.
## Installing
[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-black.svg)](https://snapcraft.io/hnterm)
### Linux
```bash
sudo snap install hnterm
```
### Mac OS
```bash
brew install ggerganov/ggerganov/hnterm
```
## Building from source
### Linux and Mac:
```bash
git clone https://github.com/ggerganov/hnterm --recursive
cd hnterm
mkdir build && cd build
cmake ..
make
./bin/hnterm
```
* Ubuntu 20.04 might need prerequisites: `sudo apt install cmake libncurses-dev libcurl4-openssl-dev`
### Emscripten:
```bash
git clone https://github.com/ggerganov/hnterm --recursive
cd hnterm
mkdir build && cd build
emconfigure cmake ..
make
```
## 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](https://github.com/HackerNews/API).
Demo: [hnterm.ggerganov.com](https://hnterm.ggerganov.com/) *(not suitable for mobile devices)*
[changelog]: ./CHANGELOG.md
[changelog-badge]: https://img.shields.io/badge/changelog-HNTerm%20v0.4-dummy
[license]: ./LICENSE
[version-badge]: https://img.shields.io/badge/version-0.4-blue.svg
[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg
近期下载者:
相关文件:
收藏者: