From nobody@FreeBSD.org  Mon Feb 12 07:53:34 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 0EFAE16A400
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 12 Feb 2007 07:53:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id F1B7413C48E
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 12 Feb 2007 07:53:33 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l1C7rXxm065129
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 12 Feb 2007 07:53:33 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l1C7rXYO065128;
	Mon, 12 Feb 2007 07:53:33 GMT
	(envelope-from nobody)
Message-Id: <200702120753.l1C7rXYO065128@www.freebsd.org>
Date: Mon, 12 Feb 2007 07:53:33 GMT
From: Imri Zvik<imriz@co.zahav.net.il>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Line wraping doesn't work when TERM is set to 'linux'
X-Send-Pr-Version: www-3.0

>Number:         109075
>Category:       conf
>Synopsis:       [termcap] Line wrapping doesn't work when TERM is set to 'linux'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 12 08:00:14 GMT 2007
>Closed-Date:    Mon Feb 12 15:57:40 GMT 2007
>Last-Modified:  Mon Feb 12 15:57:40 GMT 2007
>Originator:     Imri Zvik
>Release:        6.2-STABLE
>Organization:
Internet Gold
>Environment:
FreeBSD cemetery 6.2-STABLE FreeBSD 6.2-STABLE #6: Sun Jan 21 10:02:39 IST 2007     root@cemetery:/usr/obj/usr/src/sys/IGLD  i386
>Description:
Line wraping doesn't work when TERM is set to 'linux'.
>How-To-Repeat:
export TERM=linux and just type a really long line :)

>Fix:
Removing the xn option from the termcap entry solves this issue:

--- termcap.orig        Mon Feb 12 09:46:33 2007
+++ termcap     Mon Feb 12 09:45:21 2007
@@ -4486,7 +4486,7 @@
 # From Christian Weisgerber, naddy@mips.inka.de, a TERMCAP entry
 # for Linux consoles.
 linux|Linux Console:\
-       :am:eo:mi:ms:xn:xo:\
+       :am:eo:mi:ms:xo:\
        :co#80:it#8:li#25:\
        :pa#64:Co#8:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:\
        :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:K2=\E[G:\

>Release-Note:
>Audit-Trail:

From: "Imri Zvik" <imriz@co.zahav.net.il>
To: <bug-followup@FreeBSD.org>
Cc:  
Subject: Re: conf/109075: [termcap] Line wrapping doesn't work when TERM is set to 'linux'
Date: Mon, 12 Feb 2007 17:08:50 +0200

 I feel a bit stupid, but I think I've found my error - PS1 was set to
 '\e[1m\u@\h\e[m:\w\$ ' which somehow messed the terminal if xn was
 enabled.
 
 Changing it to: PS1=3D"\[\033[1;37m\]\u@\h\[\033[0m\]:\w\$ " fixed
 everything.
 
 
 I'm really sorry for hurrying with this PR - please close it.
 
 Thanks,
 
 
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Mon Feb 12 15:57:26 UTC 2007 
State-Changed-Why:  
Closed at submitter's request 

http://www.freebsd.org/cgi/query-pr.cgi?pr=109075 
>Unformatted:
