Repository navigation
0.20.0
New:
LocalTerminalControlhands the terminal over to other programs withreleased, like an editor or an interactive command, and takes it over again afterwards, drawing everything anew. Meanwhile, nothing is drawn, input is left to those programs, and stdout and stderr are no longer intercepted.- Ctrl+Z suspends the program when no key handler consumes it, like it does in a shell, and
fgresumes it.TerminalControl.suspendProcessdoes the same. Neither is supported on Windows. Terminal.releasedandTerminal.suspendProcessdo the same for the terminal alone, without Mosaic, andTty.suspendProcessstops the process.TextFieldmoves between rows with ↑ and ↓, leaving them to other handlers on the first and last row, for example to recall earlier input. Alt or Ctrl with ← and →, and Alt+B and Alt+F, move by words, and Alt+Backspace and Alt+D delete them.TextFieldselects with Shift and the keys which move the cursor, and by dragging the mouse, which copies the selection to the clipboard. Typing and pasting replace the selection.TextFieldStatehasselectionStart,selectionEnd,selectedText,select, andselectAll.TextFieldundoes edits with Ctrl+_ (or Ctrl+/) and redoes them with Ctrl+Shift+Z, grouping typed characters by word.TextFieldStatehasundo,redo,canUndo, andcanRedo.- Text deleted with Ctrl+U, Ctrl+K, Ctrl+W, Alt+Backspace, and Alt+D is inserted again with Ctrl+Y, like in a shell.
TextFieldtakesminLines.Modifier.onPreviewPasteEventreceives pastes before the focused node, like a text field, so that ancestors can intercept them, for example to insert a placeholder for a large paste.- With the mouse enabled, dragging where no pointer handler takes the press selects text, like the terminal does without mouse tracking, and copies it to the clipboard once released. Double clicks select words, and triple clicks rows.
Changed:
- Ctrl+, Ctrl+], Ctrl+^, and Ctrl+_ are reported as those keys with Ctrl in terminals without the Kitty keyboard protocol, rather than as control characters which were dropped.