terminal: doc improvments
This commit is contained in:
parent
2b0115eb5f
commit
3c13508b25
1 changed files with 7 additions and 1 deletions
|
|
@ -364,7 +364,13 @@ macro styledEcho*(m: varargs[expr]): stmt =
|
||||||
result.add(newCall(bindSym"write", bindSym"stdout", newStrLitNode("\n")))
|
result.add(newCall(bindSym"write", bindSym"stdout", newStrLitNode("\n")))
|
||||||
result.add(newCall(bindSym"resetAttributes"))
|
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 =
|
proc getch*(): char =
|
||||||
## Read a single character from the terminal, blocking until it is entered.
|
## 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
|
## The character is not printed to the terminal. This is not available for
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue