Advertisement
Guest User

Untitled

a guest
Jun 13th, 2013
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. = How to change xterm's cursor to an I-beam or vertical bar =
  2.  
  3. Posting the answer I found so others can find the answer as well.
  4.  
  5. You can change the cursor by inserting one of the following lines in your ~/.bashrc file (if you use bash):
  6.  
  7. echo -e -n "\x1b[\x30 q" # changes to blinking block
  8. echo -e -n "\x1b[\x31 q" # changes to blinking block also
  9. echo -e -n "\x1b[\x32 q" # changes to steady block
  10. echo -e -n "\x1b[\x33 q" # changes to blinking underline
  11. echo -e -n "\x1b[\x34 q" # changes to steady underline
  12. echo -e -n "\x1b[\x35 q" # changes to blinking bar
  13. echo -e -n "\x1b[\x36 q" # changes to steady bar
  14.  
  15. References:
  16.  
  17. https://code.google.com/p/iterm2/issues/detail?id=2248
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement