4 ms·
The FAQ[0] says it uses xv to display images. My guess would be that w3m generates a borderless X window running xv set to run on top, then manipulates that wi
by dsp1234 11y ago
The FAQ[0] says it uses xv to display images. My guess would be that w3m generates a borderless X window running xv set to run on top, then manipulates that window to follow the scroll behavior.
[0] - http://w3m.sourceforge.net/FAQ http://w3m.sourceforge.net/FAQ
- Jasper_ 11y agoIt's even sillier than that. It just retrieves the terminal window with XGetInputFocus, and then stomps on top of another client's window, along with a pile of heuristics to prevent drawing on top of tabs, scrollbars, etc. https://github.com/shinh/w3m/blob/d286acbf58b72d05a55453c134216d63273f3b63/w3mimg/x11/x11_w3mimg.c#L778-L806 https://github.com/shinh/w3m/blob/d286acbf58b72d05a55453c134...
- IgorPartola 11y agoAfter reading your comment all I can think of is: this is why we can't have nice things.
- iso-8859-1 11y agonotty will support doing this cleanly in the future: https://github.com/withoutboats/notty https://github.com/withoutboats/notty
- truncate 11y agoThat's one of the craziest hack I've seen in while to get stuff done! And this kind of makes me happy.
- cyphar 11y agoYes, that is horrible. But also goddamn awesome. Sure, I'd never think of doing something similar where it was critical, but you've got to admit that is a fairly clever hack.