Terminal: schwarzen Rand im Innenabstand entfernt (xterm-viewport transparent, Hintergrund in Terminalfarbe)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1018,6 +1018,7 @@ class TerminalSession {
|
||||
this.term.loadAddon(this.search);
|
||||
this.term.loadAddon(new WebLinksAddon.WebLinksAddon((_e, url) => api.call('shell:open', url)));
|
||||
this.term.open($('.term', this.el));
|
||||
$('.term', this.el).style.background = termTheme().background; // Innenabstand in Terminalfarbe
|
||||
this.term.onData((d) => { if (this.alive) api.ssh.write(this.id, d); else if (d === '\r' && this.ended) this.reconnect(); });
|
||||
this.term.onResize(({ cols, rows }) => { if (this.alive) api.ssh.resize(this.id, cols, rows); });
|
||||
this.term.onSelectionChange(() => { if (settings().copyOnSelect && this.term.hasSelection()) api.call('clipboard:write', this.term.getSelection()); });
|
||||
@@ -1091,6 +1092,7 @@ class TerminalSession {
|
||||
applySettings() {
|
||||
const st = settings();
|
||||
Object.assign(this.term.options, { fontFamily: st.fontFamily, fontSize: st.fontSize, cursorStyle: st.cursorStyle, cursorBlink: st.cursorBlink, scrollback: st.scrollback, theme: termTheme() });
|
||||
$('.term', this.el).style.background = termTheme().background;
|
||||
this.doFit();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user