Commit 27dbd647 authored by ibuler's avatar ibuler

[Update] 修改xterm版本

parent 42612571
...@@ -129,7 +129,7 @@ class ProxyServer: ...@@ -129,7 +129,7 @@ class ProxyServer:
def ssh_with_password(self, width=80, height=24): def ssh_with_password(self, width=80, height=24):
ssh = paramiko.SSHClient() ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect("192.168.244.142", 22, "root", "redhat") ssh.connect("192.168.244.185", 22, "root", "redhat")
chan = ssh.invoke_shell(term='xterm', width=width, height=height) chan = ssh.invoke_shell(term='xterm', width=width, height=height)
return chan return chan
...@@ -137,6 +137,7 @@ class ProxyServer: ...@@ -137,6 +137,7 @@ class ProxyServer:
class SSHws(ProxyNamespace): class SSHws(ProxyNamespace):
def connect_host(self, message): def connect_host(self, message):
print("Connect host: {}".format(message))
asset_id = message.get('uuid', None) asset_id = message.get('uuid', None)
system_user_id = message.get('userid', None) system_user_id = message.get('userid', None)
secret = message.get('secret', None) secret = message.get('secret', None)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -69,8 +69,9 @@ ...@@ -69,8 +69,9 @@
"ssh-keygen": "^0.4.1", "ssh-keygen": "^0.4.1",
"tether": "^1.4.4", "tether": "^1.4.4",
"tslib": "^1.9.0", "tslib": "^1.9.0",
"utf-8-validate": "^5.0.2",
"uuid-js": "^0.7.5", "uuid-js": "^0.7.5",
"xterm": "^3.3.0", "xterm": "^3.11.0",
"zone.js": "0.8.20" "zone.js": "0.8.20"
}, },
"devDependencies": { "devDependencies": {
...@@ -90,8 +91,8 @@ ...@@ -90,8 +91,8 @@
"karma-coverage-istanbul-reporter": "1.3.3", "karma-coverage-istanbul-reporter": "1.3.3",
"karma-jasmine": "1.1.1", "karma-jasmine": "1.1.1",
"karma-jasmine-html-reporter": "0.2.2", "karma-jasmine-html-reporter": "0.2.2",
"node-sass": "^4.9.0", "node-sass": "^4.11.0",
"protractor": "5.2.2", "protractor": "^5.4.2",
"ts-node": "3.3.0", "ts-node": "3.3.0",
"tslint": "5.9.1", "tslint": "5.9.1",
"typescript": "2.4.2" "typescript": "2.4.2"
......
...@@ -27,7 +27,7 @@ export class ElementSshTermComponent implements OnInit, AfterViewInit { ...@@ -27,7 +27,7 @@ export class ElementSshTermComponent implements OnInit, AfterViewInit {
ngOnInit() { ngOnInit() {
this.secret = this._uuid.gen(); this.secret = this._uuid.gen();
this.term = new Terminal({ this.term = new Terminal({
fontFamily: 'Consolas, monospace', fontFamily: '"Consolas", "monospace"',
fontSize: 16, fontSize: 16,
rightClickSelectsWord: true, rightClickSelectsWord: true,
theme: { theme: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment