🇨🇦 🏳️⚧️
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # simlink this file into PATH with a name like 'echoenv' or smth | |
| printenv | | |
| sort | grep "^$1" --ignore-case | | |
| bat --no-paging --style=grid,numbers | |
| # replace above line with cat to make more portable | |
| # print PATH | |
| if [[ -z "$1" || "$1" = "PATH" || "$1" = "path" ]]; then |
This is described at https://rockorager.dev/misc/bracketed-paste-mime/ however the protocol described differs from kitty's actual behavor. This document is based on the linked page and has been modified to match Kitty's implementation of the protocol.
The main OSC 5522 spec can be found here: https://sw.kovidgoyal.net/kitty/clipboard/
Detection is performed with a standard DECRQM query: