Skip to content

Commit

Permalink
pause echo_stdin
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed Apr 16, 2021
1 parent 6228d23 commit b770a82
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/pallets_sphinx_themes/themes/click/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@ class EofEchoingStdin(EchoingStdin):
"""

def _echo(self, rv):
eof = False
eof = rv[-1] == b"\x04"[0]

if rv[-1] == b"\x04"[0]:
if eof:
rv = rv[:-1]
eof = True

self._output.write(rv)
if not self._paused:
self._output.write(rv)

if eof:
self._output.write(b"^D\n")
if eof:
self._output.write(b"^D\n")

return rv

Expand Down

0 comments on commit b770a82

Please sign in to comment.