Skip to content
Myr

Minor documentation fixes

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kevin Yap · committed by Kevin Yap · parent e0ea94a · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:docs/utils.rst+4 added-4 removed
118 unmodified lines
119standard input. However, this is buffered input and will not show up until120the line has been terminated. In certain circumstances, you might not want121to do that and instead read individual characters as they are being written.122123For thi,s click provides the :func:`getchar` function which reads a single123For this, click provides the :func:`getchar` function which reads a single124character from the terminal buffer and returns it as a Unicode character.125126Note that this function will always read from the terminal, even if stdin127is instead a pipe.
14 unmodified lines
142143Note that this reads raw input, which means that things like arrow keys144will show up in the platform's native escape format. The only characters145translated are ``^C`` and ``^D`` which are converted into keyboard146interrupt and end of file exceptions. This is done because otherwise it's147too easy to forget about that and to create scripts that cannot be148properly exited.146interrupts and end of file exceptions respectively. This is done because147otherwise, it's too easy to forget about that and to create scripts that148cannot be properly exited.149150151Waiting for Key Press152---------------------
184 unmodified lines