====== std.lyxvision.textdevice ====== ''TTextDevice'' — scrollbarer Textpuffer für Log-Ausgaben und Statusmeldungen. Im Gegensatz zu ''TTerminal'' interpretiert TTextDevice keine ANSI-Escape-Sequenzen, sondern zeigt Plain-Text zeilenweise mit automatischem Scrolling an. Neue Zeilen werden am Ende angehängt; der Puffer wird nach oben gescrollt. → [[lyx_-_programmiersprache:units:lyxvision|lyxvision]] · [[lyx_-_programmiersprache:units:lyxvision:terminal|lyxvision.terminal]] · [[lyx_-_programmiersprache:units:lyxvision:view|lyxvision.view]] ---- ===== Funktionen ===== ^ Signatur ^ Sichtbarkeit ^ Beschreibung ^ | ''TextDeviceNew(x: int64, y: int64, w: int64, h: int64, bx: int64, by: int64, mode: int64): TTextDevice'' | pub | TextDevice-Funktionen | | ''TextDeviceSetMode(td: TTextDevice, mode: int64): TTextDevice'' | pub | Setzt den Modus | | ''TextDeviceGetMode(td: TTextDevice): int64'' | pub | Gibt den aktuellen Modus zurück | | ''TextDeviceSetCursor(td: TTextDevice, x: int64, y: int64): TTextDevice'' | pub | Setzt die Cursor-Position | | ''TextDeviceGetCursorX(td: TTextDevice): int64'' | pub | Gibt die Cursor-Position zurück | | ''TextDeviceGetCursorY(td: TTextDevice): int64'' | pub | — | | ''TextDeviceWriteStr(td: TTextDevice, s: pchar): TTextDevice'' | pub | Schreibt einen String an der aktuellen Position | | ''TextDeviceWriteLn(td: TTextDevice): TTextDevice'' | pub | Schreibt einen Zeilenumbruch | | ''TextDeviceScrollUp(td: TTextDevice): TTextDevice'' | pub | Scrollt den Text eine Zeile nach oben | | ''TextDeviceClear(td: TTextDevice): TTextDevice'' | pub | Löscht den gesamten Puffer | | ''TextDeviceClearLine(td: TTextDevice, y: int64): TTextDevice'' | pub | Löscht eine Zeile | | ''TextDevicePutChar(td: TTextDevice, x: int64, y: int64, ch: pchar): TTextDevice'' | pub | Setzt ein Zeichen an einer bestimmten Position | | ''TextDeviceDraw(td: TTextDevice): TTextDevice'' | pub | Zeichnet das TextDevice auf den Bildschirm | | ''TextDeviceTouch(td: TTextDevice): TTextDevice'' | pub | Markiert das Device als "dirty" (neu zu zeichnen) | | ''TextDeviceGetWidth(td: TTextDevice): int64'' | pub | Gibt die Breite des Puffers zurück | | ''TextDeviceGetHeight(td: TTextDevice): int64'' | pub | Gibt die Höhe des Puffers zurück | ---- //Signaturen automatisch aus ''std/lyxvision/textdevice.lyx'' erzeugt (Stand 2026-08-02, lyxc 1.0.21A). Beschreibungen stammen aus den Quellkommentaren und sind teilweise unvollständig.//