How to change background color of gedit embedded terminal

 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

你可能感兴趣的:(color,embedded,Terminal,gedit,backgroud)