Commit Graph

351 Commits

Author SHA1 Message Date
Kovid Goyal
0fe4d6462b ... 2023-08-25 09:01:07 +05:30
Kovid Goyal
c49d71f85b Allow more chars in visual_window_select_characters
Fixes #6554
2023-08-16 20:38:10 +05:30
Kovid Goyal
cba8b0a1dd ... 2023-08-15 09:18:00 +05:30
Kovid Goyal
6c7a8f8fa9 Ensure usage of __attribute__(cleanup) never frees un-initialized memory
Use macros that take an initializer parameter to, thereby ensuring the
variable to be cleaned up is always initialized.
2023-08-07 12:24:18 +05:30
Kovid Goyal
bde4a41ed4 Remote control: Allow using a random TCP socket as the remote control socket and also allow using TCP sockets in kitty.conf 2023-08-04 11:12:31 +05:30
Kovid Goyal
59b47a3a8f A facility to easily have child programs print to kitty stdout
Works better than the kitty-print DCS escape code as that tends to get
interleaved with other writes to the tty since the loop infrastructure
writes in a separate I/O thread.
2023-07-30 19:49:44 +05:30
Kovid Goyal
5c786c96e1 ... 2023-07-30 19:49:38 +05:30
Kovid Goyal
dcdc676719 ... 2023-07-21 12:46:06 +05:30
Yang Tang
38decaae40 Fix typo in option definitions 2023-07-14 01:16:26 -04:00
Kovid Goyal
94e2aeb38c ... 2023-07-14 06:49:28 +05:30
Kovid Goyal
d4f9d22c92 Have ctrl_l clear the current prompt line so it is not saved in the scrollback 2023-07-13 22:01:27 +05:30
Kovid Goyal
4a039a45ec Fix the save and clear ctrl+l zsh example 2023-07-13 21:49:25 +05:30
Kovid Goyal
d218040d26 A new value for background_image_layout to scale the background image while preserving its aspect ratio.
Also have centered images work even for images larger than the window size
Fixes #6458
2023-07-13 21:33:58 +05:30
Konstantin Borisov
ee4a9c6ed8 fixed CENTER_CLAMPED to center images bigger than view, added CENTER_SCALED background image layout option 2023-07-13 21:26:25 +05:30
Kovid Goyal
5f8610f7bc macOS: Add a new value titlebar-and-corners for :opt:hide_window_decorations that emulates the behavior of hide_window_decorations yes in older versions of kitty 2023-07-11 22:27:47 +05:30
Kovid Goyal
66a2efd191 Add a note about titlebar-only and rounded corners 2023-07-05 10:56:46 +05:30
Kovid Goyal
d3f14ffbf4 macOS: Fix window shadows not being drawn for transparent windows
Re-organize the whole infrastructure for setting window chrome, doing it
in a single function that has access to all settings.

Fixes #2827
Fixes #6416
2023-07-04 11:59:50 +05:30
Kovid Goyal
7c6d40fa0c Implement background blur for KDE on X11 as well 2023-06-27 14:56:35 +05:30
Kovid Goyal
7a1bdb4ff1 macOS: Implement background blurring
Uses a private API that allows us to control the amount of blurring.
While using a private API is obviously not ideal, it is used by both
iTerm.app and Apple's own Terminal.app, so hopefully it should stick
around. Fixes #6135
2023-06-27 08:48:16 +05:30
Kovid Goyal
4ac5b8f82f Fix text_fg_override_threshold not working with multi-pass rendering
This has the side-effect of also applying the same luminance based gamma
adjustment for multipass rendering as we do for single pass rendering.
This *may* make things look worse with very low background_opacity
values, since in such cases the actual background color can be quite
different from the background color we are adjusting against.
2023-06-24 08:32:03 +05:30
Kovid Goyal
40f3f4a31a Reduce the default dim_opacity
The new value works better with the text rendering system introduced in
0.28. Fixes #6380
2023-06-22 20:45:04 +05:30
olzhasar
d0a5d1b3a4 Fix misspellings 2023-06-14 03:39:53 +06:00
Kovid Goyal
cd56597e7e Remove the resize_draw_strategy option
Use scale + size as the fixed strategy. This is because static looks
bad with translucent windows (the cell area ends up a different opacity
than the newly exposed window area).
2023-06-07 15:36:05 +05:30
Kovid Goyal
89875af5e6 Fix jerky behavior when live resizing an OS window on platforms that report live resize being and end events
Also disable live resize begin/end events on Wayland since they are not
reliable.

On platforms that support live resize begin/end use a separately
configurable pause time before the screen is redrawn.

Fixes #6341
2023-06-07 14:31:39 +05:30
Kovid Goyal
d3fc8a2897 Remove a bunch of option processing code and directly define the threshold in the shader 2023-05-24 21:23:39 +05:30
Kovid Goyal
c3242453bd ... 2023-05-24 21:11:06 +05:30
Kovid Goyal
b0b65c452e Fix fg threshold not applying when using legacy text composition
Also note that it does not work with multi-pass rendering.
2023-05-24 21:02:00 +05:30
Kovid Goyal
b45d7ae21f Dont require restart to change text_fg_override_threshold from zero to non-zero 2023-05-24 13:50:19 +05:30
Kovid Goyal
53073f34d7 Cleanup previous PR 2023-05-24 13:31:29 +05:30
Kovid Goyal
7dd06cf134 Merge branch 'text-fg-override-contrast-threshold' of https://github.com/lmcnulty/kitty 2023-05-24 12:56:29 +05:30
Luna McNulty
9bd97b090d Remove glsl if-else, add macro, separate new opt
This adds a config option called text_fg_override_threshold that
specifies a percentage difference luminance below which the
foreground color will be overridden. The foreground color is set
to white if the background is dark or black if the background is
light. The default is 0, and the computations will only be
performed if the option is set.

Many programs output colors that look good with the author's
terminal's color scheme but which are completely illegible with
other color schemes. This allows the user ensure that there is
always sufficient contrast to read the text on the screen.

I originally implemented this is as a parameter on
text_composition_strategy. For that to work, the option needed to
take _up to_ rather than _exactly_ the number of available
parameters. While it now has nothing to do with the new feature,
it seems like that change should be made anyway, so I'm leaving
it in for now.
2023-05-20 11:13:53 -04:00
Kovid Goyal
5e67908b6f Clarify language describing num_window_groups
Fixes #6291
2023-05-20 12:39:46 +05:30
Luna McNulty
05d94e8256 Add foreground override contrast threshold
This adds a parameter to text_composition_strategy that specifies
a percentage difference luminance below which the foreground
color will be overridden. The foreground color is set to white if
the background is dark or black if the background is light.

Many programs output colors that look good with the author's
terminal's color scheme but which are completely illegible with
other color schemes. This allows the user ensure that there is
always sufficient contrast to read the text on the screen.

Since we want existing configs to continue working, this also
makes it so that rather than taking exactly two parameters,
text_composition_strategy takes one--three parameters, using the
default values for those not specified.
2023-05-18 11:28:33 -04:00
Kovid Goyal
1777b87c45 Improve docs for reset the terminal 2023-05-09 09:44:05 +05:30
Kovid Goyal
e72975cc98 A new escape code that moves the current contents of the screen into the scrollback before clearing it 2023-05-09 09:32:39 +05:30
Kovid Goyal
6aa2a7f99d ... 2023-04-09 09:08:34 +05:30
Kovid Goyal
6dcc7ad0c7 Add a HOWTO for adjusting text_composition_strategy 2023-04-03 17:40:15 +05:30
Kovid Goyal
5ff1dadf0d Allow using --session=none to override startup_session
Fixes #6131
2023-03-25 10:44:34 +05:30
Kovid Goyal
f046884f23 Allow stopping of URL detection at newlines via url_excluded_characters
Fixes #6122
2023-03-21 08:04:42 +05:30
Kovid Goyal
f61ddd62d1 Allow specifying an optional integer argument for next_layout. Fixes #6121 2023-03-20 19:49:37 +05:30
Kovid Goyal
fda2646dd3 Cleanup previous PR 2023-03-19 10:37:37 +05:30
Campbell Jones
55fd885491 Add option to set XDG sound theme on Linux 2023-03-18 16:38:29 -04:00
Kovid Goyal
9870c94007 More work on porting the SSH kitten 2023-02-26 08:01:03 +05:30
pagedown
e388326929 ... 2023-02-11 20:36:25 +08:00
Kovid Goyal
74a5b26967 ... 2023-02-11 05:48:01 +05:30
pagedown
c172e0158c Docs: Minor configuration docs improvements
Add some text roles.
Revise the cases of some words.
Manually wrap lines to make the generated commented config file and
source code a bit neater.
2023-02-10 12:46:31 +08:00
Kovid Goyal
439a997e5d Add a note to macos_thicken_font pointing to the new text_composition_strategy 2023-02-09 19:59:09 +05:30
Kovid Goyal
4dfd4d4972 sRGB glyph composition: Use default values that give "close to native" rendering. Also use only a single option to control it. 2023-02-08 13:49:53 +05:30
Kovid Goyal
8433f1d731 Update changelog for last PR 2023-02-08 13:03:25 +05:30
Kovid Goyal
2849eadd47 Minor cleanups 2023-02-08 12:51:18 +05:30