Module rdstdin

This module contains code for reading from stdin. On UNIX the GNU readline library is wrapped and set up to provide default key bindings (e.g. you can navigate with the arrow keys). On Windows system.readLine is used. This suffices because Windows' console already provides the wanted functionality.

Procs

proc readLineFromStdin(prompt: string): TaintedString {.
    tags: [FReadIO, FWriteIO], raises: [].}
proc readLineFromStdin(prompt: string; line: var TaintedString): bool {.
    tags: [FReadIO, FWriteIO], raises: [].}
Generated: 2014-03-11 21:26:49 UTC