Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Nov 2013 14:03:31 GMT
From:      HATANO Tomomi <hatanou@infolab.ne.jp>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/183860: Larger 2bsd-vi terminal width needed.
Message-ID:  <201311111403.rABE3VDF048948@oldred.freebsd.org>
Resent-Message-ID: <201311111410.rABEA3Kv031130@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         183860
>Category:       ports
>Synopsis:       Larger 2bsd-vi terminal width needed.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 11 14:10:03 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     HATANO Tomomi
>Release:        9.2-RELEASE
>Organization:
>Environment:
FreeBSD sasami.infolab.ne.jp 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013     root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
editors/2bsd-vi limits terminal width 160 chars.
In modern environment, xterm width can easily exceed 160.

p.s.
2bsd-vi supports multibyte chars that system-default nvi doesn't.
2bsd-vi is enough for me.

>How-To-Repeat:
Create a xterm window larger than 160 width,
and invoke 2bsd-vi in it.
>Fix:
Apply this patch.

Patch attached with submission follows:

diff -urN editors/2bsd-vi.orig/files/patch-config.h editors/2bsd-vi/files/patch-config.h
--- editors/2bsd-vi.orig/files/patch-config.h	1970-01-01 09:00:00.000000000 +0900
+++ editors/2bsd-vi/files/patch-config.h	2013-11-11 21:56:16.000000000 +0900
@@ -0,0 +1,13 @@
+--- config.h.orig	2005-02-19 19:25:39.000000000 +0900
++++ config.h	2013-11-11 21:54:26.000000000 +0900
+@@ -95,8 +95,8 @@
+ #define TUBESIZE        6000    /* Maximum screen size for visual */
+ #else	/* VMUNIX */
+ #define TUBELINES       100
+-#define TUBECOLS        160
+-#define TUBESIZE        16000
++#define TUBECOLS        300
++#define TUBESIZE        30000
+ #endif	/* VMUNIX */
+ 
+ /*


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311111403.rABE3VDF048948>