Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to switch $BLACK and $WHITE #11

Open
tyilo opened this issue Jun 16, 2013 · 3 comments
Open

Option to switch $BLACK and $WHITE #11

tyilo opened this issue Jun 16, 2013 · 3 comments

Comments

@tyilo
Copy link
Contributor

tyilo commented Jun 16, 2013

Gdbinit currently references $BLACK three places, as $COLOR_REGVAL and two times in context, while $WHITE isn't used anywhere.

My terminals background color is black, so I can't see the black text without selecting it.

I propose you add an option (eg. $BLACK_BACKGROUND) which when set, switches $BLACK and $WHITE, so people with black terminals, can see the text.

@gdbinit
Copy link
Owner

gdbinit commented Jun 17, 2013

Good idea, let me work on something :-)

@gdbinit
Copy link
Owner

gdbinit commented Jun 17, 2013

Hummm, I was just testing it. You can do something to workaround this to avoid adding this kind of cases to the main code. Just create a ~/.gdbinit.local to set your colors. That will be compatible with any new versions since the vars will be overridden with that local config file.

CHANGME: If you want to modify the "theme" change the colors here

or just create a ~/.gdbinit.local and set these variables there

set $COLOR_REGNAME = $GREEN
set $COLOR_REGVAL = $BLACK <- change to $WHITE
set $COLOR_REGVAL_MODIFIED = $RED
set $COLOR_SEPARATOR = $BLUE
set $COLOR_CPUFLAGS = $RED

@tyilo
Copy link
Contributor Author

tyilo commented Jun 17, 2013

The problem is the two uses of $BLACK in context (under some objc stuff) which requires you to change $BLACK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants