Permalink
Browse files

Record the codes needed blinking cursors from xterm.

  • Loading branch information...
jszakmeister committed Jan 21, 2013
1 parent 5cd6ace commit 6882fbb62786d0a3bff0ec7691aabe2a59b8ef3e
Showing with 7 additions and 0 deletions.
  1. +7 −0 plugin/togglecursor.vim
View
@@ -19,10 +19,17 @@ let s:cursorshape_block = "\<Esc>]50;CursorShape=0\x7"
let s:cursorshape_enableblink = "\<Esc>]50;BlinkingCursorEnabled=1\x7"
let s:cursorshape_disableblink = "\<Esc>]50;BlinkingCursorEnabled=0\x7"
+" Note: newer iTerm's support the DECSCUSR extension (same one used in xterm).
+
let s:xterm_underline = "\<Esc>[4 q"
let s:xterm_line = "\<Esc>[6 q"
let s:xterm_block = "\<Esc>[2 q"
+" Not used yet, but don't want to forget them.
+let s:xterm_blinking_block = "\<Esc>[0 q"
+let s:xterm_blinking_line = "\<Esc>[5 q"
+let s:xterm_blinking_underline = "\<Esc>[3 q"
+
let s:in_tmux = exists("$TMUX")
let s:supported_terminal = ''

0 comments on commit 6882fbb

Please sign in to comment.