Hi

What is TERM set to outside tmux in fbterm? I want to see what it looks
like to see if we can detect this.


On Thu, Jan 30, 2014 at 03:25:38AM -0800, Lawrence Jacob Siebert wrote:
>    Got it from source forge repository. * [1]tmux.sourceforge.net
>    I manually inserted the lines (into the dev version fwiw) and got it
>    working and it gives me 256 colors in a tty! So that's wonderful :-)*
>    Seriously, thank you very much.
>    just checked and patch -l works as well. **
>    Assuming there aren't any problems with it, I definitely would love to see
>    this incorporated into the next version of tmux.
>    Lawrence
>    About Me:*[2]http://about.me/lawrencesiebert
>    Constantly Coding:*[3]http://constantcoding.blogspot.com
> 
>    On Thu, Jan 30, 2014 at 2:49 AM, Nicholas Marriott
>    <[4]nicholas.marri...@gmail.com> wrote:
> 
>      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 <[5]gryf...@gmail.com>
>      Date: 30/01/2014 10:30 (GMT+00:00)
>      To: Nicholas Marriott
>      <[6]nicholas.marri...@gmail.com>,[7]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: [8]http://about.me/lawrencesiebert
>      Constantly Coding: [9]http://constantcoding.blogspot.com
> 
>      On Thu, Jan 16, 2014 at 3:11 AM, Nicholas Marriott <
>      [10]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
> 
> References
> 
>    Visible links
>    1. http://tmux.sourceforge.net/
>    2. http://about.me/lawrencesiebert
>    3. http://constantcoding.blogspot.com/
>    4. mailto:nicholas.marri...@gmail.com
>    5. mailto:gryf...@gmail.com
>    6. mailto:nicholas.marri...@gmail.com
>    7. mailto:tmux-users@lists.sourceforge.net
>    8. http://about.me/lawrencesiebert
>    9. http://constantcoding.blogspot.com/
>   10. mailto:nicholas.marri...@gmail.com

------------------------------------------------------------------------------
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

Reply via email to