* cormen book
[mascara-docs.git] / i86 / mtx-16-bit / mtx / samples / SERIAL / USER / ubody.c
blob24cfb16b3e54c69bc3607462c770a3063e55e3fb
2 show_menu();
3 printf("Command ? ");
4 gets(name);
5 if (name[0]==0)
6 continue;
8 cmd = find_cmd(name);
9 switch(cmd){
10 case 0 : getpid(); break;
11 case 1 : ps(); break;
12 case 2 : chname(); break;
13 case 3 : kmode(); break;
14 case 4 : kswitch(); break;
15 case 5 : wait(); break;
17 case 6 : die(); break;
18 case 7 : fork(); break;
19 case 8 : exec(); break;
21 case 9 : chcolor(); break;
23 default: invalid(name); break;