Index | Thread | Search

From:
Walter Alejandro Iglesias <wai@roquesor.com>
Subject:
Re: ksh vi mode: prevent display corruption if line starts with utf8cont
To:
Ingo Schwarze <schwarze@usta.de>
Cc:
tech@openbsd.org
Date:
Fri, 2 May 2025 20:01:36 +0200

Download raw body.

Thread
On Fri, May 02, 2025 at 03:38:10PM +0200, Ingo Schwarze wrote:
> I do not have 128 spare keys on my keyboard that i could use for such
> a purpose.
>

I thought you only needed to write some random UTF-8 continuation byte
at the first column.

> As a workaround, the trick mentioned by lucas@, using a second xterm(1)
> window to combine printf(1) with the xclip(1) port and then paste the
> byte(s) with the mouse is also very hackish, but more flexible and less
> disruptive than the reconfiguration you suggest.
> 

Of course, printf and mouse copy-paste is the obvious solution.  Using
xclip from ports you don't even need to touch the mouse.  First run:

  $ printf '\x80' | xclip

In xterm(1), Shift+Insert pastes the content of the clipboard.


-- 
Walter