From owner-freebsd-questions@FreeBSD.ORG Thu Feb 18 09:27:41 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 E5EE81065679 for ; Thu, 18 Feb 2010 09:27:40 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 70D558FC17 for ; Thu, 18 Feb 2010 09:27:40 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id o1I9RZKc024696 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 18 Feb 2010 09:27:36 GMT (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <4B7D0806.6030604@infracaninophile.co.uk> Date: Thu, 18 Feb 2010 09:27:34 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: Jurif References: In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, SPF_FAIL autolearn=no version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on happy-idiot-talk.infracaninophile.co.uk 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: Thu, 18 Feb 2010 09:27:41 -0000 -----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-----