GitHub PushEvent at 2014-04-14 15:45:07
Repository: linenoise
Actor: pombredanne
Payload: {"shas":[["4642c1ae25fe5a41bb7a8f212d8a0521a85633d9","be99be457af114853da91ee1634e0b67a6a1c333@acano.com","Add \"emacs\" to unsupported_term\n\nThe Emacs terminal emulator has its own line editing and does not\nbehave correctly in raw mode. Without this programs using linenoise\nwill hang when run inside an Emacs shell.","Nick Gasson",true],["3258af5ac93b03714e9cd8c264e7b1dabb3f8617","a718085f8439ba3226317abd94de4114256eebec@fnac.net","fix linenoiseEdit buflen decreasing.","Paul Chavent",true],["9031c808f08603f39653f88c77d7b190000a31b6","e6fb06210fafc02fd7479ddbed2d042cc3a5155e@dawg.eu","use const char * when modification isn't necessary","Martin Nowak",true],["aed9d1af9fd9f8d83ec9b5fcb0c2d071433f9fd1","81516c0bc992c9cd30eeaa39d4784e98138d1c17@gmail.com","Refresh line with single write to avoid flickering.\n\nEscape sequences and actual content to write to the terminal is now\naccumulated into an heap allocated buffer that is flushed with a single\nwrite at the end. This avoids a flickering effect making linenoise more\nprofessional looking ;-)","antirez",true],["cbf172f79dbc86264fd35b2b8a0b308896ae00e1","81516c0bc992c9cd30eeaa39d4784e98138d1c17@gmail.com","Handle malloc error in linenoiseAddCompletion().\n\nWe just don't add the entry on out of memory to avoid to\nbreak the API with previous versions of Linenoise.","antirez",true],["f3a4e0629ce69056c84734cfac70268956cb804f","81516c0bc992c9cd30eeaa39d4784e98138d1c17@gmail.com","Merge branch 'master' of git://github.com/antirez/linenoise","antirez",true],["8ea25f8da3daeb7a5c86a500a7e17873952ac205","81516c0bc992c9cd30eeaa39d4784e98138d1c17@gmail.com","Debugging code cleanup.","antirez",true],["49635f1ccaf5d6dd159fab1f870f7d026c105183","ef2cf24746b9a7fc47947d330f74bd9577f2eb67@gmail.com","Add the key enumeration","Shengwen1997",true],["01cd117f47e85e21651ef40f82582c6a23293264","81516c0bc992c9cd30eeaa39d4784e98138d1c17@gmail.com","Don't assume STDIN_FD and STDOUT_FD are interchangeable.","antirez",true],["ff91a64c7899893113dc7c0e637e38fabb9a9da7","81516c0bc992c9cd30eeaa39d4784e98138d1c17@gmail.com","Merge pull request #51 from MartinNowak/const\n\nuse const char * when modification isn't necessary","Salvatore Sanfilippo",true],["94cbdd6540a79b5a3fda81a0044cf47fe2c2f0d9","81516c0bc992c9cd30eeaa39d4784e98138d1c17@gmail.com","Merge pull request #49 from polch/master_fixes\n\nfix linenoiseEdit buflen decreasing.","Salvatore Sanfilippo",true],["3cc30b1b2a2530ceb608aec40a56de47f13f262a","81516c0bc992c9cd30eeaa39d4784e98138d1c17@gmail.com","Merge pull request #48 from nickg/emacs\n\nAdd \"emacs\" to unsupported_term","Salvatore Sanfilippo",true],["fb2385900d6586a4e6f77cc901d7523320921926","be99be457af114853da91ee1634e0b67a6a1c333@acano.com","Add extern \"C\" around linenoise.h when compiled as C++","Nick Gasson",true],["8d4566825cb6b67e939eddb5b96a27bf60477cb2","81516c0bc992c9cd30eeaa39d4784e98138d1c17@gmail.com","Merge branch 'master' of github.com:/antirez/linenoise","antirez",true],["e153bd83abef6516a818eebb7b323f421e654782","be99be457af114853da91ee1634e0b67a6a1c333@acano.com","Fix escape sequence processing when only one byte available\n\nThe read call in the escape sequence processing does not\nhandle the case where only the first byte is available. This can\nhappen for example on a slow serial terminal.\n\nComment by @antirez:\n\nI reworked the code for brevity, for historical reasons here is the\nproposed patch. I believe my fix should be functionally equivalent.\n\nOriginal fix:\n\n             case 27:    /* escape sequence */\n                 /* Read the next two bytes representing the\n                    escape sequence. */\n    -            if (read(fd,seq,2) == -1) break;\n    +            {\n    +                ssize_t b = read(fd, seq, 2);\n    +\n    +                if (b < 0) break;\n    +\n    +                if (b == 1) {\n    +                    b = read(fd,&seq[1], 1);\n    +                    if (b != 1) {\n    +                        break;\n    +                    }\n    +                }\n    +            }\n\nSee PR #47.","Nick Gasson",true],["d5ec9cbbaabb7969e5c78c07d0db7926b2fd745e","81516c0bc992c9cd30eeaa39d4784e98138d1c17@gmail.com","Arrow scancodes replaced with enums in linenoiseEdit().","antirez",true],["a05ab23df6f670303eceabb9f33e205ee3485613","81516c0bc992c9cd30eeaa39d4784e98138d1c17@gmail.com","Use the two-reads fix for the additional escapes as well.\n\nSee commit e153bd8 for more information.\nThe gist is that slow terminals may return a short read of 1 byte.","antirez",true],["bbcf9bf246ab575aeac5eebc2d10ff25cba63b26","81516c0bc992c9cd30eeaa39d4784e98138d1c17@gmail.com","Scan codes debugging functionality.\n\n./linenoise_example --scancodes","antirez",true],["cb0d040010aabb05bab0025891a30e21c1e87d1b","81516c0bc992c9cd30eeaa39d4784e98138d1c17@gmail.com","Fix Del key processing + minor cleanup.","antirez",true],["f698ec47d18c149cdf1293456f43fa49cb66f414","81516c0bc992c9cd30eeaa39d4784e98138d1c17@gmail.com","Rename Scan codes -> Key codes.\n\nWhat we print in debug mode using the option (now) called --keycodes\nare not the scan codes, but the key codes returned by the terminal (a\nmore higher level representation of the keys pressed).\n\nThis commit fixes the word used.","antirez",true]],"size":29,"ref":"refs/heads/master","head":"06e3784dd84016de4e3caf02c1f3b28087801add"}