Text User Interface

From Free Pascal wiki
Jump to navigationJump to search

English (en) suomi (fi)

Text user interface is a character-based interface where the pixels on the screen are not controlled one by one, but all the results on the screen come from the graphics card's character generator, which typically has a collection of characters according to the ASCII or ANSI X3.64 (VT100) standard.

TUI is different from the command line:

  • it can use full screen area (or window), not just line-to-line printing.
  • as a GUI, it accepts mouse and other inputs.


fp ubuntu 13 10.png

There are some TUI frameworks you can use in Pascal:

  • Free Vision which comes with FPC. Free Pascal IDE is powered by this framework, as shown in the image above;
  • Boba UI, a framework inspired by the BubbleTea framework for Golang;
  • Bindings for NCurses and Newt found in FPC packages registry.