Date: Mon, 28 Nov 2011 15:36:41 +0100 From: Ed Schouten <ed@80386.nl> To: Jason Edwards <sub.mesa@gmail.com> Cc: freebsd-current@freebsd.org, Stefan Bethke <stb@lassitu.de> Subject: Re: ee (easy editor) bugged on 9.0? Message-ID: <20111128143641.GJ39031@hoeg.nl> In-Reply-To: <CAB%2BTj8_T=iDZOer5hw-Nx3teuQGkyZ6swC8HXKfhqfN-kYut-w@mail.gmail.com> References: <CAB%2BTj898XqFpvqS0tKaTp33hCFzvBz5-Fpt4Pw-8F5qQg3Wq9Q@mail.gmail.com> <5D3FFA12-BB54-4297-A098-3B85951ECEC5@lassitu.de> <CAB%2BTj89bWWBekG93xKaYy8xOm6kC=maQ25sEoMZzoN279DCeyA@mail.gmail.com> <3A9E50F5-03D3-4DD5-A95D-5948D4705462@lassitu.de> <CAB%2BTj89932fQwLjG7xzz3zgR4oM9oUSHLvciKkjM3tW%2BN_CRaA@mail.gmail.com> <20111123181133.GD1979@hoeg.nl> <CAB%2BTj8_T=iDZOer5hw-Nx3teuQGkyZ6swC8HXKfhqfN-kYut-w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--u3bvv0EcKsvvYeex Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Jason, * Jason Edwards <sub.mesa@gmail.com>, 20111127 22:15: > Thanks for the impressive list of advantages! There's just one > non-critical issue I'd like to address regarding the use of xterm > terminal type. >=20 > When using cons25 terminal, the dialog menus (drawn using > devel/cdialog and `make config` in portstree as well) are using smooth > lines to draw boxes and stuff. >=20 > But when using xterm terminal, those lines are replaced by 'dashed' > lines like - - - - - instead of a smooth line without whitespace in > between. When doing the same via SSH login, the lines are smooth with > xterm type. So this issue appear to be limited to the console in > combination with xterm terminal type. >=20 > Is there a way to use xterm but still allow cdialog to draw smooth > lines on the console? Unfortunately, this is actually a workaround for a problem that existed all along, even before we switched to TERM=3Dxterm. It's not beautiful, but needed. When using TERM=3Dcons25, ncurses applications simply print certain bytes to do the box drawing, namely these ones: http://en.wikipedia.org/wiki/Code_page_437#Standard_code_page This means that if you load a different font file into the console driver that uses a different character set (e.g. ISO-8859-1), you get all sorts of math characters and diacritics instead of the box drawing characters. With TERM=3Dxterm, this is essentially solved, because box drawing can be performed using character set independent escape sequences (using ^N and ^O), but the problem is that syscons does not know which glyphs in the font file correspond with the box drawing characters. There are two ways to solve this: - Extend the font file format to include a mapping table of box drawing characters to glyph indices, - Patch syscons to just print +-| instead of the box drawing characters. The first option would fix it properly, but in my opinion it's not worth the effort, because time should be spent to just get Unicode working. The terminal emulator already supports Unicode internally and even remaps box drawing characters to Unicode. Get Unicode working and you fix the box drawing issue for free. This is why I have chosen the second option. If you really miss the box drawing characters, you can revert SVN revision 203659. Do keep in mind that it effectively breaks support for custom fonts/character sets. I think box drawing does work when you compile your kernel with TEKEN_UTF8 (poor mans UTF-8 support), but please don't attempt to load any fonts then. Best regards, --=20 Ed Schouten <ed@80386.nl> WWW: http://80386.nl/ --u3bvv0EcKsvvYeex Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQIcBAEBAgAGBQJO05x5AAoJEG5e2P40kaK7aO4P/18ZPoVlcwSF28Ks/xQrGTPp 6cmeY6wwP5eQxKQ3Zyi5V30go34T5bTa0Hr53dTL2eIv+L9DiXEAxkGkuDfMJNmH hnAYZGB9SIx2tyiQEZaf2OAzV4dleQ7zSTEw1Fx92vqSUHMu4R+R9W1NtbHq2sod drZ6D1MnrfJ72FxyC3KhPKtZ2vMAkuXgGwYlakcM2nD9rPyL3geJu84Hi8erKE/r I1zuYil11OmHPTiVaAxLBnblesIpGh+kUhrWULDGxcoEZgKvpUCpa9g93W0h5611 SRhrKGvvBmA3Fzk2FqwFvCjinE59emcVSOIcY9zmeB84ZpL4czM+HpJi+T935iaG kubLOxGrJHaxJNbWFAOVB+rF5Ng8uj7J2nqo8ihtdr9W1B8qccLhg0xmp5NyHZ4p OBcgAV1bUVJkIxgmXvuIjsfi5o9uQkNeWwdo3itSmqJTLL8wbUJ5JYs6qVDlh/mz VoOrgPaW4r9u8ZWOok9b3IshXbFr9E+OApyZkDd540zUR4ZTd4nJDTBR6OkMrKDV sBvTBDps0QPpEfwHWRbW4zRuEnS1Qb6G2aJqjBIc3yl5vA8h333XsUbIJeYC0GzW fRZsTABv0bXczila3caOEro3IVChJmfjVFGDEMDfcW0AYRDgiPgEjixN1mUXYEFk PbwAvwg9HKILN0fIra7p =sF1Q -----END PGP SIGNATURE----- --u3bvv0EcKsvvYeex--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111128143641.GJ39031>