Date: Wed, 22 Jun 2022 13:36:22 +0000 From: Ivan Quitschal <tezeka@hotmail.com> To: Hans Petter Selasky <hps@selasky.org>, "freebsd-current@freebsd.org" <freebsd-current@freebsd.org> Subject: RES: vt newcons mouse paste issue FIXED Message-ID: <CP6P284MB1900CC7B7F6343DAB1D1E5BCCBB29@CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM> In-Reply-To: <f6c1ee1c-bdd9-c8d6-1385-145022e6765d@selasky.org> References: <CP6P284MB1900CA1ED5B5BADE054ECB34CBB29@CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM> <f6c1ee1c-bdd9-c8d6-1385-145022e6765d@selasky.org>
index | next in thread | previous in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CP6P284MB1900CC7B7F6343DAB1D1E5BCCBB29>
