mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fixed terminal.
This commit is contained in:
parent
d24cec68eb
commit
07e9f4d624
9 changed files with 38 additions and 30 deletions
|
@ -1085,24 +1085,16 @@ function createMeshCore(agent) {
|
|||
{
|
||||
try
|
||||
{
|
||||
if (((this.httprequest.protocol == 6) || (this.httprequest.protocol == 8)) && (require('win-terminal').PowerShellCapable() == true))
|
||||
{
|
||||
//if (require('win-virtual-terminal').supported)
|
||||
//{
|
||||
// this.httprequest._term = require('win-virtual-terminal').StartPowerShell(80, 25);
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
if (((this.httprequest.protocol == 6) || (this.httprequest.protocol == 8)) && (require('win-terminal').PowerShellCapable() == true)) {
|
||||
//if (require('win-virtual-terminal').supported) {
|
||||
//this.httprequest._term = require('win-virtual-terminal').StartPowerShell(80, 25);
|
||||
//} else {
|
||||
this.httprequest._term = require('win-terminal').StartPowerShell(80, 25); // TODO: Start as logged in used when protocol is 8
|
||||
//}
|
||||
} else
|
||||
{
|
||||
//if (require('win-virtual-terminal').supported)
|
||||
//{
|
||||
// this.httprequest._term = require('win-virtual-terminal').Start(80, 25);
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
} else {
|
||||
//if (require('win-virtual-terminal').supported) {
|
||||
//this.httprequest._term = require('win-virtual-terminal').Start(80, 25);
|
||||
//} else {
|
||||
this.httprequest._term = require('win-terminal').Start(80, 25); // TODO: Start as logged in used when protocol is 7
|
||||
//}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue