From 2aeb08a54bc59f7c1b0018ab08bc97d30408a353 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 9 Oct 2008 22:03:36 +0000 Subject: [PATCH] I don't like this... --- tty.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tty.c b/tty.c index 6477cbde..6816b46f 100644 --- a/tty.c +++ b/tty.c @@ -1,4 +1,4 @@ -/* $Id: tty.c,v 1.46 2008-10-09 22:00:33 nicm Exp $ */ +/* $Id: tty.c,v 1.47 2008-10-09 22:03:36 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -1016,12 +1016,15 @@ tty_attributes_bg(struct tty *tty, const struct grid_cell *gc) bg = colour_translate256(bg); if (bg & 8) { /* - * Bold background; not sure how widely this is - * supported... + * Bold background; can't do this on standard + * terminals... */ +#if 0 xsnprintf(s, sizeof s, "\033[%hhum", 92 + bg); tty_puts(tty, s); return; +#endif + bg &= 7; } }