Clear the current input line
(event)
| 650 | |
| 651 | @kb.add("c-u") # Ctrl+U: Clear current line |
| 652 | def _(event): |
| 653 | """Clear the current input line""" |
| 654 | event.current_buffer.reset() |
| 655 | |
| 656 | @kb.add("c-l") # Ctrl+L: Clear screen (optional bonus) |
| 657 | def _(event): |