Permalink
Switch branches/tags
Nothing to show
Commits on Mar 12, 2014
  1. 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.
    Nick Gasson committed with Jan 6, 2014
  2. Add extern "C" around linenoise.h when compiled as C++

    Nick Gasson committed with Jan 6, 2014
  3. Merge pull request #48 from nickg/emacs

    Add "emacs" to unsupported_term
    committed Mar 12, 2014
  4. Merge pull request #49 from polch/master_fixes

    fix linenoiseEdit buflen decreasing.
    committed Mar 12, 2014
  5. Merge pull request #51 from MartinNowak/const

    use const char * when modification isn't necessary
    committed Mar 12, 2014
  6. Add the key enumeration

    shengwen1997 committed with Jan 16, 2014
  7. Debugging code cleanup.

    committed Mar 12, 2014
  8. Handle malloc error in linenoiseAddCompletion().

    We just don't add the entry on out of memory to avoid to
    break the API with previous versions of Linenoise.
    committed Mar 12, 2014
  9. Refresh line with single write to avoid flickering.

    Escape sequences and actual content to write to the terminal is now
    accumulated into an heap allocated buffer that is flushed with a single
    write at the end. This avoids a flickering effect making linenoise more
    professional looking ;-)
    committed Mar 12, 2014
Commits on Feb 21, 2014
  1. Merge pull request #53 from insop/master

    fix incorrect type caused issue on 64bit powerpc
    committed Feb 21, 2014
  2. fix incorrect type caused issue on 64bit powerpc

    Signed-off-by: Insop Song <insop.song@gainspeed.com>
    gainspeed committed Feb 21, 2014
Commits on Jan 27, 2014
Commits on Jan 15, 2014
Commits on Jan 6, 2014
  1. Add "emacs" to unsupported_term

    The Emacs terminal emulator has its own line editing and does not
    behave correctly in raw mode. Without this programs using linenoise
    will hang when run inside an Emacs shell.
    Nick Gasson committed Jan 6, 2014
Commits on Feb 8, 2013
  1. Merge pull request #31 from fperrad/buildroot

    fix getColumns() for Buildroot
    committed Feb 8, 2013
  2. Example app improved.

    committed Feb 8, 2013
Commits on Feb 7, 2013
  1. Merge pull request #30 from shvechikov/patch-1

    Typo: readl -> real
    committed Feb 7, 2013
  2. Merge pull request #37 from spullara/patch-1

    Reducing the lines of code from 1 million to 1 thousand
    committed Feb 7, 2013
  3. README updated.

    committed Feb 7, 2013
Commits on Feb 6, 2013