You are not logged in.

#1 2010-06-04 03:54:51

yagmot
Member
From: Tokyo, Japan
Registered: 2010-05-18
Posts: 9
Website

256 colors in gnu screen (launched from console)?

have been using screen a lot lately, especially with the wonderful byobu package. but i have a bit of a strange issue. 256 colors works great if i'm using ssh to access the box. but if i'm physically on it, 256 colors does not work. i don't see the point of using screen inside of X11, so we're talking about screen being launched from the command line right after login.

Offline

#2 2010-06-04 06:10:27

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: 256 colors in gnu screen (launched from console)?

You need to use a framebuffer.

Offline

#3 2010-06-05 02:53:09

yagmot
Member
From: Tokyo, Japan
Registered: 2010-05-18
Posts: 9
Website

Re: 256 colors in gnu screen (launched from console)?

I'm using KMS since I have an Intel card. So does this basically mean that if I want to be able to use X, I have to keep KMS, but if I want to get 256 colors in the console that I need to use a framebuffer? effectively making me choose one or the other?

Offline

#4 2010-06-05 03:05:50

gonX
Member
From: Denmark
Registered: 2009-08-16
Posts: 112

Re: 256 colors in gnu screen (launched from console)?

Just a shot in the dark, but what happens if you disable KMS? (intel.modeset=0 on kernel line if you're running i915)

Last edited by gonX (2010-06-05 03:06:01)


since 2009

Offline

#5 2010-06-05 05:10:49

yagmot
Member
From: Tokyo, Japan
Registered: 2010-05-18
Posts: 9
Website

Re: 256 colors in gnu screen (launched from console)?

i'm experiencing some odd behavior with the i915.modeset in the kernel line. if left out, set to 0, or set to 1, nothing changes when i'm logged on directly. but when i ssh into the box, it's having a strange effect. if it is set to 0 or left out, i get full 256 color support, but if i set it to 1 i only get 256 colors in some places. for instance, my screen hardstatus shows up correctly, but vim colors are mangled.

Last edited by yagmot (2010-06-05 05:15:36)

Offline

#6 2010-06-09 05:40:17

yagmot
Member
From: Tokyo, Japan
Registered: 2010-05-18
Posts: 9
Website

Re: 256 colors in gnu screen (launched from console)?

bump. any ideas?

Offline

#7 2010-06-09 06:00:50

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: 256 colors in gnu screen (launched from console)?

yagmot wrote:

ISo does this basically mean that if I want to be able to use X, I have to keep KMS, but if I want to get 256 colors in the console that I need to use a framebuffer? effectively making me choose one or the other?

No, no, and no.
If you're using KMS you are using the kms own framebuffer.
If I recall correctly you can't use the normal escape sequences there though (\033[38;5;100m), there were some special ones invented...

Offline

#8 2010-06-15 03:27:35

bzklrm
Member
From: Australia
Registered: 2005-04-18
Posts: 36

Re: 256 colors in gnu screen (launched from console)?

dmz wrote:

If I recall correctly you can't use the normal escape sequences there though (\033[38;5;100m), there were some special ones invented...

So does that mean that we can't use any ncurses program with full color
support? I've been unsuccessful at finding any information about this.

Offline

#9 2010-06-15 08:48:43

dmz
Member
From: Sweden
Registered: 2008-08-27
Posts: 881
Website

Re: 256 colors in gnu screen (launched from console)?

bzklrm wrote:
dmz wrote:

If I recall correctly you can't use the normal escape sequences there though (\033[38;5;100m), there were some special ones invented...

So does that mean that we can't use any ncurses program with full color
support? I've been unsuccessful at finding any information about this.

I'm not sure - but, uh, it should be possible.
Maybe... try fbterm. Be warned though, when I did, I got all sorts of strange
problems (kernel panic, for example smile).

You can however use colorschemes in the TTY... you can check out my halfhearted
project here: http://github.com/trapd00r/ttycolor

Offline

#10 2010-07-12 15:00:42

AskApache
Member
Registered: 2009-10-18
Posts: 16
Website

Re: 256 colors in gnu screen (launched from console)?

The solution that I use is to install ratpoison.  Any terminal (konsole, xterm, aterm, rxvt, terminal) program run from within X correctly shows the 256colors.  It will also work from ssh. 
I think the problem is in the way the TTY's are being initiated by the sysinit process of ARCH.  Because ssh shows 256, so does terminals within X.   But screen will not show 256colors if run from console.  Screen over ssh or within Xterm shows 256 fine.  It seems all the other terminal capabiliites (blink, bold, underline, reverse, civvis, cnorm, etc..) work fine. 

I have been unable to get 256colors working on 2.6.34-ARCH ( tried with intel i915 pc, ACER Aspire 3000 SISFB, and ATI Radeon PC's) from the console.
I have tried fbgetty, fgetty, mingetty, agetty.  I have used framebuffers, sisfb, fbcon, inteldrmfb, fbdev, vesafb, and uvesafb trying 1 of the 6 TERM's that I use (mostly xterm-256color and putty-256color).


Stumped.

Offline

#11 2010-07-12 15:13:11

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: 256 colors in gnu screen (launched from console)?

fbterm works fine for me, with the added bonus that I get to use better fonts.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

Board footer

Powered by FluxBB