From nobody@FreeBSD.org  Mon Nov 11 14:03:32 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 63362965
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Nov 2013 14:03:32 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 509F22959
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Nov 2013 14:03:32 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rABE3VSa048951
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 11 Nov 2013 14:03:31 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rABE3VDF048948;
	Mon, 11 Nov 2013 14:03:31 GMT
	(envelope-from nobody)
Message-Id: <201311111403.rABE3VDF048948@oldred.freebsd.org>
Date: Mon, 11 Nov 2013 14:03:31 GMT
From: HATANO Tomomi <hatanou@infolab.ne.jp>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Larger 2bsd-vi terminal width needed.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: lx@redundancy.redundancy.org

>Number:         183860
>Category:       ports
>Synopsis:       Larger editors/2bsd-vi terminal width needed.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          feedback
>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:  Tue Nov 12 02:50:00 UTC 2013
>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:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Tue Nov 12 02:46:53 UTC 2013 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=183860 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: lx@redundancy.redundancy.org
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/183860: Larger editors/2bsd-vi terminal width needed.
Date: Tue, 12 Nov 2013 02:46:52 UT

 Maintainer of editors/2bsd-vi,
 
 Please note that PR ports/183860 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/183860
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org
>Unformatted:
