From owner-freebsd-arch@FreeBSD.ORG Sun Feb 23 19:14:06 2014 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 13BD1677 for ; Sun, 23 Feb 2014 19:14:06 +0000 (UTC) Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9522F1BA0 for ; Sun, 23 Feb 2014 19:14:05 +0000 (UTC) Received: by mail-ee0-f49.google.com with SMTP id d17so2672467eek.36 for ; Sun, 23 Feb 2014 11:13:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=1RLQsMepEnvJ2SofQKS0nzVOZRO/ML3wEjaNcsQ8Wsc=; b=jJ7o/n/8eQP5wE18Bhx9EOzR5xsHiHXXJyITy+kD4eS6ZT3KYBRNM8hBo8oOR4odtf w7BmqtuGt/R1TcNqsDzau82UeAvWY0s5dSxfV3LOkhlLMjFBhXOMRq7q4nDSKEfIC/rz 6N3r+QALDfbQiKgm/hOJs4APBYZ1eexjoZd7cBwrPHSfJrnr8AJLi8+m15U3o4R3r5oY X94ty9TKKtgv86YEd7+FHaEN39pmEJ0fjXXQZrplX3OvE6y2h4h+tNKFW771Zpzo9NUQ sJC/S0Xtf0ajw+lwadYGGv6ATG/BNiisiV5t8fOdwHCrp2kig666zH+39LWiiB463AGM Uf0A== X-Gm-Message-State: ALoCoQmmgWwslGs46C3kmiscTKb4RHjd7vrdjexLiS2CZcHhsdnWJoF03XVzggSFgac1Zbuohhc+ X-Received: by 10.15.75.66 with SMTP id k42mr20494614eey.2.1393181499837; Sun, 23 Feb 2014 10:51:39 -0800 (PST) Received: from [192.168.1.2] ([89.169.173.68]) by mx.google.com with ESMTPSA id x2sm54167075eeo.8.2014.02.23.10.51.38 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 23 Feb 2014 10:51:39 -0800 (PST) Message-ID: <530A433D.1040907@freebsd.org> Date: Sun, 23 Feb 2014 22:51:41 +0400 From: Andrey Chernov User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Ed Schouten Subject: Re: terminfo References: <5304A0CC.5000505@FreeBSD.org> <20140223115939.GB4084@aerie.jexium-island.net> <530A296E.9090805@freebsd.org> In-Reply-To: X-Enigmail-Version: 1.7a1pre Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: arch@freebsd.org, dickey@his.com, Bryan Drewery X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Feb 2014 19:14:06 -0000 On 23.02.2014 22:09, Ed Schouten wrote: > On 23 February 2014 18:01, Andrey Chernov wrote: >> It is your emulation which always displays ASCII now, which is step backward. > > Indeed. But you know what the awesome thing is? Because ACS is now > part of the terminal emulator itself, you can actually make this work > with a single TERM type, regardless of the character set used. > > Be sure to extend sys/teken/teken_scs.h to include additional maps for > each character set. In the /sys/teken/teken_scs.h you use just one bit to distinguish between ASCII fallback and Unicode boxdrawing, it is not enough. There must be a field for the current character set somewhere in the teken internals and vidcontrol(1) must be able to set it. The whole processing chain is architectural decision I prefer to not interfere with. If you'll make it ready, I could give you KOI8-R map for it. -- http://ache.vniz.net/