Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know that Konsole supports an escape code like "\<Esc>]50;CursorShape=0\x7" that will change the cursor shape. I was wondering if any other terminal emulators support changing the cursor shape via an escape code?

share|improve this question
up vote 4 down vote accepted

The Linux VGA/framebuffer consoles use the Esc[?...c code.

xterm supports the VT520 sequence DECSCUSR Esc[... q since patch 282.

share|improve this answer
CL: Do you know of anything else besides xterm supporting the VT520 escape codes? – Zameer Manji Sep 30 '12 at 14:42
One would think that other terminals would want to be compatible with xterm, but I haven't found any that document this. – CL. Sep 30 '12 at 15:14
github.com/gnachman/iTerm2/pull/92 mentions that MinTTY/TeraTerm/RLogin support this too. – sendmoreinfo Jan 30 '13 at 21:54
I'd give my left nut for Terminal.app to support this on OS X. – ELLIOTTCABLE Mar 10 '13 at 5:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.