A single-class terminal/prompt emulator using swing