Class TasksTUI

java.lang.Object
com.guinetik.hexafun.examples.tasks.tui.TasksTUI

public class TasksTUI extends Object
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 record
  • View - Pure function S → String (from shared tui package)
  • TasksTUI.Views - Composable view components
  • Widgets - Reusable TUI widgets (from shared tui package)
  • Single render(State) side effect

The pattern: render(views.screen().apply(state))

  • Constructor Details

    • TasksTUI

      public TasksTUI()
  • Method Details

    • run

      public void run(TaskApp app)
      Main loop: render → read → process → repeat
    • main

      public static void main(String[] args)