Core terminal grid/state guidance for this repository. Use when changing ketraterm-core grid mutation, cursor movement, scrollback, resize/reflow, clusters, tab stops, margins, modes, width policy, pen attributes, or TerminalBuffer behavior.
Terminal emulator feature implementation workflow for this Kotlin repository. Use when adding or changing terminal protocols, parser/core/host behavior, modes, SGR, OSC, CSI, DCS, Unicode, input, rendering contracts, or feature-gap documentation.
Input encoder guidance for this Kotlin terminal repository. Use when adding or changing ketraterm-input keyboard, paste, focus, mouse, host-output, or input mode-bit behavior.
Integration adapter guidance for mapping ketraterm-parser TerminalCommandSink semantics to ketraterm-core TerminalBuffer. Use when changing HostCommandAdapter, parser-to-core wiring, module dependencies, coordinate conversion, or explicit TODO gap handling.
Naming conventions and file layout policy for JVM Terminal (KetraTerm) codebase. Use when creating new classes, renaming files, adding public APIs, application components, or internal adapters.
Parser FSM and protocol dispatch guidance for this terminal emulator. Use when touching ByteClass, AnsiStateMachine, ActionEngine, ParserState, CSI/ESC/OSC/DCS handling, SGR dispatch, charset mapping, UTF-8 recovery, or TerminalParser full byte-stream behavior.
Use when implementing or reviewing terminal UI/rendering work such as Swing painting, render-frame consumption, text runs, fonts, colors, cursor rendering, selection, viewport/scrollback behavior, standalone host wiring, or IDE host host.
Terminal feature and gap-map maintenance guidance. Use when documenting missing parser/core/host/input/policy/host support, closing TODOs, classifying modern terminal features, or deciding whether a protocol belongs in scope.