diff --git a/docs/rc_protocol.rst b/docs/rc_protocol.rst index 3c2075fa6..014298bfc 100644 --- a/docs/rc_protocol.rst +++ b/docs/rc_protocol.rst @@ -35,7 +35,7 @@ as:: Now, in a different terminal, you can get the pretty printed ``@ ls`` output with the following command line:: - echo -n '\x1bP@kitty-cmd{"cmd":"ls","version":[0,14,2]}\x1b\' | socat - unix:/tmp/test | tail -c +13 | jq -c '.data | fromjson' 2>/dev/null | jq . + echo -n '\x1bP@kitty-cmd{"cmd":"ls","version":[0,14,2]}\x1b\' | socat - unix:/tmp/test | awk '{ print substr($0, 13, length($0) - 14) }' | jq -c '.data | fromjson' | jq . .. include:: generated/rc.rst