542 Commits

Author SHA1 Message Date
Kovid Goyal
f37d947dd5
more work on ssh data transmission 2022-03-03 21:24:42 +05:30
Kovid Goyal
2dd7c3b939
More work on ssh bootstrap 2022-03-03 21:24:42 +05:30
Kovid Goyal
cf01480ec8
An echo escape code to echo data via the TTY 2022-03-03 21:24:42 +05:30
Kovid Goyal
ef5c66ee17
Dont bother with new escape code for setting title
Since we are only sending the last command, it cannot have CSI
sequences in it anyway except in extremely contrived situations, so just
strip all ctrl chars out.
2022-02-27 10:55:02 +05:30
Kovid Goyal
d53f8f24c4
Fix #4757
Still have to do the fix for zsh/fish
2022-02-27 10:20:19 +05:30
Kovid Goyal
2d7cb25b20
Fix #4739
I hope, since I cannot reproduce.
2022-02-25 05:50:42 +05:30
Kovid Goyal
8d36fb9edc
Fix copying of selection after selection has been scrolled off history buffer raising an error
Fixes #4713
2022-02-20 13:07:31 +05:30
Kovid Goyal
80fc3a1faa
Fix incorrect function used to get tuple size 2022-02-19 15:29:59 +05:30
Kovid Goyal
80202d2679
Fix show_last_command_output not working when the output is stored partially in the scrollback pager history buffer
Fixes #4435
2022-02-15 13:04:02 +05:30
Kovid Goyal
e06b774174
Avoid double scan of output to look for escape codes 2022-02-13 17:33:13 +05:30
Kovid Goyal
ebfc19def5
Only add an SGR reset at the end if there is atleast one escape code in the ansi output 2022-02-13 15:14:32 +05:30
Kovid Goyal
a4abe26d32
Fix copy ansi to clipboard ignoring newlines 2022-02-13 15:09:14 +05:30
Kovid Goyal
1170cf474f
A new action copy_ansi_to_clipboard to copy the current selection with ANSI formatting codes
Fixes #4665
2022-02-10 12:20:19 +05:30
Kovid Goyal
8fcb6278d7
Cleanup previous PR 2022-02-04 20:38:32 +05:30
pagedown
a1a0c9ab80
Add new mappable action scroll_prompt_to_bottom 2022-02-04 22:52:06 +08:00
Kovid Goyal
4776a9e785
When moving text into scrollback upto cursor actually move up to the prompt the cursor is at 2022-02-04 13:19:24 +05:30
Kovid Goyal
42fbd0a1af
A new action to clear scrollback+screen upto the line with the cursor 2022-02-04 11:42:42 +05:30
pagedown
a987fb81a0
Emits an IME lost focus event when the window lost focus or closed 2022-01-27 10:13:57 +08:00
pagedown
22f077b384
Clear overlay text after screen loses focus 2022-01-27 09:53:40 +08:00
Kovid Goyal
364bad504c
CSI 0 q should blink cursor as per xterm docs and behavior 2022-01-25 13:29:44 +05:30
pagedown
f0d2d01a36
Fix calculating the end of the command output 2022-01-16 04:02:13 +08:00
pagedown
ce32e64692
Check the continued attribute when searching for prompt marks 2022-01-15 20:19:12 +08:00
pagedown
7ea8a7d45f
Fix searching the last command output 2022-01-15 18:38:05 +08:00
pagedown
15615a4cd1
Avoid defining variables with the same name that already exist
Avoid using existing parameter names for local variables.
Avoid using variable names from upper level for nested loops.
Avoid local variables hiding existing global variables.
2022-01-01 21:29:32 +08:00
pagedown
49fbeb9a56
Remove the always true conditions
Unsigned integers are always greater than or equal to zero.
The else branch is always the opposite.
2022-01-01 21:27:01 +08:00
Kovid Goyal
251667a30e
... 2021-12-31 09:44:00 +05:30
Kovid Goyal
e45697f78a
Fix a regression that broke rendering of unicode regional indicators
At some point, unicode regional indicators became combining chars in the
unicode standard, which broke the handling of them in draw_codepoint().
The fix has the added advantage of improving performance in the common
case by only checking for combining chars. The flag check happens only
if the first check matches.

Fixes #4407
2021-12-31 09:28:47 +05:30
Kovid Goyal
b59e42c9cc
Fix animations getting paused when switching to alternate screen and back 2021-12-21 08:24:43 +05:30
Kovid Goyal
1f264ffec5
Fix push/pop of colors not updating colors on screen until a dynamic color is also changed.
Fixes #4351
2021-12-13 11:17:54 +05:30
pagedown
dedbd14ace
Fix action dump_lines_with_attrs 2021-12-10 12:22:21 +08:00
Kovid Goyal
5561aa1d37
Allow forcing IME update 2021-11-28 22:53:45 +05:30
pagedown
9c326397d0
Update the last visited command output position after unscrolling 2021-11-28 21:59:58 +08:00
Kovid Goyal
a62e831932
Clear prompt markings when erasing the display
Fixes prompt detection failing after ctrl+l
2021-11-24 08:17:04 +05:30
Dominique Martinet
b992a448b1 screen_linefeed: add missing MOVE_OVERLAY_LINE_WITH_CURSOR
fixes ibus positioning problem when shell outputs text with pre-edit
overlay open as per suggestion in this comment:
https://github.com/kovidgoyal/kitty/issues/1000#issuecomment-972550266
2021-11-18 14:31:57 +09:00
pagedown
fe075ea795
Unset the last visited command output position 2021-11-17 23:00:27 +08:00
pagedown
b91809eaa4
Allows to open the command output in pager by mouse click 2021-11-17 22:25:49 +08:00
Kovid Goyal
31bf212a60
Merge branch 'feat-cmd-output-mouse-sel' of https://github.com/page-down/kitty 2021-11-16 21:21:26 +05:30
Park, Jeongmin
7c59afbca9 Also move overlay line for CSI ECH,DCH
Without this Neovim banner might not be properly cleared when overlay
text is active.
2021-11-17 00:27:13 +09:00
pagedown
369f4125e1
... 2021-11-16 20:56:57 +08:00
pagedown
aebf654e15
Add command output mouse selection 2021-11-16 18:15:53 +08:00
Kovid Goyal
2cc3922108
Resizing the screen does not cause multiple consecutive output start anymore 2021-11-15 15:17:34 +05:30
Kovid Goyal
e771e1ea8a
Do not call range_line_() with unsafe parameters in find_cmd_output 2021-11-15 15:17:34 +05:30
Kovid Goyal
6afaec1d62
Use a single function for getting command output 2021-11-15 15:17:34 +05:30
Kovid Goyal
c96e6822e1
Dont rely on historybuf->count being a constant
This may become dynamically resizable someday
2021-11-15 15:17:34 +05:30
pagedown
e4781b8af0
... 2021-11-15 15:17:34 +05:30
pagedown
f3dd2a8bfd
Get the first command output on screen and the last scrolled one 2021-11-15 15:17:33 +05:30
pagedown
9fe9c74021
Save the last jumped prompt position 2021-11-15 15:17:33 +05:30
Kovid Goyal
4fb29e1b6b
Infrastructure to render the unfocused cursor in multiple windows 2021-11-12 20:42:37 +05:30
Kovid Goyal
75afe7cd33
Also move overlay line when handling SGR 2021-11-12 19:56:44 +05:30
Kovid Goyal
80eb78033f
Better name for macro
What it actually does is move the overlay line to the new cursor location
2021-11-12 19:51:28 +05:30