2 Copyright © 1995-2015, The AROS Development Team. All rights reserved.
6 #include <exec/types.h>
7 #include <proto/exec.h>
13 int main(int argc
, char **argv
) {
23 Printf("in normal (cooked) mode\n");
24 Printf("type something: ");
27 FGets(out
, something
, 64);
28 *(strchr(something
, '\n')) = '\0';
30 Printf("you typed: %s\n", something
);
34 Printf("in raw mode\n");
35 Printf("type something: ");
41 Read(in
, &(something
[i
]), 1);
42 if (something
[i
] == 0x0d) {
46 if (! isprint(something
[i
]))
51 Printf("\nyou typed: %s\n", something
);
55 Printf("restored normal (cooked) mode\n");