mirror of
https://github.com/Gallopsled/pwntools.git
synced 2026-10-12 02:02:27 +00:00
* term rework * towards floating cells * redraw when screen clears * term: working completion * Display non-printable characters * ui: fix options with new term * term: Clean up and fix examples/spinners * changelog and lint * Fix SSH in NOTERM mode * defer termios setup * term: py2 compat * py2: compat fixup * appease pylint * fix scroll on winch * term: fix hang on winch during readline
9 lines
178 B
Python
9 lines
178 B
Python
"""
|
|
Example showing `pwnlib.ui.options()`
|
|
"""
|
|
|
|
from pwn import *
|
|
|
|
opts = [string.ascii_letters[x] for x in range(12)]
|
|
print('You choose "%s"' % opts[options('Pick one:', opts)])
|