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
Kovid Goyal
68013e8fe7
Move overlay line for a few more commands
2021-11-12 19:38:54 +05:30
Kovid Goyal
7fe32301c4
Use __func__ instead of manually specifying function names
2021-11-12 19:23:09 +05:30
Kovid Goyal
41ddc7d33f
DRYer
2021-11-12 18:26:18 +05:30
Kovid Goyal
eff5840645
overlay line should move even when using REP
2021-11-12 18:03:37 +05:30
Kovid Goyal
eae5c65d3e
Also move overlay when getting backspace from child
...
zsh for some reason sends this when you send it a word. Fixes #4219
2021-11-12 17:56:04 +05:30
Kovid Goyal
c85b545f8d
Add a debug print when receiving text from child while overlay is active
2021-11-12 17:43:01 +05:30
Kovid Goyal
35626d3929
Update IME position when overlay line is moved on input from child process
2021-11-12 15:07:25 +05:30
Kovid Goyal
c8f26dd968
When text is received from the terminal program and the overlay line is active move the overlay line after drawing the text
...
This ensures the overlay line follows the current cursor position
2021-11-12 15:03:24 +05:30
Kovid Goyal
c43637f6cc
Dont copy prompt start bits to multiple lines when resizing the screen
...
This makes it unnecessary to modify the prompt marking protocol to
distinguish consecutive prompts without output in between
2021-11-07 18:00:06 +05:30
Kovid Goyal
588313b9ac
Dont re-render window chars unless needed
2021-11-01 20:38:19 +05:30
Kovid Goyal
9517c3500d
Allow visually selecting upto 36 windows
...
Also dont draw the window title if the window is too small
2021-11-01 10:46:54 +05:30
Kovid Goyal
93dbcab10a
Refactor code to get cell colors
2021-10-28 13:35:30 +05:30
Kovid Goyal
0fdafd8398
Allow rendering the cursor with reverse video
...
Also clean up handling of dynamic global colors.
TODO: Implement none for selection_fg
TODO: Add some tests
TODO: Check that changing colors via remote control works
Fixes #126
2021-10-28 00:21:12 +05:30
Kovid Goyal
01ebc8f15a
Use a space as content placeholder when resizing
2021-10-25 20:05:26 +05:30
Kovid Goyal
518e0f4e21
oops
2021-10-22 12:52:57 +05:30
Kovid Goyal
7546e53c23
...
2021-10-22 12:47:32 +05:30
Kovid Goyal
729cea88f3
More sophisticated OSC 133 parsing with support for secondary prompts
2021-10-22 11:54:54 +05:30
Kovid Goyal
a653233050
Fix #4117
2021-10-14 14:31:11 +05:30
Kovid Goyal
c3f4e734f1
API to set screen window number
2021-10-11 18:00:18 +05:30
Kovid Goyal
d6a43a7729
Dont turn on disambiguate keys when receiving th XTMODKEYS escape code
...
See #4075
2021-10-01 21:26:27 +05:30
Kovid Goyal
eeb02ceef4
Shell integration: Workaround bash not redrawing multiline prompts
2021-10-01 09:30:26 +05:30
Kovid Goyal
06f67e4765
typo in comment
2021-09-30 14:27:22 +05:30
Kovid Goyal
21d3856e90
Another attempt at fixing fish cursor movement
2021-09-30 14:17:01 +05:30
Kovid Goyal
ea186ac48d
Fix click to move cursor in fish multiline text
...
Thanks to @ridiculousfish, see: https://github.com/kovidgoyal/kitty/issues/3948#issuecomment-930458949
2021-09-30 07:44:30 +05:30
Kovid Goyal
9ab5a03f53
Fix movement of cursor when clicking and dual width chars are present in zsh
2021-09-30 07:38:44 +05:30
Kovid Goyal
a0cee13652
Also turn on extended key reporting for CSI > 4; 2 m
...
This is supported by XTerm and used by vim. Fixes #4075
2021-09-29 11:12:01 +05:30
Kovid Goyal
10fbf36e92
Silence bells caused by cursor movement after click at prompt
2021-09-29 10:27:13 +05:30
Kovid Goyal
9a3d99515f
Add support for reporting mouse events with pixel co-ordinates using the SGR_PIXEL_PROTOCOL introduced in xterm 359
2021-09-28 11:41:35 +05:30
Kovid Goyal
7d41aca0e4
More word selection direction change fixes
2021-09-27 20:42:22 +05:30
Kovid Goyal
c71d8fe1cc
Fix #4070
2021-09-27 17:29:22 +05:30
Kovid Goyal
1cef544cff
Allow sending escape code to child in chunks
2021-09-24 16:54:04 +05:30
Kovid Goyal
67cef371dc
Allow writing bytes when sending escape code to child
2021-09-24 14:06:09 +05:30
Kovid Goyal
2a8fd278c1
Bring implementation of XTSAVE and XTRESTORE into line with xterm
...
Now a stack of depth 1 is used to save/restore private mode values. And
saving/restoring individual modes is supported. This latter is used by
midnight commander.
2021-09-14 21:59:41 +05:30
Kovid Goyal
101377d7f2
Better fix for reflow with last line being empty output start line
2021-09-14 14:18:47 +05:30
Kovid Goyal
495981bade
Pass failure to send data to child because of full buffer up the stack
2021-08-25 13:28:50 +05:30
Kovid Goyal
37735b962e
Start work on new file_transmission protocol
2021-08-19 09:23:01 +05:30
Kovid Goyal
fab7cfb113
Handle multiline cursor movement in zsh when clicking
2021-08-18 10:06:10 +05:30
Kovid Goyal
2715947830
DRYer
2021-08-18 10:06:10 +05:30
Kovid Goyal
2472cea69f
Fix resizing causing a line or two from the start of the th last cmd output to be skipped
...
Resizing causes multiple consecutive lines to be marked as being start
of output, so rewind to the first of them.
2021-08-18 10:06:10 +05:30