mirror of
https://github.com/yudai/gotty.git
synced 2026-02-06 08:31:49 +01:00
Rename TermXterm and TermHterm to Xterm and Hterm
This commit is contained in:
parent
70aaf33082
commit
27b6436196
7 changed files with 41 additions and 41 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import * as bare from "libapps";
|
||||
|
||||
export class TermHterm {
|
||||
export class Hterm {
|
||||
elem: HTMLElement;
|
||||
|
||||
term: bare.Terminal;
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import * as bare from "xterm";
|
|||
|
||||
bare.loadAddon("fit");
|
||||
|
||||
export class TermXterm {
|
||||
export class Xterm {
|
||||
elem: HTMLElement;
|
||||
|
||||
message: HTMLElement;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue