Where did you get git code from?
Also try patch -l which might work if your mailer mangled the spaces.
-------- Original message --------
From: Lawrence Jacob Siebert <gryf...@gmail.com>
Date: 30/01/2014 10:30 (GMT+00:00)
To: Nicholas Marriott
<nicholas.marri...@gmail.com>,tmux-users@lists.sourceforge.net
Subject: Re: 256 colors in tty console?
Hi, sorry for the late response.
I get a patch failure on hunk #1 with both the 1.8 code and the development
version of the code.
I assume patch < fileWithYourPatch should work, right?
Thanks,
Lawrence
About Me: http://about.me/lawrencesiebert
Constantly Coding: http://constantcoding.blogspot.com
On Thu, Jan 16, 2014 at 3:11 AM, Nicholas Marriott <
nicholas.marri...@gmail.com> wrote:
> Hi
>
> fbterm uses some weird escape sequence to set 256 colours instead of the
> normal \033[38;5;Nm ANSI ones which are currently hardcoded into tmux.
>
> tmux could now probably use setaf and setab from terminfo for 256
> colours instead of hardcoding these, please see if this works:
>
>
> diff --git a/tty.c b/tty.c
> index 98f603f..13a9cd2 100644
> --- a/tty.c
> +++ b/tty.c
> @@ -1586,8 +1586,15 @@ tty_try_256(struct tty *tty, u_char colour, const
> char *type)
> !(tty->term_flags & TERM_256COLOURS))
> return (-1);
>
> +#if 0
> xsnprintf(s, sizeof s, "\033[%s;5;%hhum", type, colour);
> tty_puts(tty, s);
> +#else
> + if (*type == '3')
> + tty_putcode1(tty, TTYC_SETAF, colour);
> + else
> + tty_putcode1(tty, TTYC_SETAB, colour);
> +#endif
> return (0);
> }
>
>
>
>
> On Wed, Jan 15, 2014 at 09:28:50PM -0800, Lawrence Jacob Siebert wrote:
> > On Linux Mint (largely based on Ubuntu) I can switch to a virtual tty
> > console with Ctrl Alt F1. *I can use a program called fbterm to get
> 256
> > colors using a framebuffer (it requires a minor tweak in my kernel
> > settings in grub, but that's it)... and screen works with it, so I
> can get
> > 256 colors in screen in the consol
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users