Date: Sat, 27 Sep 1997 13:19:08 +1000 (EST) From: Ada T Lim <ada@not-enough.bandwidth.org> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: i386/4635: syscons mouse cut: paste inserts trailing spaces Message-ID: <199709270319.NAA00442@polya.blah.org> Resent-Message-ID: <199709270400.VAA21165@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 4635 >Category: i386 >Synopsis: syscons mouse cut&paste inserts trailing spaces >Confidential: yes >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Sep 26 21:00:00 PDT 1997 >Last-Modified: >Originator: Ada T Lim >Organization: >Release: FreeBSD 2.2-STABLE i386 >Environment: >Description: When copying a block using syscons cut and paste, the driver inserts spaces to pad out each line to 80 lines. This is incompatible with the behaviour exhibited by screen and xterm, which insert newlines after the last printing character of each line. >How-To-Repeat: >Fix: *** syscons.c Sat Sep 27 13:06:49 1997 --- syscons.c.dist Sat Sep 27 12:40:05 1997 *************** *** 3935,3949 **** if (scp->status & MOUSE_VISIBLE) { struct tty *tp; u_char *ptr = cut_buffer; - u_char *p2 = ptr; tp = VIRTUAL_TTY(get_scr_num()); ! while (*ptr) { ! for(p2 = ptr; *p2 == ' '; p2++); ! if(*p2 == '\n') ! ptr = p2; (*linesw[tp->t_line].l_rint)(scr_rmap[*ptr++], tp); - } } } --- 3935,3944 ---- if (scp->status & MOUSE_VISIBLE) { struct tty *tp; u_char *ptr = cut_buffer; tp = VIRTUAL_TTY(get_scr_num()); ! while (*ptr) (*linesw[tp->t_line].l_rint)(scr_rmap[*ptr++], tp); } } >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709270319.NAA00442>