Skip to content

Instantly share code, notes, and snippets.

View CommandMaker's full-sized avatar

CommandMaker

View GitHub Profile
@CommandMaker
CommandMaker / 8-sixel.patch
Created December 8, 2024 12:29
Suckless ST 0.9.2 SIXEL patch
--- a/config.def.h 2024-12-08 12:07:57.276000000 +0100
+++ b/config.def.h 2024-12-08 12:09:05.244000000 +0100
@@ -23,7 +23,10 @@
char *stty_args = "stty raw pass8 nl -echo -iexten -cstopb 38400";
/* identification sequence returned in DA and DECID */
-char *vtiden = "\033[?6c";
+char *vtiden = "\033[?62;4c"; /* VT200 family (62) with sixel (4) */
+
+/* sixel rgb byte order: LSBFirst or MSBFirst */