mirror of
https://github.com/Gallopsled/pwntools.git
synced 2026-10-12 02:02:27 +00:00
* Enable text colors in Windows console Consoles on Windows 10 support ANSI escape sequences including color codes. Emulate unix curses `tigetstr` terminal capabilities by hardcoding the given escape sequences for used curses capabilities. ANSI escape sequences have to be enabled using `kernel32.SetConsoleMode(hndl, ENABLE_VIRTUAL_TERMINAL_PROCESSING)` for the current console. * Use object identity operator
8 lines
157 B
Python
8 lines
157 B
Python
__all__ = ['get']
|
|
import sys
|
|
if sys.platform == 'win32':
|
|
from pwnlib.term.windows_termcap import get
|
|
else:
|
|
from pwnlib.term.unix_termcap import get
|
|
|