您的位置:首页 > 其它

How to change background color of gedit embedded terminal

2012-10-29 17:17 351 查看
coming from http://askubuntu.com/questions/35109/how-to-change-background-color-of-gedit-embedded-terminal

Q:

I am using gcc to compile c code that I am writing in gedit. My problem is that while my .c file is open in gedit, any command I type into my terminal just hangs until gedit is closed. Obviously it is quite cumbersome editing, saving, closing, running, reopening etc. I was wondering how I can have gedit open while compiling so I don't have to close it every time?

A:

This is for gedit 3

Same problem here white on light gray.
I manually edited
/usr/lib/gedit/plugins/terminal.py
. Terminal used is xterm.
Search for:
fg = context.get_color(Gtk.StateFlags.NORMAL) bg = context.get_background_color(Gtk.StateFlags.NORMAL)

I replace with
fg = Gdk.RGBA(0, 0, 0, 1) bg = Gdk.RGBA(1, 1, 1, 1)

Info:
fg
= black text,
bg
= white background本文出自 “左罗CTO” 博客,请务必保留此出处http://zorro.blog.51cto.com/2139862/1040712
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: