Submit web site - 716 Part VI . Programming in Linux Listing
716 Part VI . Programming in Linux Listing 27-4 (continued) /* shutdown s-lang */ SLsmg_reset_smg(); SLang_reset_tty(); return 0; } To compile this program using the following command: $ gcc sreadkey.c -lslang -o sreadkey To run the program, type ./sreadkey. Figure 27-7 shows the result after typing the same text as typed for readkey.c earlier. Figure 27-7: An S-Lang-based TUI. As you can see from Figure 27-7, the basic appearance and functionality of sreadkey.c is the same as nreadkey.c. What has changed, the TUI framework used to create sreadkey.c, is invisible to the user. S-Lang-based programs can also read input piped from stdin. From a developer s perspective, there are significant differences between ncurses and S-Lang in program structure and the actual library usage, but the output is almost identical. For more information about S-Lang, including download information, visit the SLang Web page at www.s-lang.org. Note
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.