martanne / dvtm

dvtm brings the concept of tiling window management, popularized by X11-window managers like dwm to the console. As a console window manager it tries to make it easy to work with multiple console based programs.
MIT License
843 stars 108 forks source link

Unable to change cursor type with escape sequences #128

Open Ingvix opened 2 years ago

Ingvix commented 2 years ago

I use vi(m)-like modes in multiple programs and like the cursor to be block in normal mode and a pipe in insert mode but dvtm doesn't seem to pass the escape sequences to my terminal.

Ingvix commented 1 year ago

I've inspected the code a bit and it appears escape sequences are handled in vt.c while sending them to the terminal emulator is only done in dvtm.c when it sets the window title. Were I to attempt implementing this, should I follow the example of catching the escape sequence in vt.c and sending it forward in dvtm.c or would it be acceptable to printf() it in vt.c itself?

EDIT: Nevermind, I realized cursor type should be window dependent so it will require additions to both files.