ggerganov / hnterm Goto Github PK
View Code? Open in Web Editor NEW:page_with_curl: Hacker News in the terminal
Home Page: https://hnterm.ggerganov.com
License: MIT License
:page_with_curl: Hacker News in the terminal
Home Page: https://hnterm.ggerganov.com
License: MIT License
It always starts in two column dark mode--can preference changes stay upon close?
i can enlarge the terminal to list more entries, however it is inconvenient to do so
While letting hnterm running I have seen that there is one thread not displayed correctly. Opening this links will lead to https://news.ycombinator.com/item?id=0
It turned out to be a poll.
Link to the poll is the following: https://news.ycombinator.com/item?id=25669864
Number 11 in this screenshot:
I am using:
How do you open a thread in the browser? The help menu says o/O - open in browser
- this doesn't seem to work.
I followed the README instructions. My output:
... normal stuff above ...
/Users/cris/tempdev/hnterm/third-party/imtui/third-party/imgui/imgui/imgui_widgets.cpp:7022:17: warning: unused variable 'col' [-Wunused-variable]
const ImU32 col = GetColorU32((flags & ImGuiTabBarFlags_IsFocused) ? ImGuiCol_TabActive : ImGuiCol_TabUnfocusedActive);
^
6 warnings generated.
[ 35%] Building CXX object third-party/imtui/third-party/CMakeFiles/imgui-for-imtui.dir/imgui/imgui/imgui_tables.cpp.o
[ 42%] Linking CXX static library libimgui-for-imtui.a
[ 42%] Built target imgui-for-imtui
[ 50%] Building CXX object third-party/imtui/src/CMakeFiles/imtui.dir/imtui-impl-text.cpp.o
[ 57%] Linking CXX static library libimtui.a
[ 57%] Built target imtui
[ 64%] Building CXX object third-party/imtui/src/CMakeFiles/imtui-ncurses.dir/imtui-impl-ncurses.cpp.o
[ 71%] Linking CXX static library libimtui-ncurses.a
[ 71%] Built target imtui-ncurses
[ 78%] Building CXX object src/CMakeFiles/hnterm.dir/main.cpp.o
/Users/cris/tempdev/hnterm/src/main.cpp:173:31: error: implicit instantiation of undefined template 'std::array<UI::WindowData, 3>'
std::array<WindowData, 3> windows { {
^
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/__tuple:219:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;
^
1 error generated.
make[2]: *** [src/CMakeFiles/hnterm.dir/main.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/hnterm.dir/all] Error 2
make: *** [all] Error 2
When the internet connection is down and one presses 'r', the application crashes:
AddressSanitizer:DEADLYSIGNAL
=================================================================
==14011==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x557cc74ebc13 bp 0x7ffc37602550 sp 0x7ffc37602300 T0)
==14011==The signal is caused by a READ memory access.
==14011==Hint: address points to the zero page.
#0 0x557cc74ebc12 in void __gnu_cxx::new_allocator<int>::construct<int, int const&>(int*, int const&) /usr/include/c++/8/bits/vector.tcc:436
#1 0x557cc74ebc12 in void std::allocator_traits<std::allocator<int> >::construct<int, int const&>(std::allocator<int>&, int*, int const&) /usr/include/c++/8/bits/alloc_traits.h:475
#2 0x557cc74ebc12 in void std::vector<int, std::allocator<int> >::_M_realloc_insert<int const&>(__gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, int const&) /usr/include/c++/8/bits/vector.tcc:436
#3 0x557cc74e36a8 in std::vector<int, std::allocator<int> >::push_back(int const&) /usr/include/c++/8/bits/stl_vector.h:1085
#4 0x557cc74e36a8 in render_frame /path/to/hnterm/src/main.cpp:380
#5 0x557cc74d42a4 in main /path/to/hnterm/src/main.cpp:718
#6 0x7f13fa2c8b6a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26b6a)
#7 0x557cc74d83d9 in _start (/path/to/hnterm/build/bin/hnterm+0x183d9)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /usr/include/c++/8/bits/vector.tcc:436 in void __gnu_cxx::new_allocator<int>::construct<int, int const&>(int*, int const&)
==14011==ABORTING
Apparently the storyIds
vector is not initialized properly at this point.
Best regards.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.