mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-19 18:07:58 +00:00
automatically clean up defaults from the config file
This commit is contained in:
@@ -19,7 +19,6 @@ export interface SerialProfileOptions extends StreamProcessingOptions, LoginScri
|
||||
xon?: boolean
|
||||
xoff?: boolean
|
||||
xany?: boolean
|
||||
color?: string
|
||||
}
|
||||
|
||||
export const BAUD_RATES = [
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user