Repository navigation
Description
Refs: #286141
- macOS Michael Lively (@Yoyokrazy)
- linux TylerLeonhardt
- windows Federico Brancasi (@federicobrancasi)
Complexity: 5
Thanks in advance for testing.
Background Information
👋 You will get to render fancy images in the terminal today :)
Context: Kitty graphics protocol is defined: https://sw.kovidgoyal.net/kitty/graphics-protocol/
Discussion/Chart tracker of the current state of KGP implementation ---> xtermjs/xterm.js#5683
Long story short, Kitty graphics protocol (herby defined KGP), allows us to render "fancy" or "high fidelity" images in the terminal.
To test images show up in the terminal using KGP, you may use clients such as "kitten icat", but "kitten icat" specifically is not supported in Windows.
For the ease of testing, I've made image-kitty command in VT Cli tool --> https://github.com/xtermjs/vtc
- Please use
bun run <ABSOLUTE_PATH_TO_YOUR_VT_CLI_src/index.ts> image-kitty --helpto get guidance on how to use cli command to test sending images to the terminal.
Copilot also does a fantastic job guiding you which commands are useful to test, if you locally clone https://github.com/xtermjs/vtc and feed it as context to chat/agent.
Requirements
- Please install
bunif you have not already. You need this to runimage-kittycommand defined above. - Latest version of VS Code Insiders.
- Enable
terminal.integrated.enableImages - Make sure
terminal.integrated.gpuAccelerationis on or auto - Windows) Please turn ON
terminal.integrated.windowsUseConptyDllto true. - Clone
https://github.com/xtermjs/vtcyou will need path of this to usebun run ... index.ts ... image-kittycommand defined above. - Try to get a quick summary/understanding of https://sw.kovidgoyal.net/kitty/graphics-protocol/
Testing
Steps to Test:
- Please make sure you read the context & requirement above.
- Open a new terminal inside VS Code, start testing different commands using
image-kittycommand. - Have couple of images of different size (PNG, RGB, RGBA) of your choice locally so you can provide a path to them using
image-kittycommand. - As you may have noticed in the
xterm.jsdiscussion link Kitty Graphics Protocol Discussion xtermjs/xterm.js#5683 not all specs have been implemented 100% (we dont support animiations, relative placements, for example). - Use Copilot, KGP official doc, discussion page to freely test different components of Kitty graphics protocol.
- If you notice anything weird, or unexpected in the VS Code terminal, feel free to compare the behavior (using same command) against Ghostty, or Kitty terminal.
In case you are super lost, here are few commands to get started.
(Of course, please change the PATH to be appropriate for your system)
# Display built-in demo image (no file needed)
bun run src/index.ts image-kitty --demo
# Basic: display an image as PNG (simplest)
bun run src/index.ts image-kitty ~/Desktop/lotte.png
# Display with a specific size (10 columns wide, 5 rows tall)
bun run src/index.ts image-kitty ~/Desktop/colorAllTheWay.png --columns 10 --rows 5
# Transmit ONLY (You can have image displayed later)
bun run src/index.ts image-kitty ~/Desktop/lotte.png --action transmit --imageId 1
# If you ran above (transmit only, you can place it with same ID
bun run src/index.ts image-kitty --action place --imageId 1
# Crop: display only a 100x100 region starting at pixel (50, 50)
bun run src/index.ts image-kitty ~/Desktop/lotte.png --srcX 50 --srcY 50 --srcWidth 100 --srcHeight 100
You will see images in the terminal like:
Activity
federicobrancasi commentedon Feb 24, 2026
I can reproduce what looks like a cursor positioning issue after rendering an image with Kitty Graphics Protocol in the VS Code integrated terminal (unless I’m missing something in expected behavior).
Expected
Typing/input starts at the prompt line below the rendered image (
PS ...>), consistently.Actual
Typing sometimes starts near the top-right area beside the image (above the prompt line), so cursor position appears incorrect after image render.
I attached a video showing the behavior.
Please let me know if I’m missing something, but I’d expect new input to start from the next prompt line below the rendered image, not from a position beside/above it, right?
vtc.test.mp4
federicobrancasi commentedon Feb 24, 2026
Also, I forgot to tell you, I ran it on Windows cause I still don't have the Mac (it will arrive in a couple of weeks), but maybe I can test it on my personal at home.
TylerLeonhardt commentedon Feb 24, 2026
Federico Brancasi (@federicobrancasi) you'll want to open that as an issue using the friendly "Create Issue" link in the issue which will reference this issue automatically.
Also, when you are done testing, check your name off and remove yourself as assigned.
Since you ended up taking Windows instead of macOS, I'll remove Dmitriy Vasyura (@dmitrivMS)'s assignment to windows and add you and then we'll get someone else to do macOS.
Don't be afraid to reach out to your buddy, #dev-discuss or myself if you have any questions!
Yoyokrazy commentedon Feb 25, 2026
macOS Test Results
Tested on macOS with VS Code Insiders (latest as of 2026-02-24),
terminal.integrated.enableImages: true,terminal.integrated.gpuAcceleration: "auto".Used
vtcCLI tool with two test images: a 48K RGBA PNG (transparency) and a 293B solid blue PNG.--demo(built-in image)--columns 10 --rows 5)--action transmit --imageId 1)--action place --imageId 1)--srcX 50 --srcY 50 --srcWidth 100 --srcHeight 100)--format rgb)--format rgba)--noMove/C=1)--offsetX/--offsetY)--action query)OK, confirming KGP supportAdditional checks
Cmd+K): Images properly cleared ✅Bug filed
--noMove(C=1) does not preserve cursor position; cursor ends up at bottom-right of image instead of staying at the pre-image positionfedericobrancasi commentedon Feb 25, 2026
Windows testing complete; follow-up bug filed: #297643.