Formatting

This commit is contained in:
Kovid Goyal
2017-01-21 09:52:59 +05:30
parent 9bc1e59246
commit 832e21cb1d

View File

@@ -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.
<ESC>_Gw=10,h=20,s=100;<pixel data><ESC>\
# Ditto, getting the pixel data from /tmp/pixel_data
<ESC>_Gw=10,h=20,t=f,s=100;<encoded /tmp/pixel_data><ESC>\
# Ditto, getting the pixel data from /dev/shm/pixel_data, deleting the file after reading data
<ESC>_Gw=10,h=20,t=t,s=100;<encoded /dev/shm/pixel_data><ESC>\
# 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
<ESC>_Gw=10,h=20,x=3,y=4,s=100;<pixel data><ESC>\
```
@@ -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