1 | *** TEST TERMIOS03 *** |
---|
2 | open(/dev/test) - OK |
---|
3 | Writing: This is test output. |
---|
4 | Transmitted 22 characters |
---|
5 | 54 68 69 73 20 69 73 20 74 65 73 74 20 6f 75 74 |This is test out| |
---|
6 | 70 75 74 2e 0d 0a |put... | |
---|
7 | |
---|
8 | Reading (expected): |
---|
9 | 54 65 73 74 20 69 6e 70 75 74 20 74 68 69 73 20 |Test input this | |
---|
10 | 69 73 2e |is. | |
---|
11 | Read 20 bytes from read(2) |
---|
12 | 54 65 73 74 20 69 6e 70 75 74 20 74 68 69 73 20 |Test input this | |
---|
13 | 69 73 2e 0a |is.. | |
---|
14 | Echoed 21 characters |
---|
15 | 54 65 73 74 20 69 6e 70 75 74 20 74 68 69 73 20 |Test input this | |
---|
16 | 69 73 2e 0d 0a |is... | |
---|
17 |
|
---|
18 | Reading (expected): |
---|
19 | 31 32 33 35 08 34 35 36 2e |1235.456. | |
---|
20 | Read 10 bytes from read(2) |
---|
21 | 31 32 33 35 08 34 35 36 2e 0a |1235.456.. | |
---|
22 | Echoed 12 characters |
---|
23 | 31 32 33 35 5e 48 34 35 36 2e 0d 0a |1235^H456... | |
---|
24 | |
---|
25 | Reading (expected): |
---|
26 | 74 61 62 09 74 61 62 2e |tab.tab. | |
---|
27 | Read 9 bytes from read(2) |
---|
28 | 74 61 62 09 74 61 62 2e 0a |tab.tab.. | |
---|
29 | Echoed 14 characters |
---|
30 | 74 61 62 20 20 20 20 20 74 61 62 2e 0d 0a |tab tab... | |
---|
31 | |
---|
32 | Reading (expected): |
---|
33 | 63 72 0d |cr. | |
---|
34 | Read 3 bytes from read(2) |
---|
35 | 63 72 0a |cr. | |
---|
36 | Echoed 4 characters |
---|
37 | 63 72 0d 0a |cr.. | |
---|
38 | |
---|
39 | Reading (expected): |
---|
40 | 61 42 63 44 65 46 67 48 2e |aBcDeFgH. | |
---|
41 | Read 10 bytes from read(2) |
---|
42 | 61 42 63 44 65 46 67 48 2e 0a |aBcDeFgH.. | |
---|
43 | Echoed 11 characters |
---|
44 | 61 42 63 44 65 46 67 48 2e 0d 0a |aBcDeFgH... | |
---|
45 | Changing c_iflag to: Enable to lower case mapping on input |
---|
46 | |
---|
47 | Reading (expected): |
---|
48 | 61 42 63 44 65 46 67 48 2e |aBcDeFgH. | |
---|
49 | Read 10 bytes from read(2) |
---|
50 | 61 62 63 64 65 66 67 68 2e 0a |abcdefgh.. | |
---|
51 | Echoed 11 characters |
---|
52 | 61 62 63 64 65 66 67 68 2e 0d 0a |abcdefgh... | |
---|
53 | Changing c_iflag to: Disable to lower case mapping on input |
---|
54 | close(/dev/test) - OK |
---|
55 | *** END OF TEST TERMIOS03 *** |
---|