CP437 in vt driver

Ed Maste emaste at freebsd.org
Tue Nov 11 01:00:50 UTC 2014


On 10 November 2014 14:26, Wendell Martins Borges <wendell at bsd.com.br> wrote:
> I'm trying to use CP437 in vt driver in a RPi B+ with -CURRENT... I've
> already tried to use the default vt fonts, but none of them, recognize the
> specific char I want to use (for e.g. Cp437 - B3hex).

vt(4) is inherently Unicode & UTF-8, so you'll have to use the Unicode
code point for the character instead. CP437 0xB3 is Unicode U+2502, or
0xE2 0x94 0x82 as UTF-8. You should be able to confirm you can output
it with zsh/bash builtin printf: printf '\xe2\x94\x82'

Adding support for non-Unicode/UTF-8 mapping is on the vt(4) TODO list.


More information about the freebsd-arm mailing list