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