on master help sign in
commentary update
commit8abf7f94c6185d69a90b4db6d29abc629b382097 authorCorey O'Connor <coreyoconnor@gmail.com> dateMon 14 Apr 2014, 22:07 (13 years ago) parentd931217
2 files changed+9−11
src/Graphics/Vty/Input.hs+6−7 test/interactive_terminal_test.hs+3−4
src/Graphics/Vty/Input.hs+6−7
@@ -19,14 +19,10 @@
1919--
2020-- vty assumes 7 bit mode. Which is the default AFAIK.
2121--
22−-- 1. ESC individually: ESC byte, no bytes for control-seq-period,
23−-- no bytes for meta-combo-period.
22+-- 1. ESC individually: ESC byte, no bytes for 'singleEscPeriod'.
2423--
25−-- 2. control keys that contain ESC in their byte sequence: ESC byte, bytes read within
26−-- control-seq-period are part of the sequence. Up until the next valid input block.
27−--
28−-- 3. ESC used as meta in a key combination: ESC byte, no other bytes read within
29−-- control-seq-period. Bytes up until next valid input block are the input events plus meta.
24+-- 2. control keys that contain ESC in their byte sequence: ESC byte. Bytes read within
25+-- 'singleEscPeriod' are part of the sequence up until the next valid input block.
3026--
3127-- If the current runtime is the threaded runtime then the terminal's VMIN and VTIME parameters can
3228-- be applied to implement the above rules.
@@ -66,6 +62,9 @@ inputForCurrentTerminal config = do
6662
6763-- | Set up the terminal attached to the given Fd for input. Returns a 'Input'.
6864--
65+-- The table used to determine the 'Events' to produce for the input bytes comes from
66+-- 'classifyTableForTerm'.
67+--
6968-- The terminal is modified as follows:
7069--
7170-- * IXON disabled
test/interactive_terminal_test.hs+3−4
@@ -66,11 +66,10 @@ All the tests assume the following about the terminal display:
6666Thanks for the help! :-D
6767To exit the test early enter "q" anytime at the following menu screen.
6868
69−If any test failed then please post an issue to
69+If any test fails then please post an issue to
7070 https://github.com/coreyoconnor/vty/issues
71−with the test_results.list file pasted into the issue. The issue summary can
72−mention the specific tests that failed or just say "interactive terminal test
73−failure".
71+with the test_results.list file pasted into the issue. A suitable summary is:
72+"interactive terminal test failure".
7473|]
7574 waitForReturn
7675 results <- doTestMenu 1