aboutsummaryrefslogtreecommitdiff
path: root/sys/teken/sequences
diff options
context:
space:
mode:
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>2018-05-20 14:21:20 +0000
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>2018-05-20 14:21:20 +0000
commit8dcd2ed3c92d5fcaca7da3d2669b7ed3bd510ac9 (patch)
treeefd4cd55a7d100d99d880c27f3cfb7f93da48c59 /sys/teken/sequences
parentb7faa59dee5a12c3a2e620847582c6764d2670f4 (diff)
downloadsrc-8dcd2ed3c92d5fcaca7da3d2669b7ed3bd510ac9.tar.gz
src-8dcd2ed3c92d5fcaca7da3d2669b7ed3bd510ac9.zip
teken, vt(4): Parse the "Cursor style" escape sequence
The escape sequence (e.g. `^[[2 q`) was unsupported before and the letter `q` was displayed as a typed character. The sequence is used by Neovim for instance. Now, it is properly parsed. However, it is ignored, so it won't change the cursor style. Because the escape sequence contains a space character, the `gensequences` script had to be modified to support that. In the `sequences` file, a space is represented as the string `SP`.
Notes
Notes: svn path=/head/; revision=333925
Diffstat (limited to 'sys/teken/sequences')
-rw-r--r--sys/teken/sequences1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/teken/sequences b/sys/teken/sequences
index 0891f17e06b7..94fe76472f51 100644
--- a/sys/teken/sequences
+++ b/sys/teken/sequences
@@ -48,6 +48,7 @@ CUF Cursor Forward ^[ [ a n
CUP Cursor Position ^[ [ H n n
CUP Cursor Position ^[ [ f n n
CUU Cursor Up ^[ [ A n
+CS Cursor style ^[ [ SP q r
DA1 Primary Device Attributes ^[ [ c r
DA2 Secondary Device Attributes ^[ [ > c r
DC Delete character ^[ [ P n