Contur 2
Educational OS kernel simulator
Loading...
Searching...
No Matches
ftxui_app.h File Reference

Full interactive TUI application built on FTXUI ScreenInteractive. More...

#include <cstddef>
#include <cstdint>
#include <functional>
#include <memory>
#include <string>
#include <vector>
#include "contur/tui/i_tui_controller.h"

Go to the source code of this file.

Classes

struct  contur::FtxuiAppConfig
 Configuration for FtxuiApp behaviour. More...
class  contur::FtxuiApp
 Full interactive TUI application using FTXUI ScreenInteractive. More...

Namespaces

namespace  contur

Detailed Description

Full interactive TUI application built on FTXUI ScreenInteractive.

FtxuiApp owns the render loop, keyboard event dispatch, and autoplay timer. It wires together an ITuiController with FTXUI to produce a responsive, full-screen OS kernel visualiser.

Keyboard map: Space / p — toggle Play / Pause t / n — single manual Tick ← / h — seek history backward 1 step → / l — seek history forward 1 step Shift+← / H — seek backward 10 steps Shift+→/ L — seek forward 10 steps

  • — increase autoplay speed (halve interval)
  • — decrease autoplay speed (double interval) ↑ / k — scroll kernel logs up ↓ / j — scroll kernel logs down r — resume autoplay from latest snapshot s — stop autoplay q / Escape — quit

Definition in file ftxui_app.h.