all repos — minline @ 6603b3f60c80ea03618d00aa40bb5072c6aa045f

A minimalist but highly-customizable line editing library.

Fixed clearLine
Fabio Cevasco h3rald@h3rald.com
Sat, 25 Mar 2017 11:20:13 +0100
commit

6603b3f60c80ea03618d00aa40bb5072c6aa045f

parent

4e12ccf2cc506cd2fb8286822e9338f661d1b96e

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M nimline.nimnimline.nim

@@ -216,7 +216,8 @@ stdout.cursorBackward(ed.line.position+1)

for i in ed.line.text: putchar(32) putchar(32) - stdout.cursorBackward(ed.line.text.len) + putchar(32) + stdout.cursorBackward(ed.line.text.len+1) ed.line.position = 0 ed.line.text = ""