Allow to disable fast scrolling

This commit is contained in:
Corentin Surquin
2019-08-10 19:45:41 +02:00
parent 73a17cfacb
commit a353a8cffe
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -228,7 +228,7 @@ function initOptions(term: TerminalType): void {
bellSound: null, bellSound: null,
bellStyle: ['none', 'sound'], bellStyle: ['none', 'sound'],
cursorStyle: ['block', 'underline', 'bar'], cursorStyle: ['block', 'underline', 'bar'],
fastScrollModifier: ['alt', 'ctrl', 'shift'], fastScrollModifier: ['alt', 'ctrl', 'shift', undefined],
fontFamily: null, fontFamily: null,
fontWeight: ['normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900'], fontWeight: ['normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900'],
fontWeightBold: ['normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900'], fontWeightBold: ['normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900'],
+1 -1
View File
@@ -180,7 +180,7 @@ export interface ITerminalOptions {
cursorStyle: 'block' | 'underline' | 'bar'; cursorStyle: 'block' | 'underline' | 'bar';
disableStdin: boolean; disableStdin: boolean;
drawBoldTextInBrightColors: boolean; drawBoldTextInBrightColors: boolean;
fastScrollModifier: 'alt' | 'ctrl' | 'shift'; fastScrollModifier: 'alt' | 'ctrl' | 'shift' | undefined;
fastScrollSensitivity: number; fastScrollSensitivity: number;
fontSize: number; fontSize: number;
fontFamily: string; fontFamily: string;
+1 -1
View File
@@ -85,7 +85,7 @@ declare module 'xterm' {
/** /**
* The modifier key hold to multiply scroll speed. * The modifier key hold to multiply scroll speed.
*/ */
fastScrollModifier?: 'alt' | 'ctrl' | 'shift'; fastScrollModifier?: 'alt' | 'ctrl' | 'shift' | undefined;
/** /**
* The scroll speed multiplier used for fast scrolling. * The scroll speed multiplier used for fast scrolling.