automatically clean up defaults from the config file

This commit is contained in:
Eugene Pankov
2021-07-11 00:06:52 +02:00
parent 67bbbd7f65
commit 908f90cd52
11 changed files with 155 additions and 44 deletions

View File

@@ -19,7 +19,6 @@ export interface SerialProfileOptions extends StreamProcessingOptions, LoginScri
xon?: boolean
xoff?: boolean
xany?: boolean
color?: string
}
export const BAUD_RATES = [

View File

@@ -13,6 +13,24 @@ export class SerialProfilesService extends ProfileProvider {
id = 'serial'
name = 'Serial'
settingsComponent = SerialProfileSettingsComponent
configDefaults = {
options: {
port: null,
baudrate: null,
databits: 8,
stopbits: 1,
parity: 'none',
rtscts: false,
xon: false,
xoff: false,
xany: false,
inputMode: 'local-echo',
outputMode: null,
inputNewlines: null,
outputNewlines: 'crlf',
scripts: [],
},
}
constructor (
private selector: SelectorService,