shell noVNC terminal ($TERM) emulation setting(s)

hvisage

Renowned Member
May 21, 2013
242
19
83
Good day,

What is the exact terminal emulation used by the noVNC shell (for a proxmox hypervisor node)?
The problem: I'm using iterm2-shell-integrations, but those cause very long lines that should be coloured etc. when using a (true) xterm emulation, but isn't as it seems the terminal emulator used by the noVNC doesn't interpret those escape sequences.

so my question(s):
0) what is the exact terminal emulation provided by the noVNC shell terminal?
1) any where I could change that $TERM setting for the noVNC shell terminal?
2) Any way I could (reliably?) detect the noVNC shell terminal to disable those integrations in the .profile?
 
for the host shell we use our own implemenation vncterm (see https://git.proxmox.com/?p=vncterm.git;a=summary )
we try to be xterm compatible, but there are probably some things that don't work

can you post the exact escape sequence which does not work?
you can of course simply do an export=<TERMINAL> for e.g. vt220

in general, i would recommend using ssh for serious work on the host, instead of novnc
 
dcsapak said:
in general, i would recommend using ssh for serious work on the host, instead of novnc
... goes WITHOUT saying ;)
(And the reason I'm using iTerm2 on MacOSX :grin: )

I't just when I'm on the webUI, need to check something quickly, it's an easy test/etc.

for the host shell we use our own implemenation vncterm (see https://git.proxmox.com/?p=vncterm.git;a=summary )
we try to be xterm compatible, but there are probably some things that don't work

can you post the exact escape sequence which does not work?


Code:
proxtracs01:~# env |od -a
0000000   T   E   R   M   =   x   t   e   r   m  nl   S   H   E   L   L
0000020   =   /   b   i   n   /   b   a   s   h  nl   S   S   H   _   C
0000040   L   I   E   N   T   =   1   4   4   .   5   .   6   0   .   1
0000060   3  sp   3   8   4   6   6  sp   2   2  nl   S   S   H   _   T
0000100   T   Y   =   /   d   e   v   /   p   t   s   /   0  nl   U   S
0000120   E   R   =   r   o   o   t  nl   S   S   H   _   A   U   T   H
0000140   _   S   O   C   K   =   /   t   m   p   /   s   s   h   -   H
0000160   6   y   1   Q   m   j   p   I   l   /   a   g   e   n   t   .
0000200   4   5   9   3  nl   M   A   I   L   =   /   v   a   r   /   m
0000220   a   i   l   /   r   o   o   t  nl   P   A   T   H   =   /   u
0000240   s   r   /   l   o   c   a   l   /   s   b   i   n   :   /   u
0000260   s   r   /   l   o   c   a   l   /   b   i   n   :   /   u   s
0000300   r   /   s   b   i   n   :   /   u   s   r   /   b   i   n   :
0000320   /   s   b   i   n   :   /   b   i   n  nl   P   W   D   =   /
0000340   r   o   o   t  nl   L   A   N   G   =   e   n   _   G   B   .
0000360   U   T   F   -   8  nl   I   T   E   R   M   _   O   R   I   G
0000400   _   P   S   1   =   $   {   d   e   b   i   a   n   _   c   h
0000420   r   o   o   t   :   +   (   $   d   e   b   i   a   n   _   c
0000440   h   r   o   o   t   )   }   \   u   @   \   h   :   \   w   \
0000460   $  sp  nl   P   S   1   =   $   {   d   e   b   i   a   n   _
0000500   c   h   r   o   o   t   :   +   (   $   d   e   b   i   a   n
0000520   _   c   h   r   o   o   t   )   }   \   u   @   \   h   :   \
0000540   w   \   $  sp  nl   S   H   L   V   L   =   1  nl   H   O   M
0000560   E   =   /   r   o   o   t  nl   I   T   E   R   M   _   P   R
0000600   E   V   _   P   S   1   =   \   [ esc   ]   1   3   3   ;   D
0000620   ;   $   ? bel esc   ]   1   3   3   ;   A bel   \   ]   $   {
0000640   d   e   b   i   a   n   _   c   h   r   o   o   t   :   +   (
0000660   $   d   e   b   i   a   n   _   c   h   r   o   o   t   )   }
0000700   \   u   @   \   h   :   \   w   \   $  sp   \   [ esc   ]   1
0000720   3   3   ;   B bel   \   ]  nl   L   O   G   N   A   M   E   =
0000740   r   o   o   t  nl   S   S   H   _   C   O   N   N   E   C   T
0000760   I   O   N   =   1   4   4   .   5   .   6   0   .   1   3  sp
0001000   3   8   4   6   6  sp   1   3   7   .   7   4   .   9   4   .
0001020   2   2   2  sp   2   2  nl   L   E   _   W   O   R   K   I   N
0001040   G   _   D   I   R   =   /   r   o   o   t   /   .   a   c   m
0001060   e   .   s   h  nl   _   =   /   u   s   r   /   b   i   n   /
0001100   e   n   v  nl
0001104
you can of course simply do an export=<TERMINAL> for e.g. vt220

I'd like have that set *before* it executes my .profile, as I need to test/know how to disable those by knowing that I'm inside the vncterm, and not an iterm2
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!