From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 6 15:59:09 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4588C106564A for ; Sat, 6 Dec 2008 15:59:09 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id DAF838FC14 for ; Sat, 6 Dec 2008 15:59:08 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 1A6FB1CDD8; Sat, 6 Dec 2008 16:59:08 +0100 (CET) Date: Sat, 6 Dec 2008 16:59:08 +0100 From: Ed Schouten To: FreeBSD Hackers Message-ID: <20081206155908.GG18652@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fCcDWlUEdh43YKr8" Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Syscons with xterm emulation: one step closer to UTF-8 support? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Dec 2008 15:59:09 -0000 --fCcDWlUEdh43YKr8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello all, I may have mentioned this to some people some time ago, but I thought it would be nice to start a thread about this here on -hackers: A couple of weeks ago I started working on a library (libteken) that implements a subset of features (escape sequences) of xterm, our trusty X11 terminal application. I've done most hacking/testing in userspace, but this week I experimented with removing the terminal emulation from syscons and replaced it by the library. The result: - We can finally SSH to other operating systems, network switches, etc. without messing up our terminals. Almost any operating system out there has termcap entries for `xterm', which means stuff should Just Work (tm). - My library only accepts one character set of input: UTF-8. Right now it just directly forwards the character codes to Syscons, hoping Syscons has a character map that is capable of displaying them (which doesn't work). There are still many small issues I have to fix in the terminal emulation library, but also in the Syscons <-> libteken code. I won't commit it on short notice, obviously. If people want to test it, the code is in the MPSAFE TTY branch in Perforce. Diffs are available at: http://people.FreeBSD.org/~ed/mpsafetty/ My question is if there are people out there who could help me implementing UTF-8 font rendering. I wouldn't have a clue where to start (yet). Yours, --=20 Ed Schouten WWW: http://80386.nl/ --fCcDWlUEdh43YKr8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkk6oUwACgkQ52SDGA2eCwUWdgCeIww6rDWOB/CFmBiNPs+zL3PP QL0AnRdWa/d+lMy5wxk4jpfsE3GiYY3o =uMGu -----END PGP SIGNATURE----- --fCcDWlUEdh43YKr8--