From owner-freebsd-questions@FreeBSD.ORG Thu May 31 00:01:42 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E3C57106566C for ; Thu, 31 May 2012 00:01:42 +0000 (UTC) (envelope-from dickey@saltmine.radix.net) Received: from saltmine.radix.net (saltmine.radix.net [207.192.128.40]) by mx1.freebsd.org (Postfix) with ESMTP id A22B68FC0A for ; Thu, 31 May 2012 00:01:42 +0000 (UTC) Received: from saltmine.radix.net (localhost [127.0.0.1]) by saltmine.radix.net (8.12.2/8.12.2) with ESMTP id q4UNph7R000761; Wed, 30 May 2012 19:51:43 -0400 (EDT) Received: (from dickey@localhost) by saltmine.radix.net (8.12.2/8.12.2/Submit) id q4UNpfKW000760; Wed, 30 May 2012 19:51:41 -0400 (EDT) Date: Wed, 30 May 2012 19:51:41 -0400 From: Thomas Dickey To: Peter Vereshagin Message-ID: <20120530235141.GA102@saltmine.radix.net> References: <20120530133327.GA26631@external.screwed.box> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OgqxwSJOaUobr8KG" Content-Disposition: inline In-Reply-To: <20120530133327.GA26631@external.screwed.box> User-Agent: Mutt/1.3.27i Cc: freebsd-questions@freebsd.org Subject: Re: termcap/terminfo magicians anyone? // colors in vim 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, 31 May 2012 00:01:43 -0000 --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 30, 2012 at 05:33:27PM +0400, Peter Vereshagin wrote: > Hello. >=20 > Being new from linux back in time I tried vim. It had pretty colors in li= nux for me like that: >=20 > http://www.postimg.com/71000/photo-70938.jpg >=20 > But in freebsd I have what I have: >=20 > http://www.postimg.com/71000/photo-70939.jpg >=20 > It 'just works' for me if I 'vim -T linux' but: >=20 > - I'd like to know exact reason to be fixed other than just 'use linu= x' > - It shows colors in ttyvX with TERM=3Dcons25 but it has random '25h' > showing up in places when I implement the actions from the begin of > vimtutor. If you tell vim that it's "linux" when it is really cons25, that confuses i= t.=20 A "linux" console recognizes an particular escape sequence ending with "25h" for making the cursor visible (ending with "25l" for invisible). vim likes= to use that. cons25 doesn't support it. As noted in vim's manpage, the -T option should be used only if the automatic way (setting $TERM correctly) doesn't work. --=20 Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net --OgqxwSJOaUobr8KG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (SunOS) Comment: For info see http://www.gnupg.org iD8DBQFPxrKKtIqByHxlDocRAp/EAKCayT9IPZ8WPMnzGTfxHb4Hq73quACffvFf HQvPD87LL8k1MaORjNv/HXw= =/Kj3 -----END PGP SIGNATURE----- --OgqxwSJOaUobr8KG--