diff options
| author | Steven Ward <planet36@gmail.com> | 2023-08-19 08:05:36 -0500 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2026-02-05 23:26:17 +0100 |
| commit | 27a29b8b81063847b23c7bb7c03f3d8492261bc4 (patch) | |
| tree | acf96021dfb8a43a180a7d0b7580036ea005d136 /config.def.h | |
| parent | st: guard tsetdirt() against zero-sized terminal (diff) | |
| download | st-27a29b8b81063847b23c7bb7c03f3d8492261bc4.tar.gz st-27a29b8b81063847b23c7bb7c03f3d8492261bc4.zip | |
Add different cursor styles
Diffstat (limited to '')
| -rw-r--r-- | config.def.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/config.def.h b/config.def.h index 2cd740a..36c10d1 100644 --- a/config.def.h +++ b/config.def.h | |||
| @@ -135,13 +135,20 @@ unsigned int defaultcs = 256; | |||
| 135 | static unsigned int defaultrcs = 257; | 135 | static unsigned int defaultrcs = 257; |
| 136 | 136 | ||
| 137 | /* | 137 | /* |
| 138 | * Default shape of cursor | 138 | * https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h4-Functions-using-CSI-_-ordered-by-the-final-character-lparen-s-rparen:CSI-Ps-SP-q.1D81 |
| 139 | * 2: Block ("█") | 139 | * Default style of cursor |
| 140 | * 4: Underline ("_") | 140 | * 0: blinking block |
| 141 | * 6: Bar ("|") | 141 | * 1: blinking block (default) |
| 142 | * 7: Snowman ("☃") | 142 | * 2: steady block ("█") |
| 143 | * 3: blinking underline | ||
| 144 | * 4: steady underline ("_") | ||
| 145 | * 5: blinking bar | ||
| 146 | * 6: steady bar ("|") | ||
| 147 | * 7: blinking st cursor | ||
| 148 | * 8: steady st cursor | ||
| 143 | */ | 149 | */ |
| 144 | static unsigned int cursorshape = 2; | 150 | static unsigned int cursorstyle = 1; |
| 151 | static Rune stcursor = 0x2603; /* snowman ("☃") */ | ||
| 145 | 152 | ||
| 146 | /* | 153 | /* |
| 147 | * Default columns and rows numbers | 154 | * Default columns and rows numbers |
