diff --git a/protocol-extensions.asciidoc b/protocol-extensions.asciidoc index 99bac200f..00223dc25 100644 --- a/protocol-extensions.asciidoc +++ b/protocol-extensions.asciidoc @@ -77,10 +77,13 @@ Before describing this escape code in detail, lets see some quick examples to ge ``` # Draw 10x20 pixels starting at the top-left corner of the current cell. _Gw=10,h=20,s=100;\ + # Ditto, getting the pixel data from /tmp/pixel_data _Gw=10,h=20,t=f,s=100;\ + # Ditto, getting the pixel data from /dev/shm/pixel_data, deleting the file after reading data _Gw=10,h=20,t=t,s=100;\ + # Draw 10x20 pixels starting at the top-left corner of the current cell, ignoring the first 4 rows and 3 columns of the pixel data _Gw=10,h=20,x=3,y=4,s=100;\ ``` @@ -105,6 +108,7 @@ The control data's keys are split up into categories for easier reference. |=== | Key | Default | Meaning + | w | full width | width -- number of columns to draw | h | full height | height -- number of columns to draw | x | zero | x-offset -- the column in the pixel data to start from (0-based) @@ -154,6 +158,7 @@ take three values, described below: |=== | Value of `t` | Meaning + | f | A simple file | t | A temporary file, the terminal emulator will delete the file after reading the pixel data | s | A http://man7.org/linux/man-pages/man7/shm_overview.7.html[POSIX shared memory object]. The terminal emulator will delete it after reading the pixel data from it