We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
image()
1 parent a5d36d2 commit b739b18Copy full SHA for b739b18
base.js
@@ -131,7 +131,10 @@ export const image = (data, options = {}) => {
131
returnValue += ';preserveAspectRatio=0';
132
}
133
134
- return returnValue + ':' + Buffer.from(data).toString('base64') + BEL;
+ const imageBuffer = Buffer.from(data);
135
+
136
+ // `size` is optional in the spec, but xterm.js requires it.
137
+ return returnValue + `;size=${imageBuffer.byteLength}` + ':' + imageBuffer.toString('base64') + BEL;
138
};
139
140
export const iTerm = {
0 commit comments