Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bczsalba
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
Show HN: My TUI library, PyTermGUI now features an intelligent layout system
(github.com)
15 points
by
bczsalba
4y ago
|
2 comments
2.
▲
Show HN: My TUI library can now export HTML and SVG screenshots of your terminal
(github.com)
3 points
by
bczsalba
5y ago
|
0 comments
3.
▲
by
bczsalba
5y ago
This will allow developers to freely use RGB and HEX colors in the terminal, without having to worry about end-user terminal compatibility and such. It uses some color math, a lot of infrastracture and some magic!
4.
▲
Show HN: My TUI lib now features auto RGB to xterm16 graceful color degradation
(github.com)
1 points
by
bczsalba
5y ago
|
1 comments
5.
▲
by
bczsalba
5y ago
So I'm midway through implmementing it all, and I'm finding that a lot of both meta and alt keys have behaviours that block them from working on my Mac. I know on Linux it probably isn't like that, but a lot of people will ha
6.
▲
by
bczsalba
5y ago
Alright, I'll keep that in mind! Thank you for the suggestion :D
7.
▲
by
bczsalba
5y ago
It's similar but different in a lot of ways. In PyTermGUI there is a large focus on the underlying terminal APIs and their implementations. This is because there are no external libraries to help us with them, so everything is hand-cod
8.
▲
by
bczsalba
5y ago
After thinking about it overnight, I'm thinking about adding a button type that automatically binds its onclick method to either a given or automatically generated binding. So something like ptg.KeyboardButton("Help")
9.
▲
by
bczsalba
5y ago
Could you elaborate on this on more? I tried on xterm and it worked the way it should've. If you could raise an issue on GH I can look into it further, as it definitely seems like behaviour that should be fixed. Thank you so much for
10.
▲
by
bczsalba
5y ago
Thank you! IIRC it used to work just fine, but it hasn't for a minute. There is some weird handling with ESC, as most of the time it is the start of a longer sequence, so I probably just messed something up in that while refactoring. W
11.
▲
by
bczsalba
5y ago
Thank you! As long as the terminal supports the xterm-256 colors everything should work alright, and even below that the colors might look a bit off but nothing should break , per se. The resizing bit was a bit of a mess to implement prope
12.
▲
by
bczsalba
5y ago
At the moment not many, but full-screen layout support is planned. The eventual "end-state" of the framework would be something along the lines of MC, where there is a main, fullscreen display that contains a bunch of inner elemen
13.
▲
by
bczsalba
5y ago
There is a pretty in-depth binding system that allows for the exact behaviour you are describing. This library is generally a framework with a loose implementation in the name of WindowManager. Most of these behaviours can and should be imp
14.
▲
Show HN: A modular Python TUI framework with a fast and pretty markup language
(github.com)
114 points
by
bczsalba
5y ago
|
19 comments