IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an
email to Administrator. User accounts are meant only to access repo
and report issues and/or generate pull requests.
This is a purpose-specific Git hosting for
BaseALT
projects. Thank you for your understanding!
Только зарегистрированные пользователи имеют доступ к сервису!
Для получения аккаунта, обратитесь к администратору.
this patch makes use of unifont with genfont2 and introduces support for
wide-characters and combining glyphs
for this we have to save the width and possible diacritic in the
textcell, which means we also have to reset them properly and give those
values also to draw_char_at
to determine the width we use the wcwidth provided by unifont
(because in unifont some characters are wide which normally are not)
we mmap the generated fontfile, and drop the glyphs.h, which reduces
the initial memory use, and shares the pages between processes
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
this patch introduces a new tool to generate font data
it uses a new build-dependency, namely unifont, which is an opensource
font with printable charachters for the unicode range from
0x0000 to 0xFFFF
we generate a file which is easily mmap'able and has the same bitformat
we used before (minus the codepoint -> address translation)
note that some characters are using 2 columns as width, so to have a
static lookup, we need to make each character 32 byte long
(1 byte per line, 16 lines per terminal column)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
changing most of the vt struct fields to unsigned, to avoid undefined
behaviour and use gotoxy for moving the cursor to correctly bound check
the cursor position
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
since we load the fontmap from psf1 font files, we only have characters
for a maximum codepoint of 0xFFFF, so we save the char in an
unsigned short (16bit) but we decode up to 6 bytes of utf8
so we have to correctly bound check the assignment, else we can get
garbled characters on the terminal
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
instead of custom, outdated, insecure ones. NORMAL provides
a sane default.
note that this is only used for the legacy VNC anyway, since
the noVNC web console (re-)uses the HTTPS connection to the
API.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
this is recommended instead of generating our own, but needs
a new enough gnutls version.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
rfbPurgeArguments() moves arguments, so we need to decrement i after
purge, and use 'else if' (else we depend on argument order).
Also delete PVE_VNC_TICKET from environment (child don't need that).