Skip to content
Myr

with raw_terminal() needs an as fd to fully work.

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

authored by JosiahDub · committed by JosiahDub · parent 06763ac · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:click/_termui_impl.py+1 added-1 removed
565 unmodified lines
566 except termios.error:567 pass568569 def getchar(echo):570 with raw_terminal():570 with raw_terminal() as fd:571 ch = os.read(fd, 32)572 if echo and isatty(sys.stdout):573 sys.stdout.write(ch)574 _translate_ch_to_exc(ch)
1 unmodified line