RES: vt newcons mouse paste issue FIXED

From: Ivan Quitschal <tezeka_at_hotmail.com>
Date: Wed, 22 Jun 2022 13:36:22 UTC
Hi Hans

Please find below. 
It can't paste the entire screen (mine is 1920x1080) tho, due to "sz" size I believe.

43a44
> #include <sys/ctype.h>
754a756
>       term_char_t *end;
774a777,783
>               end = buf + i -1;
>               while (end > buf && isspace((unsigned char)*end))
>               {
>                       *end = '\0';
>                       end--;
>               }
> 
777c786
<                       buf[i++] = '\r';
---
>                       buf[i] = '\r';
778a788
>                       buf[i++] = '\0';


--tzk

-----Mensagem original-----
De: Hans Petter Selasky <hps@selasky.org> 
Enviada em: quarta-feira, 22 de junho de 2022 10:14
Para: Ivan Quitschal <tezeka@hotmail.com>; freebsd-current@freebsd.org
Assunto: Re: vt newcons mouse paste issue FIXED

On 6/22/22 14:53, Ivan Quitschal wrote:
> 
> Hi All
> 
> About this anoying paste error we still have in vt console, I looked 
> it up and couldnt find any fix regarding this, so i did it.
> 
> Please find attached the fixed version of /usr/src/sys/dev/vt/vt_buf.c 
> with trim spaces and aligned to the console size.
> I've tested with other fonts and looks fine in here.
> 
> I hope this can help other ppl which finds this terminal mouse paste 
> issue a pain in the neck.
> 
> thanks
> 
> --tzk

Can you provide the diff against the old, unmodified file?

--HPS