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

Method handle_kill_forward

Lib/getpass.py:339–343  ·  view source on GitHub ↗

Kill from cursor to end (Ctrl+K).

(self)

Source from the content-addressed store, hash-verified

337 self.refresh_display(prev_len)
338
339 def handle_kill_forward(self):
340 """Kill from cursor to end (Ctrl+K)."""
341 prev_len = len(self.password)
342 del self.password[self.cursor_pos:]
343 self.refresh_display(prev_len)
344
345 def handle_erase_word(self):
346 """Erase previous word (Ctrl+W)."""

Callers

nothing calls this directly

Calls 1

refresh_displayMethod · 0.95

Tested by

no test coverage detected