diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-23 16:58:49 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2008-06-23 16:58:49 +0000 |
commit | 91f3165b2da17010fdb8d5d85e676fee442afcc4 (patch) | |
tree | 2e4e3be9ee0eb35252d97536a6d1934576390db8 /tty.c | |
parent | c24d849fa41114108b52a0a5e9256a7f0558b0d8 (diff) | |
download | rtmux-91f3165b2da17010fdb8d5d85e676fee442afcc4.tar.gz rtmux-91f3165b2da17010fdb8d5d85e676fee442afcc4.tar.bz2 rtmux-91f3165b2da17010fdb8d5d85e676fee442afcc4.zip |
IRIX fixes thanks to Elias Pipping.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,4 +1,4 @@ -/* $Id: tty.c,v 1.34 2008-06-22 16:54:08 nicm Exp $ */ +/* $Id: tty.c,v 1.35 2008-06-23 16:58:49 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -387,7 +387,7 @@ tty_set_title(struct tty *tty, const char *title) strcmp(tty->termname, "screen") != 0) return; - tty_puts(tty, "\e]0;"); + tty_puts(tty, "\033]0;"); tty_puts(tty, title); tty_putc(tty, '\007'); } @@ -591,11 +591,11 @@ tty_vwrite(struct tty *tty, struct screen *s, int cmd, va_list ap) #endif case TTY_MOUSEOFF: if (key_mouse != NULL) - tty_puts(tty, "\e[?1000l"); + tty_puts(tty, "\033[?1000l"); break; case TTY_MOUSEON: if (key_mouse != NULL) - tty_puts(tty, "\e[?1000h"); + tty_puts(tty, "\033[?1000h"); break; case TTY_ATTRIBUTES: ua = va_arg(ap, u_int); @@ -650,7 +650,7 @@ tty_attributes(struct tty *tty, u_char attr, u_char colr) fg = 7; if (fg == 8) - tty_puts(tty, "\e[39m"); + tty_puts(tty, "\033[39m"); else if (set_a_foreground != NULL) tty_puts(tty, tparm(set_a_foreground, fg)); } @@ -661,7 +661,7 @@ tty_attributes(struct tty *tty, u_char attr, u_char colr) bg = 0; if (bg == 8) - tty_puts(tty, "\e[49m"); + tty_puts(tty, "\033[49m"); else if (set_a_background != NULL) tty_puts(tty, tparm(set_a_background, bg)); } |