mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
add prompt icon to package. allow pty-jumping (when scrollback is too fast), fix scrolling issue by syncScrollArea on focus.
This commit is contained in:
@@ -49,6 +49,7 @@ module.exports = {
|
||||
"node_modules/fs-ext/**",
|
||||
"node_modules/fsevents/**",
|
||||
],
|
||||
icon: "static/PromptIcon.icns",
|
||||
},
|
||||
rebuildConfig: {},
|
||||
makers: [
|
||||
|
||||
+1
-1
@@ -92,7 +92,7 @@ function ensureDir(dir) {
|
||||
}
|
||||
|
||||
let app = electron.app;
|
||||
app.setName("Prompt");
|
||||
app.setName("prompt");
|
||||
|
||||
let lock : File;
|
||||
try {
|
||||
|
||||
@@ -408,10 +408,6 @@ html, body, #main {
|
||||
}
|
||||
}
|
||||
|
||||
&.focus {
|
||||
background-color: #000;
|
||||
}
|
||||
|
||||
&.has-rtnstate .terminal-wrapper {
|
||||
padding-bottom: 0;
|
||||
margin-bottom: -5px;
|
||||
@@ -429,10 +425,6 @@ html, body, #main {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.focus {
|
||||
/* box-shadow: 0 0 3px 3px rgba(255, 255, 255, 0.3); */
|
||||
}
|
||||
|
||||
.terminal-connectelem {
|
||||
overflow-y: hidden;
|
||||
overflow-x: hidden;
|
||||
|
||||
+3
-1
@@ -136,6 +136,7 @@ class TermWrap {
|
||||
|
||||
focusTerminal() {
|
||||
this.terminal.focus();
|
||||
setTimeout(() => this.terminal._core.viewport.syncScrollArea(true), 0)
|
||||
}
|
||||
|
||||
disconnectElem() {
|
||||
@@ -283,7 +284,8 @@ class TermWrap {
|
||||
return;
|
||||
}
|
||||
if (pos > this.ptyPos) {
|
||||
throw new Error(sprintf("invalid pty-update, data-pos[%d] does not match term-pos[%d] cmdid[%s]", pos, this.ptyPos, JSON.stringify(this.termContext)));
|
||||
console.log(sprintf("pty-jump term[%s] %d => %d", JSON.stringify(this.termContext), this.ptyPos, pos));
|
||||
this.ptyPos = pos;
|
||||
}
|
||||
if (pos < this.ptyPos) {
|
||||
let diff = this.ptyPos - pos;
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user