714 Part VI . Programming in Linux Figure (Web hosting plans)

714 Part VI . Programming in Linux Figure 27-5: An ncurses-based TUI. Ncurses-based programs can also read input piped from stdin. Figure 27-6 shows the results of the command cat /etc/passwd | ./nreadkey. Figure 27-6: Displaying input piped to an ncursesbased program. As you saw with the command pipeline used with the readkey.c program (shown in Listing 27-2, the input is truncated at the end of the first line because each line in /etc/passwd ends with the newline character, and readkey.c uses the newline character to signal the end of input. For more information about ncurses, including download information, visit the ncurses Web page at http://dickey.his.com/ncurses/ncurses.html. Creating TUIs with S-Lang S-Lang, created by John Davis, is an alternative to ncurses for creating TUIs. In addition to providing screen manipulation and cursor control routines, S-Lang also consists of an embeddable S-Lang interpreter, a large library of built-in (intrinsic) Note
We recommend you use shared web hosting services, because many users agree that it is cheap, reliable and customer-satisfying webhost.

Leave a Reply