The YCP
language is also used to control the user interface (UI)
presented on screen. The UI displays the information already known by
the system and retrieves the information entered by the user.
There are two modes of operation:
Text mode for console-based service
In text mode the user interface is presented in the NCurses environment that provides windowing capabilities and entry forms on a text-based console. Mouse support is neither possible nor necessary here because all dialogs can be operated using only the keyboard.
Graphics mode for X11-based service
In graphics mode the well-known Qt-system is used to present the dialogs in a graphical way using a running X11-server. Operating these dialogs follows the common habits of graphical user interfaces.
It is important to notice here that both methods principally use the
same YaST
-specific YCP
-API to build the dialogs. While there are
some (rare) cases where the YCP
-code has to distinguish these modes,
the dialogs are usually programed for both worlds in in one single
source with the same code.