MCPcopy Index your code
hub / github.com/python/cpython / handle_kill_line

Method handle_kill_line

Lib/getpass.py:332–337  ·  view source on GitHub ↗

Erase entire line (Ctrl+U).

(self)

Source from the content-addressed store, hash-verified

330 self.refresh_display(prev_len)
331
332 def handle_kill_line(self):
333 """Erase entire line (Ctrl+U)."""
334 prev_len = len(self.password)
335 self.password.clear()
336 self.cursor_pos = 0
337 self.refresh_display(prev_len)
338
339 def handle_kill_forward(self):
340 """Kill from cursor to end (Ctrl+K)."""

Callers

nothing calls this directly

Calls 2

refresh_displayMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected