MCPcopy Create free account
hub / github.com/python-websockets/websockets / print_over_input

Function print_over_input

src/websockets/cli.py:40–49  ·  view source on GitHub ↗
(string: str)

Source from the content-addressed store, hash-verified

38
39
40def print_over_input(string: str) -> None:
41 sys.stdout.write(
42 # Move cursor to beginning of line
43 "\N{CARRIAGE RETURN}"
44 # Delete current line
45 "\N{ESC}[K"
46 # Print string
47 f"{string}\N{LINE FEED}"
48 )
49 sys.stdout.flush()
50
51
52class ReadLines(asyncio.Protocol):

Callers 1

interactive_clientFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…