highlight not working in screen on CentOS 6
What steps will reproduce the problem?
1. Install screen (I using the latest version screen-4.0.3-16.el6.x86_64)
2. run command "screen".
3. Under screen run some code, for example: EXAMPLE-BOX.py
What is the expected output? What do you see instead?
I not see highlight near cursor.
What version of the product are you using? On what operating system?
npyscreen 4.6.1, python 2.6 and trying 2.7, CentOS 6.5
Original issue reported on code.google.com by [email protected] on 31 Oct 2014 at 6:00
This bug is certainly caused by your TERM environment variable setting within
screen.
Try typing:
export TERM=xterm-256color
and then seeing if it improves things.
Original comment by nicholas.cole on 31 Oct 2014 at 6:30
Thanks for your fast answer. Yes, for now I see highlight, but something wrong
with background color. I attached screen-shot.
Original comment by [email protected] on 1 Nov 2014 at 11:41
Attachments:
What terminal are you using?
The answer will be a TERM value setting. You can try TERM=xterm or
TERM=xterm-color, but the correct value will actually depend on the terminal.
Original comment by nicholas.cole on 1 Nov 2014 at 1:55
[deleted comment]
Yes, with TERM=xterm-color all is OK. Thank you for help and for this nice
library!
Original comment by [email protected] on 1 Nov 2014 at 3:23
This is because the 'screen' termcap has issues with highlighting. For using screen, you should be able to use a termcap like TERM=screen.xterm inside screen if you have TERM=xterm outside of screen. If you're using tmux, than just use TERM=tmux (needs to be manually compiled for OS X), which doesn't have the problem