webterm: improve selection look & feel

This commit is contained in:
fang 2022-01-07 14:02:28 +01:00
parent 61ebff6901
commit afea2edc59
No known key found for this signature in database
GPG Key ID: EB035760C1BBA972

View File

@ -45,7 +45,8 @@ const makeTheme = (dark: boolean): ITheme => {
foreground: fg,
background: bg,
brightBlack: '#7f7f7f', // NOTE slogs
cursor: fg
cursor: fg,
selection: fg
};
};
@ -66,7 +67,9 @@ const termConfig: ITerminalOptions = {
bellSound: bel,
//
// allows text selection by holding modifier (option, or shift)
macOptionClickForcesSelection: true
macOptionClickForcesSelection: true,
// prevent insertion of simulated arrow keys on-altclick
altClickMovesCursor: false
};
const csi = (cmd: string, ...args: number[]) => {