Christian Weisgerber <na...@mips.inka.de> writes: > On 2015-12-27, Timo Myyrä <timo.my...@wickedbsd.net> wrote: > >> I noticed issue with mg scroll-up keybinding when "xterm*locale: true" is set in >> ~/.Xresources. >> When the above option is set, mg requires that you type C-v C-v to scroll-up >> instead of single C-v. I'm not sure if this is bug or feature. > > That would be a bug, but I can't reproduce this.
Just did a bit more testing. After stripping my ~/.Xresources to following: xterm*loginShell: true xterm*locale: utf-8 And using 'xrdb ~/.Xresources', opening new xterm I get the expected behaviour. If I change the config 's/utf-8/true/', use xrdb to update settings and open new Xterm I get the odd behaviour. It doesn't seem to be mg specific. The Xterm itself shows this. With first config the key combination "^v^m" inserts literal ^M to shell. With latter config shell does new line as though ^v never happened. By looking at Xterm man page seems that locale:true assumes all input is utf-8 encoded already, with locale:utf-8 xterm uses luit to convert input to utf-8 with it. So input given to xterm isn't utf-8 on OpenBSD and needs luit to convert it? Timo