mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
readline: fix input echo issue on musl-based systems
This commit is contained in:
parent
ba3a631954
commit
76eec7b6ea
@ -114,6 +114,7 @@ pub fn (r mut Readline) read_line_utf8(prompt string) ?ustring {
|
|||||||
|
|
||||||
print(r.prompt)
|
print(r.prompt)
|
||||||
for {
|
for {
|
||||||
|
C.fflush(C.stdout)
|
||||||
c := r.read_char()
|
c := r.read_char()
|
||||||
a := r.analyse(c)
|
a := r.analyse(c)
|
||||||
if r.execute(a, c) {
|
if r.execute(a, c) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user