Giter Club home page Giter Club logo

linenoise's People

Contributors

andreas-kupries avatar antirez avatar cuavas avatar devurandom avatar dwmw2 avatar erh avatar msteveb avatar phytolizer avatar pietern avatar redbeard0531 avatar sgbeal avatar shixiongfei avatar starseeker avatar starwing avatar tadmarshall avatar vadosnaprimer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

linenoise's Issues

Clearing of characters broken on Windows? (backspace / delete keys)

From arangodb/arangodb#1187:

  1. If you hit backspace with no character entered, arangosh [...]> disappears, and re-appears if you type something in
  2. If you delete characters and the code wraps to a 2nd line past the length of the string
    arangosh [...]>, the last character won't be cleared and will thus appear as many times as you hit Backspace / Del. The superfluous chars are removed as soon as the line length drops low enough (around character 80 of the entered code).

http://youtu.be/LxQ0zg-fOoY

AFAIK ArangoDB uses https://github.com/antirez/linenoise, so I wonder if it's fixed in this fork?

License info on stringbuf files?

I noticed that stringbuf.h has a copyright statement but no license statement, and stringbuf.c has neither... to be sure, are they using the same license as the rest of linenoise?

Windows compilation break

As I'm sure you figured out, I use your fork in a project that has Windows building in CI. Today I updated the repo and compilation broke. I narrowed it down to 7109cc6. I'm unable to make a PR fixing this right now, as I'm not sure if this block should be exclusive to non-Windows, or if it should be handled appropriately on both operating systems somehow.

ETA: The reason compilation breaks is that the fd field is not defined on Windows.

how to enter multiline input

./linenoise_utf8_example --multiline
[paste several lines of text]
result isn't what I expect (i expected
echo 'a1
a2
a3'

but insead i just get echo 'a1'

Is there another way to enter multiple lines of text?
(i was hoping for somehing like shift enter etc)

Linefeed not accepted as newline

If I run the example, I can paste CR or CR+LF lines:

$ ./linenoise_example
hello> expr 5 + 2
echo: 'expr 5 + 2'
hello> expr 5 - 2
echo: 'expr 5 - 2'

but if I try to paste LF lines, I get unexpected result:

$ ./linenoise_example
hello> expr 5 + 2expr 5 - 2
echo: 'expr 5 + 2expr 5 - 2'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.