The Debian init scripts check for hpa terminfo attribute which is not
present in screen/screen-256color terminfo entry.

Because the scripts are simple and only use hpa and setaf, you can just
put "export TERM=ansi" at the top of your script and it should work
fine.

Alternatively you could build your own version of the screen terminfo
with hpa using infocmp and tic.


On Sun, Nov 17, 2013 at 06:59:42PM +0000, Sharon Kimble wrote:
> On Sun, 17 Nov 2013 18:43:59 +0000
> Nicholas Marriott <nicholas.marri...@gmail.com> wrote:
> 
> > What platform is this on? 
> 
> Debian testing, with fluxbox being the Desktop Environment. Its all in
> the sig.
> 
> Thanks
> Sharon.
> > 
> > 
> > On Sun, Nov 17, 2013 at 03:07:17PM +0000, Sharon Kimble wrote:
> > > On Sun, 17 Nov 2013 15:01:48 +0000
> > > Nicholas Marriott <nicholas.marri...@gmail.com> wrote:
> > > 
> > > > Show me the script please or enough of it to reproduce
> > > 
> > > Attached.
> > > 
> > > Thanks
> > > Sharon.
> > > > 
> > > > -------- Original message --------
> > > > From: Sharon Kimble <boudic...@talktalk.net> 
> > > > Date: 17/11/2013  14:43  (GMT+00:00) 
> > > > To: Nicholas Marriott
> > > > <nicholas.marri...@gmail.com>,tmux-users@lists.sourceforge.net
> > > > Subject: Re: No text colour in tmux window. 
> > > > On Sun, 17 Nov 2013 13:47:21 +0000
> > > > Nicholas Marriott <nicholas.marri...@gmail.com> wrote:
> > > > 
> > > > > It probably does something silly like whitelist particular TERM
> > > > > settings. Does it work if you run it with TERM set temporarily
> > > > > to xterm-256color inside tmux?
> > > > 
> > > > With 'set TERM xterm-256color' and I then run 'serv-status' it
> > > > makes no difference, just plain white output. Exactly the same as
> > > > if I'd piped it out to a text-file. 
> > > > 
> > > > Thanks
> > > > Sharon.
> > > > > 
> > > > > -------- Original message --------
> > > > > From: Sharon Kimble <boudic...@talktalk.net> 
> > > > > Date: 17/11/2013?? 13:32?? (GMT+00:00) 
> > > > > To: tmux-users@lists.sourceforge.net 
> > > > > Subject: No text colour in tmux window. 
> > > > >?? 
> > > > > 
> > > > > I have a script called 'serv-stats' which pages *all* the
> > > > > services on this box and shows what their current status is. In
> > > > > an 'evilvte' or 'xterm' window that script shows *all* the
> > > > > output coloured and with little [ok] status boxes. However,
> > > > > using the same shells but with tmux running in both, it only
> > > > > shows a white line of text and a bald statement like 'NTP
> > > > > server is running'. Why the difference please? 
> > > > > 
> > > > > I do have this line in my 'tmux.conf' - 'set -g default-terminal
> > > > > "screen-256color"' but it doesn't seem to have made any
> > > > > difference.
> > > > > 
> > > > > Ideas please?
> > > > > 
> > > > > Thanks
> > > > > Sharon.
> -- 
> ???A taste of linux = http://www.sharons.org.uk
> efever = http://www.efever.blogspot.com/
> efever = http://sharon04.livejournal.com/
> my git repo = https://github.com/boudiccas/dots
> Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.3.2
> Registered Linux user 561944



------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&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