From 8640efcd4053353fe97da1a1950ad1c370565a4b Mon Sep 17 00:00:00 2001 From: def Date: Wed, 4 Feb 2015 14:10:58 +0100 Subject: Document terminal.getch --- lib/pure/terminal.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pure/terminal.nim b/lib/pure/terminal.nim index b0c822c57..e0e2aa247 100644 --- a/lib/pure/terminal.nim +++ b/lib/pure/terminal.nim @@ -365,6 +365,8 @@ macro styledEcho*(m: varargs[expr]): stmt = result.add(newCall(bindSym"resetAttributes")) proc getch*(): char = + ## Read a single character from the terminal, blocking until it is entered. + ## The character is not printed to the terminal. when defined(windows): result = winGetch().char else: -- cgit 1.4.1-2-gfad0