Class TasksTUI
java.lang.Object
com.guinetik.hexafun.examples.tasks.tui.TasksTUI
Functional TUI for the Tasks application.
Demonstrates functional composition in a terminal UI using the
shared com.guinetik.hexafun.examples.tui package:
TasksTUI.State- Immutable state recordView- Pure function S → String (from shared tui package)TasksTUI.Views- Composable view componentsWidgets- Reusable TUI widgets (from shared tui package)- Single
render(State)side effect
The pattern: render(views.screen().apply(state))
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceActions transform State → Result. static classAction implementations for each command.static final recordImmutable TUI state.static classPure view functions using the sharedViewinterface. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TasksTUI
public TasksTUI()
-
-
Method Details
-
run
Main loop: render → read → process → repeat -
main
-