Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Textualize/rich
/ read
Function
read
rich/ansi.py:224–227 ·
view source on GitHub ↗
(fd: int)
Source
from the content-addressed store, hash-verified
222
stdout = io.BytesIO()
223
224
def
read(fd: int) -> bytes:
225
data = os.read(fd, 1024)
226
stdout.write(data)
227
return
data
228
229
pty.spawn(sys.argv[1:], read)
230
Callers
nothing calls this directly
Calls
2
read
Method · 0.45
write
Method · 0.45
Tested by
no test coverage detected