caas is now drivable through stdin
* added idetools --eval * streams.readLine recognises and applies the backspace character
This commit is contained in:
parent
c43bf78000
commit
091c1b3075
18 changed files with 176 additions and 137 deletions
|
|
@ -180,8 +180,12 @@ proc readLine*(s: PStream): TaintedString =
|
|||
if c == '\c':
|
||||
c = readChar(s)
|
||||
break
|
||||
elif c == '\L' or c == '\0': break
|
||||
result.string.add(c)
|
||||
if c == '\b':
|
||||
result.string.setLen(result.len - 1)
|
||||
elif c == '\L' or c == '\0':
|
||||
break
|
||||
else:
|
||||
result.string.add(c)
|
||||
|
||||
type
|
||||
PStringStream* = ref TStringStream ## a stream that encapsulates a string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue