Projektrahmen: Cargo-Workspace, README und PLAN
Workspace mit sechs Crates (tb-frontend, tb-vm, tb-runtime, tb-ui, tb-cli, tb-ide) als Geruest fuer die Re-Implementierung des DOS-BASIC-Dialekts. Binaries: tbdos (IDE/TUI) und tbdosc (Standalone-Compiler). PLAN.md dokumentiert Phasen, Explorations- schritte und die Abwaegung der VM-/Runtime-Optionen (Entscheidung: eigene Bytecode-VM, TBVM). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
13
crates/tb-ui/Cargo.toml
Normal file
13
crates/tb-ui/Cargo.toml
Normal file
@@ -0,0 +1,13 @@
|
||||
[package]
|
||||
name = "tb-ui"
|
||||
description = "Terminal Basic: Bildschirm-Runtime und Forms-Engine auf Ratatui"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
authors.workspace = true
|
||||
|
||||
[dependencies]
|
||||
ratatui.workspace = true
|
||||
crossterm.workspace = true
|
||||
thiserror.workspace = true
|
||||
log.workspace = true
|
||||
5
crates/tb-ui/src/events.rs
Normal file
5
crates/tb-ui/src/events.rs
Normal file
@@ -0,0 +1,5 @@
|
||||
//! Ereignismodell: Abbildung von Terminal-Ereignissen (crossterm) auf die
|
||||
//! Ereignisse des Dialekts (Click, GotFocus, KeyPress, Load, Unload …)
|
||||
//! und die Ereigniswarteschlange für die VM-Hauptschleife.
|
||||
|
||||
// Platzhalter — wird in Phase 4 ausgearbeitet (siehe PLAN.md)
|
||||
6
crates/tb-ui/src/forms.rs
Normal file
6
crates/tb-ui/src/forms.rs
Normal file
@@ -0,0 +1,6 @@
|
||||
//! Forms-Engine: Formulare, Steuerelemente, Eigenschaften, Methoden.
|
||||
//!
|
||||
//! Ziel ist volle Kompatibilität zum Forms-Modell des Vorbilds inklusive
|
||||
//! des textbasierten Formular-Dateiformats (`.FRM`).
|
||||
|
||||
// Platzhalter — wird in Phase 4 ausgearbeitet (siehe PLAN.md)
|
||||
13
crates/tb-ui/src/lib.rs
Normal file
13
crates/tb-ui/src/lib.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
//! Bildschirm-Runtime und Forms-Engine von Terminal Basic, aufbauend auf Ratatui.
|
||||
//!
|
||||
//! Zwei Schichten:
|
||||
//! 1. `screen`: Emulation des 80×25-Textbildschirms (Codepage 437, 16 Farben,
|
||||
//! Cursor) als Zeichenpuffer, gerendert über Ratatui. Darauf setzen die
|
||||
//! klassischen Anweisungen `PRINT`, `LOCATE`, `COLOR`, `CLS`, `INPUT` auf.
|
||||
//! 2. `forms`: ereignisgesteuerte Forms-Engine — Fenster, Steuerelemente
|
||||
//! (Schaltflächen, Textfelder, Listen …), Menüs, Fokusreihenfolge,
|
||||
//! Tastatur- und Mausereignisse.
|
||||
|
||||
pub mod screen;
|
||||
pub mod forms;
|
||||
pub mod events;
|
||||
4
crates/tb-ui/src/screen.rs
Normal file
4
crates/tb-ui/src/screen.rs
Normal file
@@ -0,0 +1,4 @@
|
||||
//! Textbildschirm-Emulation: Zellenpuffer (Zeichen + Attribut), Cursor,
|
||||
//! Codepage-437-Abbildung auf Unicode, Rendering über Ratatui.
|
||||
|
||||
// Platzhalter — wird in Phase 0/3 ausgearbeitet (siehe PLAN.md)
|
||||
Reference in New Issue
Block a user