A couple of years ago I wrote some patches to make the framebuffer console a bit more compatible with xterm:
https://marc.info/?l=openbsd-tech&m=167252984220096&w=2 Some of the more essential fixes found their way in to CVS, but a lot of the more experimental code didn't. As a result, setting TERM=xterm mostly works on the console, (apart from some breakage in 7.5 which has long since been fixed), but a lot of the extra features still require external patches. This patchset has been kept updated and has been in daily use on various machines here at Exotic Silicon ever since, so I decided to package up a version that applies to OpenBSD 7.7-release and make it available for anyone who is interested. https://research.exoticsilicon.com/articles/console_enhancement_patchset_77 Even if you don't want to use the patchset, if you're a frequent user of the framebuffer console then it's worth testing TERM=xterm on a stock system, and seeing if anything breaks with your application usage. If it does, I'm happy to receive bug reports.