<amanneedsamaid>
Hello, I was wondering if anyone knows of a font or method to get better unicode symbol rendering in foot, right now I have font=monospace:size=9 in my foot.ini, and when using scli (a signal messenger terminal frontend) and trying to 'react' to other messages, all of the symbols besides the thumbs up are just identical rectangles, I tried a font I already had installed (Jetbrains Mono Nerd Font), and it did not work.
lack has quit [Read error: Connection reset by peer]
lack has joined #foot
tawonga has quit [Quit: WeeChat 3.8]
tawonga has joined #foot
tawonga has quit [Changing host]
tawonga has joined #foot
angry_vincent has joined #foot
angry_vincent has joined #foot
angry_vincent has quit [Changing host]
tawonga has quit [Quit: WeeChat 3.8]
tawonga has joined #foot
amanneedsamaid has left #foot [ERC 5.6-git (IRC client for GNU Emacs 30.0.50)]
ollysmith has quit [Ping timeout: 240 seconds]
ollysmith has joined #foot
<novakane>
amanneedsamaid: you tried to setup Jetbrains in foot or you just installed it, because if it is not set as your system monospace font it won't works just using monospace in foot
lack has quit [Read error: Connection reset by peer]
lack has joined #foot
redu091 has joined #foot
redu09 has quit [Ping timeout: 246 seconds]
redu091 is now known as redu09
radu242753435752 has joined #foot
yonson has quit [Ping timeout: 256 seconds]
yonson has joined #foot
erectus has quit [Remote host closed the connection]
erectus has joined #foot
erectus has quit [Remote host closed the connection]
erectus has joined #foot
psusi has joined #foot
<psusi>
my foot window background is not full black. Any idea why?
<anarcat>
is there already a feature request open for "double-click to select text within quotes" or equivalent?
cbb has joined #foot
<psusi>
ahh, apparently you set the color in foot.ini and it defaults to 111111 instead of 000000
<psusi>
whenever I start foot, it complains: locale '$GARBAGE' is not UTF-8, using 'C.UTF-8' instead. seems to be a bug.
<psusi>
my LANG=en_US.UTF-8 so I'm not sure why it is complaining that it isn't UTF-8, or why it prints garbage instead of en_US.UTF-8
<dnkl>
psusi: LANG is most likely not utf8 in the process the foot terminal is launched from
<dnkl>
anarcat: you can tweak which characters break a word selection. Other than that, no existing feature request that I'm aware of
<anarcat>
dnkl: yeah, so the idea is that in some terminal emulators, you have the following sequence: double-click is "word", triple-click is "words between quotes", and four-clicks gets the whole line
<anarcat>
it's not just like tweaking the word selection, it's actually different things
radu242753435752 has quit [Ping timeout: 250 seconds]
<cbb>
psusi: what does "$GARBAGE" look like? random bytes or a readable string?
<psusi>
yea, random
<psusi>
dnkl: like I said, LANG=en_US.UTF-8
<cbb>
psusi: I think dnkl meant LANG could be set to en_US.UTF-8 in some contexts, but not necessarily the one you're launching foot from
<cbb>
what distro are you using?
<cbb>
also, how have you set your locale and how do you launch foot?
<psusi>
gentoo, and I'm running foot myself and explicitly setting LANG when doing so
<psusi>
as in I tell bash "LANG=en_US.UTF-8 foot"
<psusi>
hrm... I tried copying this locale_is_utf8 function to a test program but gcc complains: foo.c:16:17: error: converting to execution character set: Invalid argument
<cbb>
do you get any output if you run "env | grep ^LC_"?
<cbb>
(from the same bash session)
<psusi>
ahh, LC_ALL=en_US
<cbb>
yeah that's the problem then
<cbb>
that takes precendence over LANG
<psusi>
right... now for why the random garbage characters...
<psusi>
oh, and why can't I compile this locale_is_utf8 function?
<cbb>
that's harder to determine, I'd have to take a closer look at the relevant code
<psusi>
it's got some umlouted o or something in a quoted string that gcc seems to choke on
<psusi>
ahh, I think I see the problem... foot calls setlocale() again before trying to print the locale name that was previously returned by setlocale()
<psusi>
I think the second call invalidates the string the first one returned
<psusi>
so it needs a strdup
<psusi>
I'm running foot under sway and I notice that it is also complaining that: render.c:2574: compositor is not releasing buffers immediately; expect lower rendering performance
<psusi>
what's that mean?
<dnkl>
psusi: for best performance, foot needs to be able to re-use the same buffer for each and every frame rendered. If foot detects a certain number of frames being rendered on different buffers, it warns.
<dnkl>
sway should however be releasing buffers immediately. So, might be a mis-detection, though that's not something I've ever seen before
<dnkl>
could also be corner cases in Sway, where buffers aren't released immediately
<cbb>
psusi: I think you may be right about the second call to setlocale()
<cbb>
the setlocale() return value is technically an "opaque string" according to the standards, but I don't think any libc you'd be using on Gentoo would return something random looking
<psusi>
cbb: it doesn't... it returns "en_US", but then after setlocale() is called again, that pointer becomes invalid
<psusi>
dnkl: might it be because I'm using a headless instance of sway accessed via wayvnc?
<dnkl>
psusi: very likely, yes
<psusi>
dnkl: is it just so slow without hardware acceleration that it can't copy the buffer to the screen in time for the next refresh?
<dnkl>
psusi: not that slow. It mostly affects (typing) latency
<dnkl>
foot usually has no problems doing full screen refreshes in a few ms (well below 16ms, which is the refresh interval you have for 60Hz)
<psusi>
I'm not sure you understood what I was getting at. I mean is the cause of the warning the fact that sway takes too long to composite the display before it can return the buffer to foot?
<dnkl>
no
<dnkl>
at least i don't think so
<psusi>
hrm... then why isn't it returning it on time?
<dnkl>
under normal operation, Sway would upload foot's shm buffer to the GPU and then release the buffer
<dnkl>
in headless, there's no GPU, and i suspect Sway needs to keep the shm buffer around until the next frame
<psusi>
for that matter, I thought that the memfd buffer was sealed before sending it to the wayland server, so how can it be returned and reused?
<psusi>
why would it do that? i would think it would just bitblt to the frame buffer.
<dnkl>
it's sealed to prevent size changes. the content isn't sealed
<dnkl>
you'd have to ask the sway devs :)
<psusi>
wait, what? I thoguht sealing also prevented changing the contents, and that you wanted to do that so that the buffer can not be changed in the middle of compoziting the frame?
<dnkl>
there are several sealing flags. foot intentionally doesn't set the "future write" flag
<psusi>
I thought that the wayland server wanted that set to keep the client from modifying the buffer mid composite?
<dnkl>
as soon a foot has committed a frame to the compositor, foot doesn't touch it, until the compositor had released it. that's how changes too the buffer is synchronized
<psusi>
yea, but foot *could* touch it... I thought wayland wanted the buffer sealed to make sure the client can't touch it
<dnkl>
if you set the write seal, you'd have to allocate new buffers for each frame. it's just too inefficient
<psusi>
rather than just trusting the client to not do what it shouldn't
<dnkl>
also, the Wayland protocol specifically mentions immediate buffer release as a way to help client performance. That's not possible to do if you write seal the buffers
<dnkl>
so, I guess clients that are unsure about how and when they touch the buffers could set the write seal to prevent them from tripping themselves...
<dnkl>
compositors are/should be more interested in size seals, since a size change could trigger a SIGBUS in the compositor
angry_vincent has quit []
cub has joined #foot
cub has quit [Ping timeout: 265 seconds]
cub has joined #foot
taupiqueur has quit [Quit: WeeChat 3.8]
psusi has quit [Quit: ERC 5.5 (IRC client for GNU Emacs 29.0.90)]
joecool has quit [Remote host closed the connection]
cub has quit [Quit: Leaving]
redu09 has quit [Read error: Connection reset by peer]
tprepper has joined #foot
redu09 has joined #foot
redu09 has quit [Read error: Connection reset by peer]
redu09 has joined #foot
redu09 has quit [Read error: Connection reset by peer]
redu09 has joined #foot
redu09 has quit [Read error: Connection reset by peer]