--
---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/semware/666ed9ee-8349-684d-d33d-cb218a407917%40cohousing.org.




In TSE for Linux the insert/overwrite cursor shapes are not drawn by TSE itself –
they come from the terminal cursor-shape control escape sequences (DECSCUSR).
TSE simply sends two different terminal escape codes when you toggle Insert/Overwrite.
If your terminal supports those codes (xterm, gnome-terminal, mate-terminal, WSL Debian terminal, etc.), you get:
thin vertical bar = insert mode
full block = overwrite mode
Alt-O → Editor Options → Cursor Size Insert / Overwrite
That lets you assign two cursor shape IDs, for example:
Insert cursor = 9
Overwrite cursor = 8
TSE then emits:
CSI Ps SP q
where Ps is the value you configured (8, 9, etc.)
These are standard XTerm cursor styles:
| Ps | Cursor Appearance |
|---|---|
| 0 | blinking block (default) |
| 1 | blinking block |
| 2 | steady block |
| 3 | blinking underline |
| 4 | steady underline |
| 5 | blinking bar |
| 6 | steady bar |
| 7–9 | reserved / extended (XTerm maps 6/7/8/9 to bar/steady bar variants depending on terminal) |
On most modern WSL terminals:
8 → solid block
9 → thin vertical bar
That matches your observation.
To make this actually work you must:
(e.g., xterm, gnome-terminal, Konsole, alacritty, Windows Terminal under WSL, etc.)
$TERM is set to something like xterm-256colorCheck:
echo $TERM
If it prints e.g. xterm-256color, you’re good.
If it says dumb, sh, or linux, cursor shaping will not change.
You can set it before launching TSE:
export TERM=xterm-256color
./e
Once configured:
Toggle Insert (Ins key)
TSE sends cursor style Ps=9 → thin bar
Toggle Overwrite
TSE sends cursor style Ps=8 → block
So yes — what you are seeing is exactly how it is intended to work.
Inside TSE (Linux):
Alt-O → Editor Options → Cursor size insert = 9
Alt-O → Editor Options → Cursor size overwrite = 8
Make sure the terminal supports XTerm cursor shaping (TERM=xterm-256color).
That’s all you need.