sending multiple RCP codes #3992
Answered
by
kovidgoyal
AprilArcus
asked this question in
Q&A
Replies: 1 comment 1 reply
-
IIRC if you specify reset everything else is ignored. So you have to use
two successive commands.
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
AprilArcus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My goal is to reset the configured colors before setting the configured colors, in a single RCP command. The command string I'm generating looks like:
\x1bP@kitty-cmd{"cmd":"set-colors","version":[0,23,1],"no_response":"true","payload":{"reset":true}}\x1b\\x1bP@kitty-cmd{"cmd":"set-colors","version":[0,23,1],"no_response":"true","payload":{"colors":{"color0":4210241,"color1":16736648,"color2":11132022,"color3":16767078,"color4":16554087,"color5":11247090,"color6":7920872,"color7":16579834,"color8":7499890,"color9":16736648,"color10":11132022,"color11":16767078,"color12":16554087,"color13":11247090,"color14":7920872,"color15":16579834,"foreground":16579834,"background":4210241,"cursor":16579834,"selection_background":7829110},"cursor_text_color":16579834}}\x1b\
However, only the
reset
command is respected; the color configuration command has no effect. If I generate two commands with two separate printfs and then eval that string, everything works. Is it necessary to wait some period of time between successive commands, e.g. a tick of the REPL cycle?Beta Was this translation helpful? Give feedback.
All reactions