一键导入
javafx-terminal-emulators
Build JavaFX terminal emulators or shell-style console panes with background process I/O, ANSI handling, and safe FX-thread updates.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Build JavaFX terminal emulators or shell-style console panes with background process I/O, ANSI handling, and safe FX-thread updates.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Build JavaFX 3D modeling tools and print/export workflows with isolated geometry generation and preview rendering.
Choose and integrate mature third-party JavaFX control libraries for forms, productivity widgets, theming, and developer workflow support.
Build node-based JavaFX workflow editors, graph canvases, and visual programming surfaces with clean model separation.
Animate JavaFX UIs with Timeline, Transition, Canvas, and AnimationTimer-based render loops.
Manage the JavaFX Application lifecycle, primary stage setup, startup sequencing, and shutdown behavior.
Choose JavaFX architecture patterns such as plain scene-graph, MVP, MVVM, MVCI, DI, and routed shells.
| name | javafx-terminal-emulators |
| description | Build JavaFX terminal emulators or shell-style console panes with background process I/O, ANSI handling, and safe FX-thread updates. |
| triggers | ["terminal emulator javafx","javafx console pane","jeditermfx","process output javafx"] |
| compatibility | {"java":"17+","javafx":"21+"} |
| category | ui-advanced |
| tags | ["terminal","console","ansi","process","shell"] |
| metadata | {"scope":"repository","maturity":"starter"} |
| allowed-tools | ["view","rg","apply_patch"] |
Use this skill when the UI needs a real terminal emulator or a shell-like console pane for running commands, inspecting logs, or talking to remote systems interactively.
import java.io.BufferedReader;
import java.io.InputStreamReader;
import javafx.application.Platform;
import javafx.scene.control.TextArea;
public class ConsolePane extends TextArea {
public void runCommand(String... command) {
new Thread(() -> {
try {
var process = new ProcessBuilder(command).redirectErrorStream(true).start();
try (var reader = new BufferedReader(new InputStreamReader(process.getInputStream()))) {
String line;
while ((line = reader.readLine()) != null) {
var output = line + System.lineSeparator();
Platform.runLater(() -> appendText(output));
}
}
} catch (Exception ex) {
Platform.runLater(() -> appendText(ex.getMessage() + System.lineSeparator()));
}
}, "console-reader").start();
}
}
TextArea-only implementations usually break copy/paste, selection, and ANSI color behavior.