Commit | Line | Data |
---|---|---|
923e9e63 KT |
1 | .TH QUIZ 6 |
2 | .SH NAME | |
3 | quiz \- test your knowledge | |
4 | .SH SYNOPSIS | |
5 | .B /usr/games/quiz | |
6 | [ | |
7 | .B \-i | |
8 | file ] | |
9 | [ | |
10 | .B \-t | |
11 | ] [ category1 category2 ] | |
12 | .SH DESCRIPTION | |
13 | .I Quiz | |
14 | gives associative | |
15 | knowledge tests on various subjects. | |
16 | It asks items chosen from | |
17 | .I category1 | |
18 | and expects answers from | |
19 | .IR category2 . | |
20 | If no categories are specified, | |
21 | .I quiz | |
22 | gives instructions | |
23 | and lists the available categories. | |
24 | .PP | |
25 | .I Quiz | |
26 | tells a correct answer whenever you type | |
27 | a bare newline. | |
28 | At the end of input, upon interrupt, | |
29 | or when questions run out, | |
30 | .I quiz | |
31 | reports a score and terminates. | |
32 | .PP | |
33 | The | |
34 | .B \-t | |
35 | flag specifies `tutorial' mode, | |
36 | where missed questions are repeated | |
37 | later, and material is gradually introduced as you learn. | |
38 | .PP | |
39 | The | |
40 | .B \-i | |
41 | flag causes the named file to be substituted for the | |
42 | default index file. | |
43 | The lines of these files have the syntax: | |
44 | .IP "" 4 | |
45 | .nf | |
46 | .ta \w'alternate 'u | |
47 | line = category newline \(bv category `:' line | |
48 | category = alternate \(bv category `|' alternate | |
49 | alternate = empty \(bv alternate primary | |
50 | primary = character \(bv `[' category `]' \(bv option | |
51 | option = `{' category `}' | |
52 | .PP | |
53 | .fi | |
54 | The first category on each | |
55 | line of an index file names an information file. | |
56 | The remaining categories specify the order and contents of | |
57 | the data in each line of the | |
58 | information file. | |
59 | Information files have the same syntax. | |
60 | Backslash `\\' is used as with | |
61 | .IR sh (1) | |
62 | to quote syntactically | |
63 | significant characters or to insert transparent | |
64 | newlines into a line. | |
65 | When either a question or its answer is empty, | |
66 | .I quiz | |
67 | will refrain from asking it. | |
68 | .SH FILES | |
69 | /usr/games/quiz.k/* | |
70 | .SH BUGS | |
71 | The construct `a|ab' doesn't work in an information | |
72 | file. | |
73 | Use `a{b}'. |