=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/screen.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -r1.20 -r1.21 --- src/usr.bin/tmux/screen.c 2011/05/20 19:03:58 1.20 +++ src/usr.bin/tmux/screen.c 2011/05/20 19:17:39 1.21 @@ -1,4 +1,4 @@ -/* $OpenBSD: screen.c,v 1.20 2011/05/20 19:03:58 nicm Exp $ */ +/* $OpenBSD: screen.c,v 1.21 2011/05/20 19:17:39 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -40,6 +40,7 @@ else s->title = xstrdup(""); + s->cstyle = 0; s->ccolour = xstrdup(""); s->tabs = NULL; @@ -89,6 +90,14 @@ fatal("bit_alloc failed"); for (i = 8; i < screen_size_x(s); i += 8) bit_set(s->tabs, i); +} + +/* Set screen cursor style. */ +void +screen_set_cursor_style(struct screen *s, u_int style) +{ + if (style <= 4) + s->cstyle = style; } /* Set screen cursor colour. */