From owner-freebsd-questions Fri Nov 22 5:12:45 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF36737B404 for ; Fri, 22 Nov 2002 05:12:43 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7936F43E6E for ; Fri, 22 Nov 2002 05:12:33 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a107.otenet.gr [212.205.215.107]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id gAMDCO9o011896; Fri, 22 Nov 2002 15:12:25 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id gAMDCN7j081359; Fri, 22 Nov 2002 15:12:23 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id gAMCn98v042965; Fri, 22 Nov 2002 14:49:09 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 22 Nov 2002 14:49:09 +0200 From: Giorgos Keramidas To: Rotaru Razvan Cc: freebsd-questions@FreeBSD.ORG Subject: Re: terminal incompatibility Message-ID: <20021122124909.GB10917@gothmog.gr> References: <20021122090927.84140.qmail@web11203.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021122090927.84140.qmail@web11203.mail.yahoo.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-11-22 01:09, Rotaru Razvan wrote: > Well this is just another mail about a problem i think a lot of people > have. As i noticed by default terminals in bsd are named cons25. My > problem? no compatibility with linux terminals (or with xterm). You can always increase compatibility with other systems by changing cons25 to vt220 in /etc/ttys. Not all systems have a cons25 termcap entry, but they all know about good ol' vt220 terminals. FreeBSD's virtual ttys work fine then. One other thing that I like doing is to make sure that I don't use too many virtual ttys, and fire up screen on the first 2-3. Only four ttyv terminals are more than enough for me. $ grep -v '^[ ]*#' /etc/ttys | grep ttyv ttyv0 "/usr/libexec/getty Pc" cons25 on secure ttyv1 "/usr/libexec/getty Pc" cons25 on secure ttyv2 "/usr/libexec/getty Pc" cons25 on secure ttyv3 "/usr/libexec/getty Pc" cons25 on secure Then, I fire up screen and make sure that my TERM is set to vt220. $ ps xa | grep 'v[0-9] .* screen' 43035 v0 S+ 0:00.12 screen -ar 47203 v1 S+ 0:00.34 screen -ar This combination has worked remarkably well both for local programs and remotely displayed stuff from a Solaris, Linux or BSD system :) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message