Skip to content

Commit

Permalink
Merge branch 'upgrade-xterm' of https://github.com/josegonzalez/gotty
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenisanerd committed Mar 25, 2024
2 parents ba9326e + 7216078 commit adfc112
Show file tree
Hide file tree
Showing 7 changed files with 53 additions and 34 deletions.
27 changes: 23 additions & 4 deletions bindata/static/css/xterm.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
right: 0;
z-index: 10;
color: transparent;
pointer-events: none;
}

.xterm .live-region {
Expand All @@ -160,13 +161,27 @@
}

.xterm-dim {
opacity: 0.5;
/* Dim should not apply to background, so the opacity of the foreground color is applied
* explicitly in the generated class and reset to 1 here */
opacity: 1 !important;
}

.xterm-underline {
text-decoration: underline;
.xterm-underline-1 { text-decoration: underline; }
.xterm-underline-2 { text-decoration: double underline; }
.xterm-underline-3 { text-decoration: wavy underline; }
.xterm-underline-4 { text-decoration: dotted underline; }
.xterm-underline-5 { text-decoration: dashed underline; }

.xterm-overline {
text-decoration: overline;
}

.xterm-overline.xterm-underline-1 { text-decoration: overline underline; }
.xterm-overline.xterm-underline-2 { text-decoration: overline double underline; }
.xterm-overline.xterm-underline-3 { text-decoration: overline wavy underline; }
.xterm-overline.xterm-underline-4 { text-decoration: overline dotted underline; }
.xterm-overline.xterm-underline-5 { text-decoration: overline dashed underline; }

.xterm-strikethrough {
text-decoration: line-through;
}
Expand All @@ -176,8 +191,12 @@
position: absolute;
}

.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer {
z-index: 7;
}

.xterm-decoration-overview-ruler {
z-index: 7;
z-index: 8;
position: absolute;
top: 0;
right: 0;
Expand Down
2 changes: 1 addition & 1 deletion bindata/static/js/gotty.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindata/static/js/gotty.js.map

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"preact": "^10.19.4",
"react-bootstrap": "^2.10.1",
"style-loader": "^2.0.0",
"xterm": "^4.19.0",
"xterm-addon-fit": "^0.5.0",
"xterm-addon-web-links": "^0.4.0",
"xterm-addon-webgl": "^0.10.0",
"xterm": "^5.3.0",
"xterm-addon-fit": "^0.8.0",
"xterm-addon-web-links": "^0.9.0",
"xterm-addon-webgl": "^0.16.0",
"zmodem.js": "^0.1.10"
}
}
6 changes: 3 additions & 3 deletions js/src/xterm.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Terminal, IDisposable } from "xterm";
import { IDisposable, Terminal } from "xterm";
import { FitAddon } from 'xterm-addon-fit';
import { WebLinksAddon } from 'xterm-addon-web-links';
import { WebglAddon } from 'xterm-addon-webgl';
Expand Down Expand Up @@ -104,9 +104,9 @@ export class OurXterm {
if (key == "EnableWebGL" && key) {
this.term.loadAddon(new WebglAddon());
} else if (key == "font-size") {
this.term.setOption("fontSize", value[key])
this.term.options.fontSize = value[key]
} else if (key == "font-family") {
this.term.setOption("fontFamily", value[key])
this.term.options.fontFamily = value[key]
}
});
};
Expand Down
4 changes: 2 additions & 2 deletions js/src/zmodem.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, ComponentChildren, createRef, render } from "preact";
import { ITerminalAddon, Terminal } from "xterm";
import { Browser, Detection, Offer, Sentry, Session } from 'zmodem.js/src/zmodem_browser';
import { MyModal, Button } from "./MyModal";
import { Component, ComponentChildren, createRef, render } from "preact";
import { Button, MyModal } from "./MyModal";

export class ZModemAddon implements ITerminalAddon {
term: Terminal;
Expand Down

0 comments on commit adfc112

Please sign in to comment.