mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-08 20:40:00 +00:00
This commit is contained in:
parent
93e43067de
commit
0cf9886270
@ -17,6 +17,8 @@ import { getTerminalBackgroundColor } from '../helpers'
|
||||
|
||||
|
||||
const INACTIVE_TAB_UNLOAD_DELAY = 1000 * 30
|
||||
const OSC_FOCUS_IN = Buffer.from('\x1b[I')
|
||||
const OSC_FOCUS_OUT = Buffer.from('\x1b[O')
|
||||
|
||||
/**
|
||||
* A class to base your custom terminal tabs on
|
||||
@ -494,7 +496,7 @@ export class BaseTerminalTabComponent<P extends BaseTerminalProfile> extends Bas
|
||||
data = Buffer.from(data, 'utf-8')
|
||||
}
|
||||
this.session?.feedFromTerminal(data)
|
||||
if (this.config.store.terminal.scrollOnInput) {
|
||||
if (this.config.store.terminal.scrollOnInput && !data.equals(OSC_FOCUS_IN) && !data.equals(OSC_FOCUS_OUT)) {
|
||||
this.frontend?.scrollToBottom()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user