source: rtems/c/src/tests/libtests/termios/README @ 7f02ee73

Last change on this file since 7f02ee73 was 33677ef5, checked in by Joel Sherrill <joel.sherrill@…>, on 04/03/00 at 15:31:17

Enhancements from Charles-Antoine Gauthier <charles.gauthier@…>.

  • Property mode set to 100644
File size: 3.0 KB
Line 
1#
2#  $Id$
3#
4
5These tests are brought to you by the letter `q'.
6
7When you start the test, you should see:
8
9  You have the following choices:
10    1 - Reset the struct termios
11    2 - Look at the current termios setting
12    3 - Change the line characteristics
13    4 - Test canonical input
14    5 - Test raw input
15    9 - Exit
16  Enter your choice (1 to 5 or 9, followed by a carriage return):
17
18The individual tests are briefly described below:
19
20
211. Reset the struct termios.
22
23Included just in case you get into trouble. More than likely, if you are in
24trouble, neither input nor output are likely to work and this won't help. But
25hey, it should give you some warm fuzzy feeling that its there...
26
27
282. Look at the current termios setting
29
30Dumps the current state of the termios settings in hex and with symbolic flag
31names.
32
33
343. Change the line characteristics
35
36Allows you to change the line speed, parity, number of data bits and number of
37stop bits. You must supply a delay before the change takes effect. This gives
38you time to switch your terminal settings to continue with the test.
39
40WARNING: Minicom under Linux gets extremely unhappy (as does the /dev/ttyS?
41underlying devices) if you change the line characteristics and do not make the
42corresponding change in the terminal emulator.
43
44
454. Test canonical input
46
47Simple test of canonical or cooked input mode. Try typing some tabs and/or control characters and make sure that you can backspace over them properly.
48
49
505. Test raw input
51
52The line is placed into raw mode and four separate test are done:
53
54VMIN=0, VTIME=0
55        Each letter you type should produce a line of output.
56        The `count' should be quite large, since (as you correctly
57        pointed out) the read is non-blocking.  The time should be
58        the interval between typing characters.
59        Type a `q' to finish the test.
60VMIN=0, VTIME=20
61        Again, each letter should produce a line of output.  The
62        `count' should be much smaller -- the read is non-blocking
63        but has a timeout of 2 seconds, so the count should be about
64        half the `interval'.
65        Type a `q' to finish the test.
66VMIN=5, VTIME=0
67        A line should be produced for every 5 characters typed.  The
68        count should be 1.  This is a blocking read.
69        Type a `q' as the first character of a group of 5 to finish
70        the test.
71VMIN=5, VTIME=20
72        Type a character.  Two seconds later a line should be printed.
73        Count should be 1.  Type a character, and another within 2 seconds.
74        Two seconds after last character (or right after the 5th character)
75        a line should be printed.
76        Type a `q' as the first character of a group to finish the test.
77
78
799. Exit
80
81Gets you out of the test.
82
83
84Clear???
85
86
87---
88Eric Norum
89eric@skatter.usask.ca
90Saskatchewan Accelerator Laboratory
91University of Saskatchewan
92Saskatoon, Canada.
93
94Charles-Antoine Gauthier
95Software Engineering Group
96Institute for Information Technology
97National Research Council of Canada
98charles.gauthier@nrc.ca
99
Note: See TracBrowser for help on using the repository browser.