Add option scrollOnKeypress
Note that we also change the existing behavior a bit: CoreService.triggerDataEvent() will not scroll to the bottom unless `wasUserInput` is also true. This actually seems to be the intended behavior according to the doc just above ICoreService.triggerDataEvent().
This commit is contained in:
@@ -68,7 +68,7 @@ export class CoreService extends Disposable implements ICoreService {
|
||||
|
||||
// Input is being sent to the terminal, the terminal should focus the prompt.
|
||||
const buffer = this._bufferService.buffer;
|
||||
if (buffer.ybase !== buffer.ydisp) {
|
||||
if (wasUserInput && this._optionsService.rawOptions.scrollOnKeypress && buffer.ybase !== buffer.ydisp) {
|
||||
this._scrollToBottom!();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user