| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | version: 1.1.0 -> 1.1.1HEADv1.1.1master | tv | 5 days | 1 | -1/+1 |
| | | |||||
| * | scan: return ESC [ alone as \ESC[ | tv | 5 days | 1 | -1/+0 |
| | | | | | | | Alt-[ sends ESC [ and nothing else. scan returned that as ScanKey "\ESC", dropping the [. Now it is ScanKey "\ESC[", like ESC followed by any other character. | ||||
| * | scan: return what was read instead of throwing | tv | 5 days | 1 | -55/+52 |
| | | | | | | | | | | | | | | | | | | | | | | | | scan threw on input it did not expect: an escape sequence that stopped early (Alt-O sends ESC O and nothing else, a slow link splits sequences) or that contained a character outside its syntax. In a program that scans in a thread of its own, that thread died and the program stopped reading the keyboard. Likewise, an X10 mouse report that stopped early blocked until three more characters came, swallowing the keys typed meanwhile. Now every character of a sequence is read with the timeout, and when a sequence stops early or the next character does not fit, what was read so far is returned as a ScanKey. The character that did not fit stays in the handle for the next scan. For example ESC O alone is ScanKey "\ESCO", which is what Alt-O sends anyway, and ESC [ 1 followed by a newline is ScanKey "\ESC[1" followed by ScanKey "\n". SGR mouse reports are CSI sequences whose parameters start with <, so they are read like any other CSI sequence and decoded afterwards. A malformed one is returned as a ScanKey. This drops expectChar and scanNumber. Errors of the handle itself still propagate, such as end of file, or a byte that the handle's encoding cannot decode. | ||||
| * | decodeMouseEvent: admit buttons 8 to 11 | tv | 5 days | 1 | -10/+6 |
| | | | | | | | | | | Terminals report buttons 8 to 11 (often back and forward) with bit 128 of the button byte set. decodeMouseEvent ignored that bit and reported them as buttons 1 to 3 and as an X10 release. The case analysis is now total, so the error for unknown buttons is gone; it could not be reached anyway. | ||||
| * | drop `one` parser | tv | 2026-03-19 | 1 | -8/+3 |
| | | |||||
| * | version: 1.0.1 -> 1.1.01.1.0 | tv | 2026-03-19 | 2 | -11/+11 |
| | | |||||
| * | shell.nix: RIP | tv | 2026-03-19 | 1 | -21/+0 |
| | | |||||
| * | admit SGR mouse protocol | tv | 2026-03-07 | 1 | -28/+68 |
| | | |||||
| * | replace Makefile by shell.nix | tv | 2025-03-12 | 3 | -8/+21 |
| | | |||||
| * | rename package to terminal-scanner | tv | 2025-03-12 | 1 | -2/+2 |
| | | |||||
| * | add instance Show Scan | tv | 2015-10-17 | 2 | -1/+2 |
| | | |||||
| * | init scanner.cabal | tv | 2015-10-17 | 1 | -0/+16 |
| | | |||||
| * | init Makefile | tv | 2015-10-17 | 2 | -0/+8 |
| | | |||||
| * | Replace Event by Scan | tv | 2015-10-17 | 1 | -12/+24 |
| | | |||||
| * | add VT200 mouse support | tv | 2015-10-17 | 1 | -2/+28 |
| | | |||||
| * | rewrite Scanner to use Event | tv | 2015-10-17 | 1 | -201/+78 |
| | | |||||
| * | add Scanner.hGetKey | tv | 2015-10-17 | 1 | -25/+34 |
| | | |||||
| * | cleanup Scanner | tv | 2015-10-17 | 1 | -64/+27 |
| | | |||||
| * | add Scanner.getKey | tv | 2014-08-07 | 1 | -0/+8 |
| | | |||||
| * | rewrite (concat $ map f xs) to (xs >>= f) | tv | 2014-07-29 | 1 | -1/+1 |
| | | |||||
| * | Scanner: initial commit (not activated) | tv | 2014-07-28 | 1 | -0/+258 |
| | | |||||
| * | initial commit | tv | 2014-07-27 | 0 | -0/+0 |
