msteveb / linenoise Goto Github PK
View Code? Open in Web Editor NEWThis project forked from antirez/linenoise
A small self-contained alternative to readline and libedit
This project forked from antirez/linenoise
A small self-contained alternative to readline and libedit
From arangodb/arangodb#1187:
- If you hit backspace with no character entered,
arangosh [...]>
disappears, and re-appears if you type something in- 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).
AFAIK ArangoDB uses https://github.com/antirez/linenoise, so I wonder if it's fixed in this fork?
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?
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.
./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)
Several of the files (like this) refer to a LICENSE
file which does not exist.
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'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.