au-phiware / fbterm

Automatically exported from code.google.com/p/fbterm
GNU General Public License v2.0
1 stars 0 forks source link

Add --256-color option to set TERM=fbterm #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
the 256-color mode (by setting TERM=fbterm) is rather useful.
Wonder if you would add an option to set TERM=fbterm ?
Like this:

$ fbterm
 -> TERM=linux

$ fbterm --256-color
 -> TERM=fbterm

Original issue reported on code.google.com by oldh...@gmail.com on 24 Feb 2010 at 7:35

GoogleCodeExporter commented 9 years ago
executing 'fbterm --256-color' is better than 'TERM=fbterm fbterm' ?

Original comment by zgchan...@gmail.com on 25 Feb 2010 at 10:36

GoogleCodeExporter commented 9 years ago
@zgchan317,
'TERM=fbterm fbterm' won't work.
TERM still equals "linux" in that fbterm.

Original comment by oldh...@gmail.com on 25 Feb 2010 at 12:16

GoogleCodeExporter commented 9 years ago
It seems like the init script of your shell overrides the value of TERM. 
Addition of a  
256-color option won't fix this problem, because it just does the same work 
with 
'TERM=fbterm fbterm'.

To enable 256 color mode only when fbterm is active, you may execute 'FBTERM=1 
fbterm', and add  '[ -n "$FBTERM"] && export TERM=fbterm' to the end of 
~/.bashrc 
if the shell is bash.

Original comment by zgchan...@gmail.com on 26 Feb 2010 at 10:56

GoogleCodeExporter commented 9 years ago
OK, solved.
Thanks!

Original comment by oldh...@gmail.com on 26 Feb 2010 at 3:46

GoogleCodeExporter commented 9 years ago

Original comment by zgchan...@gmail.com on 6 Oct 2010 at 4:14

GoogleCodeExporter commented 9 years ago
> It seems like the init script of your shell overrides the value of TERM. 
Addition of a 256-color option won't fix this problem, because it just does the 
same work with 'TERM=fbterm fbterm'.

It seems that this is merely because fbterm itself directly sets $TERM to 
`linux' no matter what $TERM has already been (see issue 48).

Original comment by CasperVector on 29 Jan 2012 at 8:38