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:
sawka
2022-12-05 15:00:53 -08:00
parent 5aecdffead
commit 44967fdeb3
5 changed files with 5 additions and 10 deletions
+1
View File
@@ -49,6 +49,7 @@ module.exports = {
"node_modules/fs-ext/**",
"node_modules/fsevents/**",
],
icon: "static/PromptIcon.icns",
},
rebuildConfig: {},
makers: [
+1 -1
View File
@@ -92,7 +92,7 @@ function ensureDir(dir) {
}
let app = electron.app;
app.setName("Prompt");
app.setName("prompt");
let lock : File;
try {
-8
View File
@@ -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
View File
@@ -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.