readline: fix input echo issue on musl-based systems
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…
Reference in New Issue