Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It'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/d286acbf58b72d05a55453c134...



Yes, 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.


That's one of the craziest hack I've seen in while to get stuff done! And this kind of makes me happy.


After reading your comment all I can think of is: this is why we can't have nice things.


notty will support doing this cleanly in the future: https://github.com/withoutboats/notty




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: