Skip to content

Commit fce9fc5

Browse files
committed
CSI c Device Attributes Report returns 4 to indicate sixel support
"VT100 with GPO (Graphics Processor Option)"
1 parent 159932f commit fce9fc5

File tree

1 file changed

+7
-3
lines changed
  • internal/app/darktile/termutil

1 file changed

+7
-3
lines changed

internal/app/darktile/termutil/csi.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,10 +304,14 @@ func (t *Terminal) csiWindowManipulation(params []string) (renderRequired bool)
304304
// Send Device Attributes (Primary/Secondary/Tertiary DA)
305305
func (t *Terminal) csiSendDeviceAttributesHandler(params []string) (renderRequired bool) {
306306

307-
// we are VT100
308-
// for DA1 we'll respond ?1;2
307+
// We are VT100 with:
308+
// 1: STP (Selective Erase)
309+
// 2: AVO (Advanced Video Option)
310+
// 3: both STP and AVO
311+
// 4: GPO (Graphics Processor Option (sixel))
312+
// for DA1 we'll respond ?1;2;3;4
309313
// for DA2 we'll respond >0;0;0
310-
response := "?1;2"
314+
response := "?1;2;4"
311315
if len(params) > 0 && len(params[0]) > 0 && params[0][0] == '>' {
312316
response = ">0;0;0"
313317
}

0 commit comments

Comments
 (0)