I think it is probably safe enough to allow any value through.
On Fri, Mar 16, 2012 at 10:42:26AM -0400, Michael Krysiak wrote: > I was able to get it working with a one line patch to screen.c, but I > wouldn't recommend this to anyone since I'm not knowledgeable enough to > know the side effects. > --- screen.c.orig * * * 2012-03-16 09:29:58.151917000 -0400 > +++ screen.c * *2012-03-16 09:30:09.208923000 -0400 > @@ -97,7 +97,7 @@ > *void > *screen_set_cursor_style(struct screen *s, u_int style) > *{ > - * * * if (style <= 4) > + * * * if (style <= 6) > * * * * * * * * s->cstyle = style; > *} > On Fri, Mar 16, 2012 at 8:36 AM, Michael Krysiak <[1]mrk...@gmail.com> > wrote: > > I'm completely new to this stuff, so I'm not sure what the proper > behavior is supposed to be, but from a quick experiment using Cygwin's > xterm, it behaved just like tmux did; 0-4 work, 5 and 6 don't change > anything. > On Fri, Mar 16, 2012 at 8:17 AM, Nicholas Marriott > <[2]nicholas.marri...@gmail.com> wrote: > > Yes, that's right. We can allow higher values through, but what do > they > do on other terminals like xterm? > > On Fri, Mar 16, 2012 at 07:39:57AM -0400, Michael Krysiak wrote: > > * *After a bit more research, it looks like the mintty docs show a 5 > and 6, > > * *but the official docs only show 0-4. * > > * *[1][3]http://vt100.net/docs/vt510-rm/DECSCUSR* > > > > * *On Fri, Mar 16, 2012 at 6:02 AM, Michael Krysiak > <[2][4]mrk...@gmail.com> > > * *wrote: > > > > * * *I got it from* > > * * > *[3][5]http://code.google.com/p/mintty/wiki/CtrlSeqs#Cursor_style* > > > > * * *On Fri, Mar 16, 2012 at 5:40 AM, Nicholas Marriott > > * * *<[4][6]nicholas.marri...@gmail.com> wrote: > > > > * * * *6 is not a valid cursor style, only 0-4. where did you get 6 > from? > > > > * * * *On Fri, Mar 16, 2012 at 05:22:49AM -0400, Michael Krysiak > wrote: > > * * * *> * *I'm using mintty with xterm-256colors and en_US.UTF-8. > *My > > * * * *ultimate goal > > * * * *> * *is to have my Vim cursor change to a vertical line in > insert mode > > * * * *and a > > * * * *> * *block in command mode, and this works fine outside of > tmux but > > * * * *fails with > > * * * *> * *it. *However, the problem can be reproduced without the > > * * * *additional Vim > > * * * *> * *layer. > > * * * *> * *Without tmux (cursor starts as a block): > > * * * *> * *$ echo -n -e '\033[4 q' *#Works. *Cursor is now an > underline > > * * * *> * *$ echo -n -e '\033[6 q' *#Works. *Cursor is now a > vertical line > > * * * *> * *$ echo -n -e '\033[2 q' *#Works. *Cursor is back to a > block > > * * * *> * *With tmux (cursor starts as a block): > > * * * *> * *$ tmux > > * * * *> * *$ echo -n -e '\033[4 q' *#Works. *Cursor is now an > underline > > * * * *> * *$ echo -n -e '\033[6 q' *#Does not works. *Cursor > remains an > > * * * *underline > > * * * *> * *$ echo -n -e '\033[2 q' *#Works. *Cursor is back to a > block > > * * * *> > > * * * *> * *On Fri, Mar 16, 2012 at 3:33 AM, Nicholas Marriott > > * * * *> * *<[1][5][7]nicholas.marri...@gmail.com> wrote: > > * * * *> > > * * * *> * * *Can you give me a clear sequence of commands that > shows the > > * * * *problem? > > * * * *> * * *Also what terminal are you using? > > * * * *> > > * * * *> * * *On Thu, Mar 15, 2012 at 10:43:40PM -0400, Michael > Krysiak > > * * * *wrote: > > * * * *> * * *> * *I'm currently unable to change my cursor to line > in tmux > > * * * *1.6 when > > * * * *> * * *using > > * * * *> * * *> * *'\033[6 q' as defined in* > > * * * *> * * *> * > *[1][2][6][8]http://code.google.com/p/mintty/wiki/CtrlSeqs, > > * * * *but the block > > * * * *> * * *(\033[0 q) > > * * * *> * * *> * *and underline (\033[4 q) work as expected. *If I > set my > > * * * *cursor to a > > * * * *> * * *line > > * * * *> * * *> * *(echo -n -e '\033[6 q') prior to starting tmux, > then it > > * * * *remains a > > * * * *> * * *line > > * * * *> * * *> * *once in tmux. *However as soon as I set it to a > block or > > * * * *underline, > > * * * *> * * *I'm no > > * * * *> * * *> * *longer able to set it back to a line. > > * * * *> * * *> * *I haven't been able to find anything in the > source that > > * * * *could be > > * * * *> * * *causing > > * * * *> * * *> * *this issue. *Does anyone have any ideas? > > * * * *> * * *> > > * * * *> * * *> References > > * * * *> * * *> > > * * * *> * * *> * *Visible links > > * * * *> * * *> * *1. > [3][7][9]http://code.google.com/p/mintty/wiki/CtrlSeqs > > * * * *> > > * * * *> * * *> > > * * * *> * * > > * * * > > **------------------------------------------------------------------------------ > > * * * *> * * *> This SF email is sponsosred by: > > * * * *> * * *> Try Windows Azure free for 90 days Click Here > > * * * *> * * *> [4][8][10]http://p.sf.net/sfu/sfd2d-msazure > > * * * *> > > * * * *> * * *> _______________________________________________ > > * * * *> * * *> tmux-users mailing list > > * * * *> * * *> [5][9][11]tmux-users@lists.sourceforge.net > > * * * *> * * *> > > * * * > *[6][10][12]https://lists.sourceforge.net/lists/listinfo/tmux-users > > * * * *> > > * * * *> References > > * * * *> > > * * * *> * *Visible links > > * * * *> * *1. mailto:[11][13]nicholas.marri...@gmail.com > > * * * *> * *2. [12][14]http://code.google.com/p/mintty/wiki/CtrlSeqs > > * * * *> * *3. [13][15]http://code.google.com/p/mintty/wiki/CtrlSeqs > > * * * *> * *4. [14][16]http://p.sf.net/sfu/sfd2d-msazure > > * * * *> * *5. mailto:[15][17]tmux-users@lists.sourceforge.net > > * * * *> * *6. > [16][18]https://lists.sourceforge.net/lists/listinfo/tmux-users > > > > References > > > > * *Visible links > > * *1. [19]http://vt100.net/docs/vt510-rm/DECSCUSR > > * *2. mailto:[20]mrk...@gmail.com > > * *3. [21]http://code.google.com/p/mintty/wiki/CtrlSeqs#Cursor_style > > * *4. mailto:[22]nicholas.marri...@gmail.com > > * *5. mailto:[23]nicholas.marri...@gmail.com > > * *6. [24]http://code.google.com/p/mintty/wiki/CtrlSeqs > > * *7. [25]http://code.google.com/p/mintty/wiki/CtrlSeqs > > * *8. [26]http://p.sf.net/sfu/sfd2d-msazure > > * *9. mailto:[27]tmux-users@lists.sourceforge.net > > * 10. [28]https://lists.sourceforge.net/lists/listinfo/tmux-users > > * 11. mailto:[29]nicholas.marri...@gmail.com > > * 12. [30]http://code.google.com/p/mintty/wiki/CtrlSeqs > > * 13. [31]http://code.google.com/p/mintty/wiki/CtrlSeqs > > * 14. [32]http://p.sf.net/sfu/sfd2d-msazure > > * 15. mailto:[33]tmux-users@lists.sourceforge.net > > * 16. [34]https://lists.sourceforge.net/lists/listinfo/tmux-users > > References > > Visible links > 1. mailto:mrk...@gmail.com > 2. mailto:nicholas.marri...@gmail.com > 3. http://vt100.net/docs/vt510-rm/DECSCUSR* > 4. mailto:mrk...@gmail.com > 5. http://code.google.com/p/mintty/wiki/CtrlSeqs#Cursor_style* > 6. mailto:nicholas.marri...@gmail.com > 7. mailto:nicholas.marri...@gmail.com > 8. http://code.google.com/p/mintty/wiki/CtrlSeqs > 9. http://code.google.com/p/mintty/wiki/CtrlSeqs > 10. http://p.sf.net/sfu/sfd2d-msazure > 11. mailto:tmux-users@lists.sourceforge.net > 12. https://lists.sourceforge.net/lists/listinfo/tmux-users > 13. mailto:nicholas.marri...@gmail.com > 14. http://code.google.com/p/mintty/wiki/CtrlSeqs > 15. http://code.google.com/p/mintty/wiki/CtrlSeqs > 16. http://p.sf.net/sfu/sfd2d-msazure > 17. mailto:tmux-users@lists.sourceforge.net > 18. https://lists.sourceforge.net/lists/listinfo/tmux-users > 19. http://vt100.net/docs/vt510-rm/DECSCUSR > 20. mailto:mrk...@gmail.com > 21. http://code.google.com/p/mintty/wiki/CtrlSeqs#Cursor_style > 22. mailto:nicholas.marri...@gmail.com > 23. mailto:nicholas.marri...@gmail.com > 24. http://code.google.com/p/mintty/wiki/CtrlSeqs > 25. http://code.google.com/p/mintty/wiki/CtrlSeqs > 26. http://p.sf.net/sfu/sfd2d-msazure > 27. mailto:tmux-users@lists.sourceforge.net > 28. https://lists.sourceforge.net/lists/listinfo/tmux-users > 29. mailto:nicholas.marri...@gmail.com > 30. http://code.google.com/p/mintty/wiki/CtrlSeqs > 31. http://code.google.com/p/mintty/wiki/CtrlSeqs > 32. http://p.sf.net/sfu/sfd2d-msazure > 33. mailto:tmux-users@lists.sourceforge.net > 34. https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users