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][email protected]>
> 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][email protected]> 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][email protected]>
> > * *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][email protected]> 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][email protected]> 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][email protected]
> > * * * *> * * *>
> > * * *
> *[6][10][12]https://lists.sourceforge.net/lists/listinfo/tmux-users
> > * * * *>
> > * * * *> References
> > * * * *>
> > * * * *> * *Visible links
> > * * * *> * *1. mailto:[11][13][email protected]
> > * * * *> * *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][email protected]
> > * * * *> * *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][email protected]
> > * *3. [21]http://code.google.com/p/mintty/wiki/CtrlSeqs#Cursor_style
> > * *4. mailto:[22][email protected]
> > * *5. mailto:[23][email protected]
> > * *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][email protected]
> > * 10. [28]https://lists.sourceforge.net/lists/listinfo/tmux-users
> > * 11. mailto:[29][email protected]
> > * 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][email protected]
> > * 16. [34]https://lists.sourceforge.net/lists/listinfo/tmux-users
>
> References
>
> Visible links
> 1. mailto:[email protected]
> 2. mailto:[email protected]
> 3. http://vt100.net/docs/vt510-rm/DECSCUSR*
> 4. mailto:[email protected]
> 5. http://code.google.com/p/mintty/wiki/CtrlSeqs#Cursor_style*
> 6. mailto:[email protected]
> 7. mailto:[email protected]
> 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:[email protected]
> 12. https://lists.sourceforge.net/lists/listinfo/tmux-users
> 13. mailto:[email protected]
> 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:[email protected]
> 18. https://lists.sourceforge.net/lists/listinfo/tmux-users
> 19. http://vt100.net/docs/vt510-rm/DECSCUSR
> 20. mailto:[email protected]
> 21. http://code.google.com/p/mintty/wiki/CtrlSeqs#Cursor_style
> 22. mailto:[email protected]
> 23. mailto:[email protected]
> 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:[email protected]
> 28. https://lists.sourceforge.net/lists/listinfo/tmux-users
> 29. mailto:[email protected]
> 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:[email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users