From b611d56881058ea32667783ca4381db6c08bf096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 9 Oct 2020 18:52:28 +0200 Subject: [PATCH] readme: clearer descriptions of secondary and tertiary DA responses --- README.md | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 03cf75c0..0bc707f4 100644 --- a/README.md +++ b/README.md @@ -323,16 +323,12 @@ chosen to use a different terminfo). You can instead use the escape sequences to read the _Secondary_ and _Tertiary Device Attributes_ (secondary/tertiary DA, for short). -The tertiary DA response is always `\EP!|464f4f54\E\\`. The `\EP!|` is -the standard tertiary DA response prefix, `DCS ! |`. The trailing -`\E\\` is of course the standard string terminator, `ST`. +The tertiary DA response is always `\EP!|464f4f54\E\\`, where +`464f4f54` if `FOOT` in hex. -In the response above, the interesting part is `464f4f54`; this is -the string _FOOT_ in hex. - -The secondary DA response is `\E[>1;XXYYZZ;0c`, where XXYYZZ is foot's -major, minor and patch version numbers, in decimal, using two digits -for each number. For example, foot-1.4.2 would respond with +The secondary DA response is `\E[>1;XXYYZZ;0c`, where `XXYYZZ` is +foot's major, minor and patch version numbers, in decimal, using two +digits for each number. For example, foot-1.4.2 would respond with `\E[>1;010402;0c`. **Note**: not all terminal emulators implement tertiary DA. Most