From owner-freebsd-current Sat Aug 31 10:23:28 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 793E937B400 for ; Sat, 31 Aug 2002 10:23:19 -0700 (PDT) Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id B48E743E6E for ; Sat, 31 Aug 2002 10:23:16 -0700 (PDT) (envelope-from schweikh@schweikhardt.net) Received: from bremen.shuttle.de (localhost [127.0.0.1]) by bremen.shuttle.de (Postfix) with ESMTP id B67D717D46; Sat, 31 Aug 2002 19:23:11 +0200 (CEST) Received: (from uucp@localhost) by bremen.shuttle.de (8.12.3/8.12.3/Debian -4) with UUCP id g7VHNBoV024051; Sat, 31 Aug 2002 19:23:11 +0200 Received: from hal9000.schweikhardt.net (localhost [127.0.0.1]) by hal9000.schweikhardt.net (8.12.5/8.12.5) with ESMTP id g7VHNJV1020759; Sat, 31 Aug 2002 19:23:19 +0200 (CEST) (envelope-from schweikh@hal9000.schweikhardt.net) Received: (from schweikh@localhost) by hal9000.schweikhardt.net (8.12.5/8.12.3/Submit) id g7VHNHGw020758; Sat, 31 Aug 2002 19:23:17 +0200 (CEST) Date: Sat, 31 Aug 2002 19:23:17 +0200 From: Jens Schweikhardt To: "Vladimir B. Grebenschikov" Cc: freebsd-current@FreeBSD.ORG Subject: Re: CURRENT's termcap broken Message-ID: <20020831192317.A17197@schweikhardt.net> References: <20020828124821.GA6231@starjuice.net> <20020828190424.A1294@schweikhardt.net> <20020828173532.GA64845@starjuice.net> <20020828203206.C1294@schweikhardt.net> <20020828190918.GA37295@starjuice.net> <20020828214105.D1294@schweikhardt.net> <200208281946.g7SJksgI019098@intruder.bmah.org> <1030626197.842.77.camel@vbook.express.ru> <20020831000444.A870@schweikhardt.net> <1030751383.832.49.camel@vbook.express.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1030751383.832.49.camel@vbook.express.ru> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ... # > # and midnight commander shows all with -, +, | instead of # > # pesudo-graphics. # > # > It seems this is the price we pay for alignment with what XFree86 ships. # # I see Wait, maybe I was too fast and there is a solution. Looking at the xterm FAQ, http://dickey.his.com/xterm/xterm.faq.html My terminal doesn't show box characters Xterm displays the 7-bit ASCII and VT100 graphic characters (including box corners) using specially arranged fixed-pitch fonts. The first 32 glyph positions (which would correspond to nonprinting control characters) are used to hold the VT100 graphic characters. Some fonts that otherwise look fine (such as courier) do not have glyphs defined for these positions. So they display as blanks. Use xfd to display the font. XFree86 xterm can form its own line-drawing characters (see patch 90, for example). It does not draw all of the graphic characters, only those that may be done with straight lines. But those are the most used, making most of the fixed-pitch fonts useful for xterm. You may also have a problem with the terminfo description. As distributed, the X11R6 terminfo for xterm does not have the acsc string defined, so most implementations of curses do not try to use the alternate character set. Finally, some people confuse the VT100 graphic characters with the VT220 support for DEC technical character set. These are distinct (7-bit) character sets. Xterm currently does not support this. I found that it is really dependent on the font. I use some IBM font from an AIX system (Rom14) by default, which has no box characters and thus displays blanks instead. If I use e.g. $ xterm -fn fixed -e midc I have all the box characters and midc looks good. Use $ xfd -fn whateverfont and look at the first 32 characters. Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message