From owner-freebsd-questions@FreeBSD.ORG Fri Feb 19 08:23:00 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3C1F11065672 for ; Fri, 19 Feb 2010 08:23:00 +0000 (UTC) (envelope-from kkiller@gmail.com) Received: from mail-ew0-f225.google.com (mail-ew0-f225.google.com [209.85.219.225]) by mx1.freebsd.org (Postfix) with ESMTP id B8F4B8FC12 for ; Fri, 19 Feb 2010 08:22:59 +0000 (UTC) Received: by ewy25 with SMTP id 25so841913ewy.3 for ; Fri, 19 Feb 2010 00:22:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=nFnMh4WNLfTggonTogxPR4KRVKoOp28p010rTxt+Gpg=; b=J4BPvcBUTp3HtKEcNmbbSEAVUb0o0kagwuLsn4JwSKnOvedeBSKOxUcn8/Af90adEv yJBsJztazqc7xEHPYA+vmewj/MZerXG1A6Z5rGbLgnyfOCy2RJMCpWpXX5A67pC/C6AC Qs0iQ9dQlSReXFqz315rIyZF29pySxMmZd5fo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ItlMzhVXaBLB7oRH3NGbR6g+vNr5K80HblxscZvyPZxXJ5KcrKM5ShSd4uC9Lps9xq uj1CU3CM7SO6fcn5bfbQanCt6sPH0DHE+vvMfW4NezainoKStGckHE+Q4jLVMMVnWO+t CcRUjoToMJYRjEQ62xnVF0s3C9t2tfxBqudrc= MIME-Version: 1.0 Received: by 10.216.88.7 with SMTP id z7mr2125894wee.19.1266567778290; Fri, 19 Feb 2010 00:22:58 -0800 (PST) In-Reply-To: <4B7D0806.6030604@infracaninophile.co.uk> References: <4B7D0806.6030604@infracaninophile.co.uk> Date: Fri, 19 Feb 2010 09:22:58 +0100 Message-ID: From: Jurif To: Matthew Seaman Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Console problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2010 08:23:00 -0000 Yes you're right, i change *TERM=xterm-color* to *TERM=cons25* now it works like charm Thanks On 18 February 2010 10:27, Matthew Seaman wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 18/02/2010 07:56, Jurif wrote: > > > I have some problems with console (freebsd 7.2). When i press up arrow > > keyboard button to repeat previous command (history) and try to edit this > > line can't because overwrite text... Also have issue with text editor > like > > emacs when type or press enter "25E" string apear again and again > > > > All this things doesn't happen if i connect to box via SSH (pseudo > > terminal). In pseudo terminal all works perfect. > > Sounds like you've got the wrong terminal type when logged in on the > console. By default, the console uses 'cons25' although this is > frequently modified to a cons25-variant to support locales other than > US-ASCII. Look at /etc/ttys to see what terminal type you should be > using. Look at $TERM (and maybe $TERMCAP) in your environment to see > what you actually are using. > > Unless you override the settings from your shell initialization files, > your login session will pick up the setting from ttys(5) > automatically. Generally this works fine when logged in through a > directly attached console,but can screw up if logged in via some > console emulators or over a serial link. Most such expect a vt100 > family terminal type, or a clone of that, particularly some variant of > xterm nowadays. > > If for some reason you can't get everything to agree on what the > terminal type should be, one trick is to run screen(1) or tmux(1), > which will give you an xterm type for your session. > > If you really need the console to use xterm rather than cons25, then > you can setup a kernel config file and build a new kernel kernel to > enable that. This however is a last resort, and is hardly ever > necessary. > > The difference you get when logging in via SSH is that it is the local > terminal type on the system you're logging in from that gets used. > Again, this should be handled automatically, and so long as /etc/termcap > has a suitable entry, things will just work. > > Cheers, > > Matthew > > - -- > Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard > Flat 3 > PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate > Kent, CT11 9PW > -----BEGIN PGP SIGNATURE----- > Version: GnuPG/MacGPG2 v2.0.14 (Darwin) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAkt9CAYACgkQ8Mjk52CukIyy4QCfX/R07952t3bxRCWPGxLVx+// > 4PoAn2BKhQsLpEdIbHIMhAhwZd19EpMF > =qb1V > -----END PGP SIGNATURE----- >