From 3a0d3dc0b39cc8b4b6d68e952b1debc7349af8b4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 4 Jan 2021 13:14:14 +0530 Subject: [PATCH] Slightly improved command line --- docs/rc_protocol.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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