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)
| 427 | shutdown_hook() |
| 428 | |
| 429 | def 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 | |
| 442 | def str_input(prompt='', float=True): |
| 443 | r"""str_input(prompt='', float=True) |