1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

repl: readline line editing

This commit is contained in:
Henrixounez
2019-10-16 01:50:48 +02:00
committed by Alexander Medvednikov
parent 0e0f0ae5ea
commit 1956c6f906
5 changed files with 92 additions and 13 deletions

View File

@ -27,7 +27,7 @@ pub fn (r mut Readline) read_line_utf8(prompt string) ?ustring {
}
print(r.prompt)
r.current = os.get_line().ustring()
r.current = os.get_raw_line().ustring()
r.previous_lines[0] = ''.ustring()
r.search_index = 0