From: Walter Alejandro Iglesias Subject: Re: ksh vi mode: prevent display corruption if line starts with utf8cont To: Ingo Schwarze Cc: tech@openbsd.org Date: Fri, 2 May 2025 13:01:33 +0200 Hello Ingo, On Tue, Apr 29, 2025 at 09:14:30PM +0200, Ingo Schwarze wrote: > If someone can tell me about a way to type in arbitrary bytes - > in particular bytes > 0x7f - into xterm(1) or wscons(4), that > would be appreciated to make manual testing easier. In case I understand what you're asking correctly, in xterm(1) you can do something like the following, for some reason it doesn't work well for UTF-8 start bytes but it seems to work for continuation bytes. First edit ~/.Xmodmap: ! ~/.Xmodmap !keycode 67 = F1 F1 F1 F1 F1 F1 XF86Switch_VT_1 F1 F1 XF86Switch_VT_1 !keycode 68 = F2 F2 F2 F2 F2 F2 XF86Switch_VT_2 F2 F2 XF86Switch_VT_2 keycode 67 = 0x82 keycode 68 = 0xac Then run: $ xmodmap ~/.Xmodmap In my keyboard, with the example above, F1 will print 0x82 and F2 0xac (I put also the original keycode setting in the file to be able to reset those keys after doing the test.) To select which key you prefer to use: $ xmodmap -pke -- Walter