Branch :
| Author | Commit | Date | CI | Message |
|---|---|---|---|---|
| 3e521d47 | 2014-03-13 10:19:07 | linenoisePrintKeyCodes(): show character if printable. | ||
| f698ec47 | 2014-03-13 10:08:39 | Rename Scan codes -> Key codes. What we print in debug mode using the option (now) called --keycodes are not the scan codes, but the key codes returned by the terminal (a more higher level representation of the keys pressed). This commit fixes the word used. | ||
| cb0d0400 | 2014-03-12 23:49:54 | Fix Del key processing + minor cleanup. | ||
| bbcf9bf2 | 2014-03-12 23:38:40 | Scan codes debugging functionality. ./linenoise_example --scancodes | ||
| a05ab23d | 2014-03-12 23:25:27 | Use the two-reads fix for the additional escapes as well. See commit e153bd8 for more information. The gist is that slow terminals may return a short read of 1 byte. | ||
| d5ec9cbb | 2014-03-12 23:10:48 | Arrow scancodes replaced with enums in linenoiseEdit(). | ||
| e153bd83 | 2014-01-06 11:04:02 | Fix escape sequence processing when only one byte available The read call in the escape sequence processing does not handle the case where only the first byte is available. This can happen for example on a slow serial terminal. Comment by @antirez: I reworked the code for brevity, for historical reasons here is the proposed patch. I believe my fix should be functionally equivalent. Original fix: case 27: /* escape sequence */ /* Read the next two bytes representing the escape sequence. */ - if (read(fd,seq,2) == -1) break; + { + ssize_t b = read(fd, seq, 2); + + if (b < 0) break; + + if (b == 1) { + b = read(fd,&seq[1], 1); + if (b != 1) { + break; + } + } + } See PR #47. | ||
| 8d456682 | 2014-03-12 16:28:32 | Merge branch 'master' of github.com:/antirez/linenoise | ||
| fb238590 | 2014-01-06 11:01:41 | Add extern "C" around linenoise.h when compiled as C++ | ||
| 3cc30b1b | 2014-03-12 16:23:24 | Merge pull request #48 from nickg/emacs Add "emacs" to unsupported_term |