Chapter 27. X Window Programming

Non-graphical programs tend to follow the programmer's choice of events, accepting user input only when it is convenient for the program. An update process will chug through a database and wait for the user's input only when it has called fgets(3), for example. Once control has returned from fgets(3) with the input, however, any additional user input is ignored as the update proceeds.

Another program that puts up a text-based screen is also program directed. The user must provide input that is suitable for the field where the cursor is. As the cursor moves to other input fields, the input data provided must obey content rules for those fields. These are examples of a program telling the user what input to provide ...

Get Advanced UNIX Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.