1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-26 12:03:31 +03:00
This commit is contained in:
Eugene Pankov 2019-05-24 21:23:03 +02:00
parent 661ada154e
commit ad469c08fe
2 changed files with 13 additions and 17 deletions

View File

@ -27,22 +27,18 @@ export class EditConnectionModalComponent {
this.newScript = { expect: '', send: '' } this.newScript = { expect: '', send: '' }
for (let k of Object.values(SSHAlgorithmType)) { for (let k of Object.values(SSHAlgorithmType)) {
this.supportedAlgorithms[k] = ALGORITHMS[ this.supportedAlgorithms[k] = ALGORITHMS[{
{ [SSHAlgorithmType.KEX]: 'SUPPORTED_KEX',
[SSHAlgorithmType.KEX]: 'SUPPORTED_KEX', [SSHAlgorithmType.HOSTKEY]: 'SUPPORTED_SERVER_HOST_KEY',
[SSHAlgorithmType.HOSTKEY]: 'SUPPORTED_SERVER_HOST_KEY', [SSHAlgorithmType.CIPHER]: 'SUPPORTED_CIPHER',
[SSHAlgorithmType.CIPHER]: 'SUPPORTED_CIPHER', [SSHAlgorithmType.HMAC]: 'SUPPORTED_HMAC',
[SSHAlgorithmType.HMAC]: 'SUPPORTED_HMAC', }[k]]
}[k] this.defaultAlgorithms[k] = ALGORITHMS[{
] [SSHAlgorithmType.KEX]: 'KEX',
this.defaultAlgorithms[k] = ALGORITHMS[ [SSHAlgorithmType.HOSTKEY]: 'SERVER_HOST_KEY',
{ [SSHAlgorithmType.CIPHER]: 'CIPHER',
[SSHAlgorithmType.KEX]: 'KEX', [SSHAlgorithmType.HMAC]: 'HMAC',
[SSHAlgorithmType.HOSTKEY]: 'SERVER_HOST_KEY', }[k]]
[SSHAlgorithmType.CIPHER]: 'CIPHER',
[SSHAlgorithmType.HMAC]: 'HMAC',
}[k]
]
} }
} }

View File

@ -185,7 +185,7 @@ export class XTermFrontend extends Frontend {
} }
if (config.terminal.ligatures && this.xterm.element) { if (config.terminal.ligatures && this.xterm.element) {
enableLigatures(this.xterm) enableLigatures(this.xterm)
} }
} }