776 Part VI . Programming (Adelphia web hosting) in Linux To
Wednesday, December 12th, 2007776 Part VI . Programming in Linux To compile this program using the following command: $ gcc sreadkey.c -lslang -o sreadkey To run the program, type ./sreadkey. Figure 28-7 shows the result after typing the same text as typed for readkey.c earlier. Figure 28-7: An S-Lang based TUI. As you can see from Figure 28-7, the basic appearance and functionality of sreadkey.c is the same as nreadkey.c. The differences between the two, which have to do with the TUI framework used to create sreadkey.c, are 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 S-Lang Web page at www.s-lang.org. Creating Graphical Interfaces When it comes to creating GUIs, Linux programmers have more options available than they do for creating TUIs. Probably the most popular and certainly the best known toolkits used to create graphical applications are Qt and GTK+. Qt is the C++ application framework that powers KDE, the K Desktop Environment. GTK+ is the toolkit underneath GNOME, the GNU Network Object Model Environment. GTK+ is written largely in C, but it has language bindings available for many other Note
We highly recommend you visit web and email hosting services if you need stable and cheap web hosting platform for your web applications.