MCPcopy
hub / github.com/Gallopsled/pwntools / raw_input

Function raw_input

pwnlib/term/readline.py:429–440  ·  view source on GitHub ↗

r"""raw_input(prompt='', float=True) Replacement for the built-in ``raw_input`` using ``pwnlib`` readline implementation. Arguments: prompt(str): The prompt to show to the user. float(bool): If set to `True`, prompt and input will float to the botto

(prompt='', float=True)

Source from the content-addressed store, hash-verified

427 shutdown_hook()
428
429def raw_input(prompt='', float=True):
430 r"""raw_input(prompt='', float=True)
431
432 Replacement for the built-in ``raw_input`` using ``pwnlib`` readline
433 implementation.
434
435 Arguments:
436 prompt(str): The prompt to show to the user.
437 float(bool): If set to `True`, prompt and input will float to the
438 bottom of the screen when `term.term_mode` is enabled.
439 """
440 return readline(-1, prompt, float).rstrip(os.linesep.encode())
441
442def str_input(prompt='', float=True):
443 r"""str_input(prompt='', float=True)

Callers 3

yesnoFunction · 0.90
optionsFunction · 0.90
pauseFunction · 0.90

Calls 1

readlineFunction · 0.85

Tested by

no test coverage detected