- char word[80];
- char ch;
-
- do {
- puts("Enter some text :");
- scanf("%s", word);
-
- if ( !strcmp(word, "foo") ) {
- func1();
- }
-
- else if (!strcmp(word, "bar") ) {
- func2();
- }
-
- else if (!strcmp(word, "\x1b\x61") ) {
- alt_a();
- }
-
- else if (!strcmp(word, "\x1b\x62") ) {
- alt_b();
- }
-
- else if (!strcmp(word, "\x07") ) {
- ctrl_g();
- }
-
- else if (!strcmp(word, "\x01") ) {
- ctrl_a();
- }
-
- else if (!strcmp(word, "\x1b\x5b\x41") ) {
- up_arrow();