15 lines
388 B
Python
15 lines
388 B
Python
![]() |
#!/usr/bin/env -S scala-cli shebang
|
||
|
//>using dep de.qwertyuiop::copret:0.0.2
|
||
|
import de.qwertyuiop.copret.*
|
||
|
import Terminal.*
|
||
|
|
||
|
enterRawMode()
|
||
|
|
||
|
val hasGraphics =
|
||
|
queryTerm(s"${apc}Gi=${KittyGraphicsProtocol.MaxID},s=1,v=1,a=q,t=d,f=24;AAAA${st}${csi}c")
|
||
|
.contains(s"${apc}Gi=${KittyGraphicsProtocol.MaxID}")
|
||
|
|
||
|
val size = queryTerm(s"${csi}14t")
|
||
|
|
||
|
println(s"Has graphics: $hasGraphics")
|