mirror of https://github.com/pwndbg/pwndbg.git
Fix pwnlib terminal initialization (#2459)
GDB wraps stdout and doesn't proxy some functions through to the underlying TextIOWrapper. This causes pwnlib to error out when trying to detect terminal support.
By monkey patching the functions back onto the _GdbOutputFile object, we can use `pwnlib.term.text.red("hi")` to print colored text.
pull/2460/head
parent
10d01abbc3
commit
9577ae7ebb
Loading…
Reference in new issue