Replace vaxis with zterm #1

Merged
yves-biener merged 20 commits from own-tty-visuals into main 2024-11-13 19:52:55 +01:00
Owner

Vaxis sadly cannot be used for applications which want to serve their contents via ssh to the (remote) user.

Instead I wrote my own tui library zterm, which this tui application now uses. This will serve two purposes:

  1. implement the tui application and be servable through ssh (see wish-serve)
  2. serve as documentation and showcase of an example application for zterm
Vaxis sadly cannot be used for applications which want to serve their contents via ssh to the (remote) user. Instead I wrote my own tui library [zterm](https://gitea.yves-biener.de/yves-biener/zterm), which this tui application now uses. This will serve two purposes: 1. implement the tui application and be servable through ssh (see [wish-serve](https://gitea.yves-biener.de/yves-biener/wish-serve)) 2. serve as documentation and showcase of an example application for **zterm**
yves-biener added 20 commits 2024-11-13 19:52:19 +01:00
- split structure for better inclusions
- create PlainRenderer to render contents to the terminal
- simplify events
- clearify what structs are created on the heap and which are on the stack
- quit event is now emitted from the main event loop and not the input loop (see helper function `App.quit`)
- rename several variables and/or functions for easier understanding
- introduce `App.interrupt` to stop the input thread and start a new sub TUI which takes over the entire screen (i.e. 'hx', 'nvim', etc.)
Layout is a simple pane without any restrictions, which should be
implemented next to see if the interfaces are stable and usable enough.
As for example the interface for `Widget.content()` has changed to
return a `[]u8` and not a `*std.ArrayList`.
Fix corresponding RawText line control (i.e. last line and changes to
the window size in regards to the current line).
doc: update README documentation
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (pull_request) Successful in 49s
c47efefbc4
yves-biener merged commit 9515def4fb into main 2024-11-13 19:52:55 +01:00
yves-biener deleted branch own-tty-visuals 2024-11-13 19:52:55 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: yves-biener/tui-website#1