]> git.ipfire.org Git - thirdparty/qemu.git/commit - qemu-options.hx
curses: add option to specify VGA font encoding
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 11 Mar 2019 13:51:27 +0000 (14:51 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 13 Mar 2019 07:29:06 +0000 (08:29 +0100)
commit2f8b7cd587558944532f587abb5203ce54badba9
tree3dde911d8791a4b183ddda234d9b64dea2157954
parente08bb3010c5aa7fcdc614bdb151cdde7fd0756b6
curses: add option to specify VGA font encoding

This uses iconv to convert glyphs from the specified VGA font encoding to
unicode, and makes use of cchar_t instead of chtype when using ncursesw,
which allows to store all wide char as well as the WACS values. The default
charset is made CP437 since that is the charset of the hardware default VGA
font. This also makes the curses backend set the LC_CTYPE locale to "" to
allow curses to emit wide characters.

Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Cc: Eddie Kohler <ekohler@gmail.com>
Acked-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20190311135127.2229-3-samuel.thibault@ens-lyon.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
configure
qapi/ui.json
qemu-options.hx
ui/curses.c