summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-05-13 12:17:11 +0200
committerAraq <rumpf_a@web.de>2015-05-28 12:51:17 +0200
commit3c13508b25da810f5ffabc3d2f34180d51f19ecc (patch)
tree66e751f01e757c9b9a14d1e0e7fc0ee23dc2977a
parent2b0115eb5fdf616a2cf30ec620d5b4dff7bc8e14 (diff)
downloadNim-3c13508b25da810f5ffabc3d2f34180d51f19ecc.tar.gz
terminal: doc improvments
-rw-r--r--lib/pure/terminal.nim8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/pure/terminal.nim b/lib/pure/terminal.nim
index 29f700db5..7b4d548fe 100644
--- a/lib/pure/terminal.nim
+++ b/lib/pure/terminal.nim
@@ -364,7 +364,13 @@ macro styledEcho*(m: varargs[expr]): stmt =
   result.add(newCall(bindSym"write", bindSym"stdout", newStrLitNode("\n")))
   result.add(newCall(bindSym"resetAttributes"))
 
-when not defined(windows):
+when defined(nimdoc):
+  proc getch*(): char =
+    ## Read a single character from the terminal, blocking until it is entered.
+    ## The character is not printed to the terminal. This is not available for
+    ## Windows.
+    discard
+elif not defined(windows):
   proc getch*(): char =
     ## Read a single character from the terminal, blocking until it is entered.
     ## The character is not printed to the terminal. This is not available for
.gitignore?h=devel&id=1dd9ec85b28335baae23d1e8d7bdb00a74c16cbf'>^
0879f0b0a ^
1b1bb284d ^
0879f0b0a ^

5263d9d6f ^
1b1bb284d ^





2f48dbd16 ^
0879f0b0a ^
180ab350d ^
d20a8ac68 ^
b2e486b23 ^
1b1bb284d ^

1dd9ec85b ^
f2f16f645 ^









f04b502cf ^

fc68a7d88 ^
f04b502cf ^



1b1bb284d ^
b77ae66e8 ^
9a68e1ad0 ^
5263d9d6f ^



035f0fb02 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63