Prev | Current Page 1381 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"


764
Programming in Linux Part VI
Linux Programming Interfaces
As defined at the beginning of this chapter, a programming interface refers to the rules or methods
followed to accomplish a particular task. Like programming environments, programming interfaces
are usually thought of as either graphical or command line.
Graphical interfaces use the X Window System to receive and process user input and display information.
Command-line interfaces, sometimes referred to as text-mode user interfaces (TUIs), are
strictly text-based and do not require a windowing system to run. Thanks to the X Window System,
however, you can also execute CLI-based programs in terminal emulators running on top of X.
There also is a third type of interface: an application programming interface, or API. This section of
the chapter looks at the ncurses library used to create text-mode user interfaces, examines some of
the popular graphical interfaces in use today, and describes a small set of the most popular APIs
used by Linux programmers.
Creating Command-Line Interfaces
There are three primary means of creating programs that interact with users at the command line.
Two use libraries of screen manipulation routines, S-Lang and ncurses, to create TUIs, and the
third just uses standard input and standard output, conventionally known as stdin and stdout,
respectively.


Pages:
1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393