5
0
mirror of git://git.proxmox.com/git/vncterm.git synced 2025-01-10 09:17:38 +03:00
Commit Graph

13 Commits

Author SHA1 Message Date
Dominik Csapak
ade0cff254 add custom cursor
instead of a black 'x' we now have a 'proper' cursor with a white edge,
to be able to see it when we are in the novnc console

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-06-07 12:44:06 +02:00
Dominik Csapak
07a910f022 use unifont and add support for wide-characters and combining glyphs
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>
2017-05-24 12:55:19 +02:00
Dominik Csapak
33a537dc6b add width and height parameters
so that we can have a custom resolution in vncterm

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-05-24 12:55:19 +02:00
Dominik Csapak
8392857fa7 fix bound checking on cursor move
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>
2017-05-06 08:07:08 +02:00
Dominik Csapak
3d0dbf7c0e bound check utf8 characters
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>
2017-03-09 10:10:28 +01:00
Dominik Csapak
f2c7aa6b08 also detect empty first parameter of escape codes
some escape codes can omit the first parameter
eg. ESC[;5H

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-03-09 10:05:02 +01:00
Fabian Grünbichler
ee05330200 use builtin gnutls' builtin NORMAL ciphers
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>
2017-02-03 08:28:26 +01:00
Fabian Grünbichler
b26ab9ab5a use builtin dh_params with newer gnutls
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>
2017-02-03 08:27:58 +01:00
Fabian Grünbichler
df4b12152d bump DH_BITS to 2048
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-02-03 08:27:34 +01:00
Dietmar Maurer
5a90889767 fix argument parser
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).
2014-06-24 17:08:29 +02:00
Dietmar Maurer
07e8de89e1 new option -notls
We need this for novnc (encryption is done by websocket)
2014-06-23 13:09:45 +02:00
Dietmar Maurer
c9e46b9a7d do not create a process group with setsid
So that we can kill the whole task when started with fork_worker().
2011-09-13 10:55:40 +02:00
Dietmar Maurer
e6d0212c1e imported from svn 'vncterm/pve2' 2011-08-23 07:52:28 +02:00