Skip to content
This repository has been archived by the owner on Oct 14, 2022. It is now read-only.

Commit

Permalink
Merge pull request #2 from devzero-inc/lf-styles
Browse files Browse the repository at this point in the history
Attempt to update the background color of the terminal
  • Loading branch information
laurenf authored Aug 31, 2022
2 parents 8a00538 + a41bd99 commit 2c51fba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions bindata/static/css/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
html, body, #terminal {
background: black;
background: #091a26;
height: 100%;
width: 100%;
padding: 0%;
Expand All @@ -10,4 +10,4 @@ html, body, #terminal {
transition: unset;
transition-duration: 0.1s;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
}
4 changes: 2 additions & 2 deletions bindata/static/css/xterm.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@

.xterm .composition-view {
/* TODO: Composition position got messed up somewhere */
background: #000;
background: #091a26;
color: #FFF;
display: none;
position: absolute;
Expand All @@ -92,7 +92,7 @@

.xterm .xterm-viewport {
/* On OS X this is required in order for the scroll bar to appear fully opaque */
background-color: #000;
background-color: #091a26;
overflow-y: scroll;
cursor: default;
position: absolute;
Expand Down
6 changes: 5 additions & 1 deletion js/src/xterm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ export class OurXterm {

constructor(elem: HTMLElement) {
this.elem = elem;
this.term = new Terminal();
this.term = new Terminal({
theme: {
background: '#091a26'
}
});
this.fitAddOn = new FitAddon();
this.zmodemAddon = new ZModemAddon({
toTerminal: (x: Uint8Array) => this.term.write(x),
Expand Down

0 comments on commit 2c51fba

Please sign in to comment.