[HN Gopher] Ratatui: tui-rs revival project ___________________________________________________________________ Ratatui: tui-rs revival project Author : fnordpiglet Score : 87 points Date : 2023-03-15 19:57 UTC (3 hours ago) (HTM) web link (github.com) (TXT) w3m dump (github.com) | pohl wrote: | Great name | jeron wrote: | forked by this french guy[0], very fitting name | | [0]: https://github.com/fdehau | [deleted] | colesantiago wrote: | great news | sophacles wrote: | Oh this is great news. The project is fantastic, fdehau (original | author/maintainer) created something wonderful. Sad to see he's | not able to drive development anymore, but happy to see he's | transferred it in a responsible way. Looking forward to see where | it goes, and many thanks to Florian! | jmclnx wrote: | I do not know rust, but this cannot possibly be as bad as curses | :) | | I wish there was a simple Text Form Library (not OO) that would | read a screen description file and generate/process a 80x24 | screen. | | Something like: Column,row,length,Text Description,field-type | (character, integer, float). | | On MS-DOS I had an C compiler that used had a form of printf for | this purpose, one line per printf. I used those printfs to kind | of create a format text file like above. | saulpw wrote: | I was trying this with VisiData and the DarkDraw[0] .ddw | format, which is JSON and similar structure to what you | describe. The problem is that 80x24 is no longer an adequate | terminal size, and so simplistic row/column layouts like this | can't work to make the form look good. You need "center this | text" and a way to put multiple buttons in reasonable places. | You could use floats as column/row to indicate fractional | position within the window; but then these still need to be the | center of the element, and not the start, for it to look good. | | [0] https://github.com/devottys/darkdraw | fnordpiglet wrote: | TUI is a really great immediate mode library for basic display | oriented (not as much on interactivity) applications. It | provides non obvious capabilities like charting, etc. The | original developer got a real job and it languished for a large | part of 2022 and was recently handed over to the community | managed by a new GitHub org. There are several other TUI | frameworks in rust that are pretty good, but for my work this | is the simplest to hack out something that looks really good | really fast. | jonstewart wrote: | Very glad to see someone stepping up for maintainership. I've | been working on an app with Cursive but want to replace Cursive | with tui and this announcement is reassuring. | fnordpiglet wrote: | What are your thoughts on cursive? I've been considering mixing | the two in separate screens of the same app but haven't built | the courage to try. ___________________________________________________________________ (page generated 2023-03-15 23:01 UTC)