Mitchell Hashimoto
879bdf27a9
core: scroll viewport back to bottom on any key input that isn't a mod
...
Fixes #619
This changes the behavior from requiring printable text to any input
that isn't a modifier and also generates some data we send to the pty.
If there is printable text, we also clear the selection.
2023-10-15 08:53:38 -07:00
Mitchell Hashimoto
a75d42b4a5
core: allow arrow key on scroll to fail write to IO
...
Fixes #625
This only applies if there is a LOT of scroll events. In that case,
clamping the scroll events to whatever our IO thread can handle seems
fine. An alternate approach is to allocate.
2023-10-14 10:53:20 -07:00
Mitchell Hashimoto
6a065540dd
terminal: KAM (mode 2)
...
This has an associated config `vt-kam-allowed` which defaults to "false"
since this mode can cause the terminal to become mostly unusable. We
include this mode for completions sake however.
2023-10-12 17:07:47 -07:00
Mitchell Hashimoto
f94f32be79
website
2023-10-11 22:01:37 -07:00
Mitchell Hashimoto
392da475e1
terminal: XTSHIFTESCAPE
2023-10-11 21:49:04 -07:00
Mitchell Hashimoto
f7cc5ccdd6
config: add mouse-shift-capture configuration
2023-10-11 21:38:52 -07:00
Mitchell Hashimoto
a234627156
core: mouse selection to right should include first cell if past
...
boundary
2023-10-10 09:37:11 -07:00
Mitchell Hashimoto
a6d3d51945
core: mouse selection when moving left before half-way point
...
If you have a cell "M" and you click before the mid-point of M on the
left side and then drag left, we should not select "M".
2023-10-10 09:35:11 -07:00
Mitchell Hashimoto
f640fbc394
core: alternate scroll only sends up/down arrows, not left/right
2023-10-07 14:26:39 -07:00
Mitchell Hashimoto
b98cc3d79f
config: add remaining font modifiers
2023-10-04 22:08:19 -07:00
Mitchell Hashimoto
2563a195a1
font: wire up all the metric modifiers
2023-10-04 21:42:03 -07:00
Mitchell Hashimoto
54b9b45a7f
font: rework font init to use a struct with modifiersets everywhere
2023-10-04 17:23:57 -07:00
Mitchell Hashimoto
3046fb6dd7
core: textCallback to send text directly to the terminal
2023-10-04 07:50:05 -07:00
Mitchell Hashimoto
1127330b3a
font/coretext: score discovered fonts
2023-10-03 09:17:41 -07:00
Mitchell Hashimoto
a1a8aeb104
initial window size needs to take into account window chrome
2023-09-30 21:35:50 -07:00
Mitchell Hashimoto
56b0cb51d5
apprt/gtk: previous_tab/next_tab action do not consume if there are no tabs
2023-09-29 22:12:38 -07:00
Mitchell Hashimoto
a85c508892
apprt/gtk: add ctrl+page-up/down as prev/next tab
2023-09-29 22:04:30 -07:00
Mitchell Hashimoto
3569073ff5
core: handle unconsumed bindings in key callbacks
2023-09-29 21:37:30 -07:00
Mitchell Hashimoto
f9962a04ef
recomment line
2023-09-29 20:01:26 -07:00
Mitchell Hashimoto
ecb1d19890
input: fix regression with ascii mapping to a keypad key
2023-09-29 20:00:50 -07:00
Tim Culverhouse
488e6670c2
selection: only clear when keypress has utf8
...
Currently, the selection on a surface is cleared on any keypress that
generates a control sequence. For applications that enable kitty, this
can mean that every keypress clears the current selection thereby making
it impossible to copy text, since it will be cleared as soon as Control
is pressed. This can be very confusing to terminal users: some
applications I can shift+highlight and copy+paste, some I can't - and
unless I know the implementation of the application I won't know
why...very frustrating.
Only clear the selection when there is printable text, otherwise retain
the selection. From my testing, this makes text selection feel the same
between applications using kitty keyboard and applications that don't.
2023-09-29 16:07:21 -05:00
Nathan Youngman
73331887fe
fabs builtin was renamed
...
https://github.com/ziglang/zig/pull/17248
I just tried installing from source and ran into the error:
> error: invalid builtin function: '@fabs'
2023-09-28 15:29:08 -07:00
Mitchell Hashimoto
28b7782bbe
core: do not scroll viewport if mouse reporting is requested
...
Fixes #570
2023-09-28 09:50:44 -07:00
Mitchell Hashimoto
010338354a
core: normalize newlines in non-bracketed pastes
...
Fixes #547
For non-bracketed paste mode, "\r\n" => "\r" and "\n" => "\r". See the
issue for more supporting documentation.
2023-09-26 14:36:07 -07:00
Mitchell Hashimoto
8c4d25050a
apprt/gtk: detect keyboard modifier state for mouse events
2023-09-26 12:37:59 -07:00
Mitchell Hashimoto
57d81ba9e1
core: disable styles
2023-09-26 08:39:36 -07:00
Mitchell Hashimoto
17c0e7f75f
config: font style is a union
2023-09-26 08:13:11 -07:00
Mitchell Hashimoto
96f835b78b
core: shift does not send mouse events
...
Fixes #542
2023-09-26 07:52:22 -07:00
Mitchell Hashimoto
c2cc2b8f03
core: hook up the codepoint map to the loaded font group
2023-09-24 20:35:05 -07:00
Mitchell Hashimoto
52591161bc
config: add font-style configurations
2023-09-24 09:13:25 -07:00
Mitchell Hashimoto
b7055e2026
core: send proper reporting code for alt not super
2023-09-21 08:49:14 -07:00
Mitchell Hashimoto
b30feeb596
core: move clipboard to async process
2023-09-19 10:18:17 -07:00
Mitchell Hashimoto
008738df56
core: only prevent repeat mouse events for motion
...
Fixes #485
2023-09-18 09:15:26 -07:00
Mitchell Hashimoto
dbd8add23e
core: don't send release events for key bindings
...
Fixes #482
2023-09-17 14:31:15 -07:00
Mitchell Hashimoto
ef7e0f7fdb
core: mouse reports should always send on release even if outside
...
Fixes #481
2023-09-17 14:22:40 -07:00
Mitchell Hashimoto
36c9d607b2
core: do not send repeat mouse events if cell didn't change
2023-09-17 11:49:25 -07:00
Mitchell Hashimoto
ab4acf0d00
core: send mouse motion events if motion tracking and button pressed
2023-09-17 11:45:53 -07:00
Mitchell Hashimoto
d6b827cce7
core: all SGR mouse report modes can tell button differences
...
Fixes #478
2023-09-17 10:24:51 -07:00
Mitchell Hashimoto
dd85f6c41d
core: do not emit mouse report events if position is outside surface
2023-09-17 09:56:26 -07:00
Mitchell Hashimoto
ef9ed48434
Merge pull request #463 from mitchellh/osc52-invalid
...
core: resiliency to invalid base64 data for OSC 52
2023-09-14 20:33:51 -07:00
Mitchell Hashimoto
70420fe0d6
core: resiliency to invalid base64 data for OSC 52
...
Fixes #460
2023-09-14 20:13:13 -07:00
Mitchell Hashimoto
a5a93013b3
if mouse hide setting changes to false, show mouse immediately
2023-09-14 19:54:28 -07:00
Mitchell Hashimoto
a7e8b7559e
mouse-hide-while-typing config and glfw implementation
2023-09-14 17:36:21 -07:00
Mitchell Hashimoto
cb2931cb27
rename cursor shape to mouse shape for OSC 22
2023-09-14 11:12:17 -07:00
Mitchell Hashimoto
7734bab8c4
terminal: cursor shape parsing, hook up to apprt callback
2023-09-14 10:12:38 -07:00
Mitchell Hashimoto
b4d2818522
typo in loading emoji font for linux
2023-09-13 15:28:08 -07:00
Mitchell Hashimoto
d381cefb8f
bring back built-in emoji font for Linux
2023-09-13 15:27:01 -07:00
Mitchell Hashimoto
5e75752d7d
core: do not preload Apple Emoji, our fallback search can find it
2023-09-13 14:42:56 -07:00
Mitchell Hashimoto
e459f0f94b
core: do not do emoji font fallback on Linux
...
Our font discovery mechanism is capable of finding this.
2023-09-13 14:41:01 -07:00
Mitchell Hashimoto
a2236d1ceb
font: fallback search must verify presentation
2023-09-13 14:27:04 -07:00