config: add tweak.grapheme-width-method=wcswidth|at-most-2

This commit is contained in:
Daniel Eklöf 2021-06-30 18:00:33 +02:00
parent 031e8f5987
commit 9817e44c32
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 46 additions and 5 deletions

View file

@ -997,8 +997,26 @@ any of these options.
but is necessary to not break cursor synchronization with the
application running in foot.
See also: *grapheme-width-method*.
Default: _no_
*grapheme-width-method*
Selects which method to use when calculating the width
(i.e. number of columns) of a grapheme cluster. One of *at-most-2*
and *wcswidth*.
*wcswidth* simply adds together the individual width of all
codepoints making up the cluster.
*at-most-2* does the same, but limits the maximum number of
columns to 2. This is more correct, but is likely to break
applications since applications typically use *wcswidth*(3)
internally to calculate the width. This results in cursor
de-synchronization issues.
Default: _at-most-2_
*max-shm-pool-size-mb*
This option controls the amount of virtual address space used by
the pixmap memory to which the terminal screen content is