-
Notifications
You must be signed in to change notification settings - Fork 674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pasting multiple lines doesn't work #75
Comments
I'm encountering the same problem in xterm:
|
zcourts
added a commit
to zcourts/linenoise
that referenced
this issue
Mar 16, 2016
gwenn
added a commit
to gwenn/rustyline
that referenced
this issue
Nov 11, 2016
gwenn
added a commit
to gwenn/rustyline
that referenced
this issue
Nov 11, 2016
Sonophoto
added a commit
to Sonophoto/linenoise
that referenced
this issue
Nov 15, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When trying to paste multiple lines into an application using linenoise, only the first line is taken. As an example, compiling the example applicacation and trying to paste
test1
test2
test3
test4
test5
into the example application gives:
lash@bill17laptop:~/linenoisepaste/linenoise$ ./linenoise_example
hello> test1
echo: 'test1'
hello>
This seems to be because of the use of TCAFLUSH in enableRawMode and disableRawMode. By changing thos to TCADRAIN, I see the expected behavior:
lash@bill17laptop:~/linenoisepaste/linenoise$ ./linenoise_example
hello> test1
echo: 'test1'
hello> test2
echo: 'test2'
hello> test3
echo: 'test3'
hello> test4
echo: 'test4'
hello> test5
echo: 'test5'
hello>
Here is the patch that I used:
The text was updated successfully, but these errors were encountered: