relax OSC52 processing rules to support tmux - fixes #5961

This commit is contained in:
Eugene Pankov 2022-03-19 11:53:44 +01:00
parent 3bfdb95bf0
commit 45b6e21dbc
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -35,7 +35,7 @@ export class OSCProcessor extends SessionMiddleware {
console.debug('Unsupported OSC 1337 parameter:', paramString)
}
} else if (oscCode === 52) {
if (oscParams[0] === 'c') {
if (oscParams[0] === 'c' || oscParams[0] === '') {
const content = Buffer.from(oscParams[1], 'base64')
this.copyRequested.next(content.toString())
}