summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/terminal.nim2
1 files changed, 2 insertions, 0 deletions
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: