1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Terminal fixes, added clipboard links to agent install dialog.

This commit is contained in:
Ylian Saint-Hilaire 2019-05-31 15:29:57 -07:00
parent f378104c16
commit 0addd19a96
6 changed files with 27 additions and 20 deletions

View file

@ -21,6 +21,7 @@ var CreateAmtRemoteTerminal = function (divid) {
obj.width = 80; // 80 or 100
obj.height = 25; // 25 or 30
obj.heightLock = 0;
var _Terminal_CellHeight = 21;
var _Terminal_CellWidth = 13;
@ -749,6 +750,13 @@ var CreateAmtRemoteTerminal = function (divid) {
for (var i in scrollBackBuffer) { backbuffer += scrollBackBuffer[i]; }
obj.DivElement.innerHTML = "<font size='4'><b>" + backbuffer + buf + closetag + "</b></font>";
obj.DivElement.scrollTop = obj.DivElement.scrollHeight;
if (obj.heightLock == 0) { setTimeout(obj.TermLockHeight, 10); }
}
obj.TermLockHeight = function () {
obj.heightLock = obj.DivElement.clientHeight;
obj.DivElement.style['height'] = obj.DivElement.parentNode.style['height'] = obj.heightLock + 'px';
obj.DivElement.style['overflow-y'] = 'scroll';
}
obj.TermInit = function () { obj.TermResetScreen(); }

View file

@ -2140,14 +2140,11 @@ a {
#termarea3x {
background: black;
text-align: center;
height: 450px;
height: 500px;
position: relative;
}
#Term {
height: 450px;
max-height: 450px;
overflow-y: scroll;
background: black;
margin: 0;
padding: 0;