为用户编程:终端控制和信号
终端驱动程序的模式
以一个简短的例子作为开始:
/* rotate.c : map a->b, b->c, .. z->a
* purpose: useful for showing tty modes
*/
#include <stdio.h>
#include <ctype.h>
int main()
{
int c;
while ( ( c=getchar() ) != EOF ){
if ( c == 'z' )
c = 'a';
else if (islower(c))
c++;
pu......