mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 04:58:57 +00:00
83b0294fc9
On ctrl-l we send `\e[2J` (Erase in Display). Some terminals interpret this to scroll the screen content instead of clearing it. This happens on VTE-based terminals like gnome-terminal for example. The traditional behavior of ctrl-l erasing the screen (but not the rest of the scrollback) is weird because: 1. `ctrl-l` is the easiest and most portable way to push the prompt to the top (and repaint after glitches I guess). But it's also a destructive action, truncating scrollback. I use it for scrolling and am frequently surprised when my scroll back is missing information. 2. the amount of lines erased depends on the window size. It would be more intuitive to erase by prompts, or erase the text in the terminal selection. Let's use scrolling behavior on all terminals. The new command could also be named "push-to-scrollback", for consistency with others. But if we anticipate a want to add other scrollback-related commands, "scrollback-push" is better. This causes tests/checks/tmux-history-search.fish to fail; that test seems pretty broken; M-d (alt-d) is supposed to delete the current search match but there is a rogue "echo" that is supposed to invalidate the search match. I'm not sure how that ever worked. Also, pexepect doesn't seem to support cursor position reporting, so work around that. Ref: https://codeberg.org/dnkl/foot/wiki#how-do-i-make-ctrl-l-scroll-the-content-instead-of-erasing-it as of wiki commit b57489e298f95d037fdf34da00ea60a5e8eafd6d Closes #10934 |
||
---|---|---|
.. | ||
abbrs.py | ||
bind.py | ||
bind_mode_events.py | ||
cancel_event.py | ||
commandline.py | ||
complete-group-order.py | ||
complete.py | ||
cursor_selection.py | ||
disable_mouse.py | ||
eval-stack-overflow.py | ||
exit.py | ||
exit_handlers.py | ||
exit_nohang.py | ||
fg.py | ||
fkr.py | ||
generic.py | ||
histfile.py | ||
history.py | ||
isatty.py | ||
job_summary.py | ||
nullterm.py | ||
pipeline.py | ||
postexec.py | ||
private_mode.py | ||
prompt_redraw_loop.py | ||
read.py | ||
set_color.py | ||
sigint.py | ||
signals.py | ||
status.py | ||
stdin_nonblocking.py | ||
terminal.py | ||
torn_escapes.py | ||
tty_ownership.py | ||
undo.py | ||
wait.py | ||
wildcard_tab.py |