Rename TermXterm and TermHterm to Xterm and Hterm

This commit is contained in:
Iwasaki Yudai 2017-08-22 15:59:24 +09:00
parent 70aaf33082
commit 27b6436196
7 changed files with 41 additions and 41 deletions

View file

@ -1,6 +1,6 @@
import * as bare from "libapps";
export class TermHterm {
export class Hterm {
elem: HTMLElement;
term: bare.Terminal;

View file

@ -1,5 +1,5 @@
import { TermHterm } from "./hterm";
import { TermXterm } from "./xterm";
import { Hterm } from "./hterm";
import { Xterm } from "./xterm";
import { Terminal, WebTTY, protocols } from "./webtty";
import { ConnectionFactory } from "./websocket";
@ -12,9 +12,9 @@ const elem = document.getElementById("terminal")
if (elem !== null) {
var term: Terminal;
if (gotty_term == "hterm") {
term = new TermHterm(elem);
term = new Hterm(elem);
} else {
term = new TermXterm(elem);
term = new Xterm(elem);
}
const httpsEnabled = window.location.protocol == "https:";
const url = (httpsEnabled ? 'wss://' : 'ws://') + window.location.host + window.location.pathname + 'ws';

View file

@ -2,7 +2,7 @@ import * as bare from "xterm";
bare.loadAddon("fit");
export class TermXterm {
export class Xterm {
elem: HTMLElement;
message: HTMLElement;