Further improve the remote font intergation: Better preload strategy, better loading and UI interation.

This commit is contained in:
NI
2019-12-13 14:35:23 +08:00
parent a5696d6b63
commit c018c7b4be
12 changed files with 223 additions and 78 deletions

View File

@@ -249,7 +249,7 @@ class Wizard {
this.config = config;
this.session = session;
this.step = subs;
this.controls = controls;
this.controls = controls.get("Telnet");
this.history = history;
this.step.resolve(this.stepInitialPrompt());
@@ -259,6 +259,10 @@ class Wizard {
return this.hasStarted;
}
control() {
return this.controls;
}
close() {
this.step.resolve(
this.stepErrorDone(
@@ -337,7 +341,7 @@ class Wizard {
new command.Result(
configInput.host,
self.info,
self.controls.get("Telnet", {
self.controls.build({
charset: parsedConfig.charset,
send(data) {
return commandHandler.sendData(data);
@@ -346,7 +350,8 @@ class Wizard {
return commandHandler.sendClose();
},
events: commandHandler.events
})
}),
self.controls.ui()
)
)
);