You are not logged in.

#1 2022-08-31 22:35:29

salmon
Member
Registered: 2022-05-27
Posts: 42

weird bar thing in kitty terminal apps [solved?]

I dont really know what to call this:
My friends image host; ignore url lol
It always happens, its just only really noticable in tui apps. I went through all of kitty.conf and set everything about borders etc to 0 but its still there. It also happens on konsole and sort of on xterm. Is there a way to make the running program actually take the whole terminal, or a setting i missed or something?

Last edited by salmon (2022-09-01 15:36:44)

Offline

#2 2022-09-01 06:45:54

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,335

Re: weird bar thing in kitty terminal apps [solved?]

weird bar thing in kitty terminal apps […] It also happens on konsole and sort of on xterm.

You may chose wiser subject titles.
It's hard to tell from the limited scrot, but nb. that terminals operate in characters - if you allow the terminal window to take random sizes (maximized window?) there're gonna be dead borders that will show the terminal background color at best, but not be addressed by any client (in this case likely ncurses)

Online

#3 2022-09-01 13:06:18

salmon
Member
Registered: 2022-05-27
Posts: 42

Re: weird bar thing in kitty terminal apps [solved?]

seth wrote:

(maximized window?)

The window is being tiled (dwm) so it doesn't change at all depending on size.
Not ncurses, not actually sure what tui library Helix uses but it's not ncurses.

Offline

#4 2022-09-01 13:23:42

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,335

Re: weird bar thing in kitty terminal apps [solved?]

The tiling will likely just as much ignore the WM_NORMAL_HINTS - it's essentially equivalent to a bunch of mini-maximized windows that are forced into slots.
The TUI lib doesn't matter, the problem is the same with everything.

Please try the window floating (and make sure the WM doesn't allow it to take arbitrary sizes there) and otherwise link (please don't post huge images) a complete screenshot.

Online

#5 2022-09-01 14:01:50

salmon
Member
Registered: 2022-05-27
Posts: 42

Re: weird bar thing in kitty terminal apps [solved?]

https://th3-s4lm0n.github.io/AFishMadeT … i_bars.png
idk if this is too big so leave as link.
I tried on plasma/kwin too and had the same result.

Offline

#6 2022-09-01 14:17:34

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,335

Re: weird bar thing in kitty terminal apps [solved?]

Are we talking about the transparent border or the line below the status bar?
What does xterm look like?

Online

#7 2022-09-01 14:47:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: weird bar thing in kitty terminal apps [solved?]

Another clear test of seth's most-like-correct hypothesis is to change the font size.  If changing font size changes the size of these "bars" this would pretty much confirm that it is a discrepancy of common denominators for character size and window size.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2022-09-01 15:07:12

salmon
Member
Registered: 2022-05-27
Posts: 42

Re: weird bar thing in kitty terminal apps [solved?]

Trilby wrote:

Another clear test of seth's most-like-correct hypothesis is to change the font size.  If changing font size changes the size of these "bars" this would pretty much confirm that it is a discrepancy of common denominators for character size and window size.

I doubled the font size with only a tiny change in bars.
xterm:
a
it may just be that xterm is more visible but i think xterms bars are bigger on the side.

Offline

#9 2022-09-01 15:11:34

salmon
Member
Registered: 2022-05-27
Posts: 42

Re: weird bar thing in kitty terminal apps [solved?]

https://github.com/TH3-S4LM0N/AFishMade … g?raw=true
full screenshot of font change, too big

Offline

#10 2022-09-01 15:13:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: weird bar thing in kitty terminal apps [solved?]

Okay, perhaps I should have been more specific.  Doubling the font size would only have a 50/50 chance of actually being a useful test (as the bars would not change at all if there were an even number of lines in the terminal before hand).

Just change to the next higher / lower font size.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#11 2022-09-01 15:24:09

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,335

Re: weird bar thing in kitty terminal apps [solved?]

The translucent bars around the window are there because the window size ignores the WM_NORMAL_HINTS what is frequent for maximized or tiled windows.
Though dwm has a config for that and it seems to default to respecting the size hints, https://git.suckless.org/dwm/file/config.def.h.html#l37 ?

Online

#12 2022-09-01 15:28:59

salmon
Member
Registered: 2022-05-27
Posts: 42

Re: weird bar thing in kitty terminal apps [solved?]

Went from 11 -> ~11.7 and there's maybe 1 pixel of bar but its not especially noticeable. That seems to do it, just takes a bit of tweaking the font because 11 -> 12 makes it worse so. Thanks anyway though!

Last edited by salmon (2022-09-01 15:29:09)

Offline

#13 2022-09-01 15:32:37

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,335

Re: weird bar thing in kitty terminal apps [solved?]

You do understand that whenever the window size changes (different layout, resolution, window borders, …) you'll run into the same situation?
Did you alter the linked dwm config?

Online

#14 2022-09-01 15:33:47

salmon
Member
Registered: 2022-05-27
Posts: 42

Re: weird bar thing in kitty terminal apps [solved?]

seth wrote:

The translucent bars around the window are there because the window size ignores the WM_NORMAL_HINTS what is frequent for maximized or tiled windows.
Though dwm has a config for that and it seems to default to respecting the size hints, https://git.suckless.org/dwm/file/config.def.h.html#l37 ?

Its set too 1 on my config, seems to be a terminal/app problem rather than the wm i guess.

Offline

#15 2022-09-01 15:40:22

salmon
Member
Registered: 2022-05-27
Posts: 42

Re: weird bar thing in kitty terminal apps [solved?]

seth wrote:

Did you alter the linked dwm config?

it's just a completely default config, wdym? Of course i edited it. That specific value is the same but i have patches and some c i wrote etc. Nothing that should change how that works as far as i know though.

Offline

#16 2022-09-01 15:48:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: weird bar thing in kitty terminal apps [solved?]

Changing the font size was meant as a diagnostic (or really confirmational) test, not a solution.

The solutions would be to either configure the WM to not override size hints (which tends to end up pretty ugly on tiling WMs, but "ugly" here may be subjective), or to configure the terminal and it's background to paint the full window region.  The latter is generally preferred, but the means to do so can vary depending on the terminal and the current configs / preferences - some preferences might prevent this from being successful: for example, if TUI programs using libs like ncurses specify a background color, it will (almost?) never be able to fill to the edges of the window.

As a tiling wm/compositor user, I generally have all TUI programs configured to not specify any background (i.e., use the "default" background) except perhaps for specific lines that'd be highlighted.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#17 2022-09-01 15:55:03

salmon
Member
Registered: 2022-05-27
Posts: 42

Re: weird bar thing in kitty terminal apps [solved?]

Honestly, even if the font size isn't meant to be a solution it works fine enough for now on fullscreen or 1/2 split, and i almost never have 3 windows in a workspace so. I may look into other things and report back here for ppl in the future reading this, but its all good right now.
I tend to not like transparent tui apps so.

Offline

#18 2022-09-01 16:03:03

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,335

Re: weird bar thing in kitty terminal apps [solved?]

Nothing that should change how that works as far as i know though.

https://www.youtube.com/watch?v=5RyYrs5tu60
I'd try a vanilla dwm to back that assumption.

Online

Board footer

Powered by FluxBB