Ubuntu :: Edit Background Color Of Some Textual Output In Terminal?
Dec 28, 2010
When I type (in new 10.10) soem cmdline comands like "ls -l" then some of the directories have a different fore-and background color (e.g. black on green) while the remaining other directoreis are blue on white.
Where can I find out the meaning of the diferent colors and how can I change them?
If I go to menu
Terminal->Edit->Profile Preferences->Color
then I can set only the full overall background and foreground color. But here only certain parts have a different color. the main color (black on white) is suitable. I do not use system theme.
I am using the screen app, and have set bce to on, and issued the following commands to set my background and foreground color: tput setab 4; clear; tput setaf 7; clear;
This temporarily sets everything properly on my screen. However, when I issue any commands that change or set their own background color (for example, when I issue an "ls" command with colorized output), the background color gets lost for any new output and I have to reissue the commands listed above in order to retrieve my background color.Ideally I'd like to keep my background color when issuing these commands, as it serves as a good way to remind me of what environment I am currently issuing commands in.
I don't know much about scripting and so despite my best efforts i can't seem to get my script right and I was wondering how to do the following:at startup set the background color to a certain hex valueover time cycle through the entire range of possible values from (0x000000 to 0xFFFFFF)do this slowly, not abruptlystart the script every time I loginI know I need to use gconftool-2 -t str --set /desktop/gnome/background/primary_color "#$COLOR"where COLOR is a hex value variablebut really beyond that the specifics of how to time the updating of the hex value or whether a variable can be a hex value at all (if not how to work around that).
would anyone know how to change the widget plotter background color? I used to be able to do it in 9.10 by doing a right click/properties/advanced. In Lucid, I no longer see that advanced tab so I have no idea how to change that widget gray color? has this functionality moved somewhere else?? I looked all over the place in System Settings but I can't find anything.
I'm using xterm/screen/vim, and set them up to 256 color mode. Everything went well, except when background color for the theme I choose is not black.
Here's the theme I use in this example:[URL].. Here's the situation: as long as I only use vim, the background is well rendered, meaning everything is grey in vim background. But when I try this with screen, the background is back to black, and only the text get some kind of highlight with the background color.Here are the magical lines I added to screenrc:
Code: term screen-256color attrcolor b ".I" # Tell screen how to set colors. AB = background, AF=foreground termcapinfo xterm 'Co#256:AB=E[48;5;%dm:AF=E[38;5;%dm' # Erase background with current bg color. Not needed if TERM=screen-256color defbce "on"
Colors are well rendered in 256 color, I only have a problem with this background. Anyone knows how to 'fix' this?
I am using amd64 ubuntu 10.04. My problem is that whenever I change desktop backgrounds, after about 1 - 3 mins, the background just fades into the default color you pick for your desktop.
I know how to change the colors of the panels. But on the parts were the ubuntu symbol, the menus (Applications, Places, and Systems), the date and time, and the indicator applets is, they do not change at all. And pretty much the same problem on the bottom panel.
I tried Gnome color changer but only works for the texts and the drop down menus. I use Gnome classic (hated Unity). My goal is to make ALL of the panel background black.
I use a terminal with white text on black background (I just like it better), so I wrote the following line in my .vimrc file: set background=dark
However, gvim has black on white text. How do I do either of the following: Set the background of gvim to black Check in .vimrc if I'm using gvim I tried this: I started up gvim, and typed echo &term. The answer was "builtin_gui". So I wrote the following into .vimrc:
if &term == "builtin_gui" set background=light else set background=dark endif
I have Ubuntu Tweak installed but it only lets me change the login background to an image. Is it possible to use a color in hex?I am using Ubuntu 10.10.
I use ssh via KDE 4.4.3 konsole to connect to a 2.6.28-18-generic Ubuntu SMP machine,on which I use vim 7.2 and screen 4.00.03jw4. Within a screen session, the background color persists on the screen session even after closing vim. I dont know if this is a konsole or bash or screen or vim colorscheme problem.
I have 1000 jpg files in which all have a white background. Is is possible to change the white background color to red (for example) of all the files in order not to have to do it one by one ?
I would prefer to use Linux but I can handle Windows.
For example, change this Logo with white background to red background.
How can I edit the system proxy setting using the terminal? Which file contains this settings? I want to edit this automatically using cronjobs, cause from 8-5 I need to use a proxy, but at home I don't need the proxy. How do I fix this?
so I found this applescript somewhere, and not knowing applescript I was wondering if someone could tell me what the edits I need to make to duplicate the functionality found in the perl script which follows the applescript. (ie. I want to cycle through the colors in the same sequence)
Applescript (written by someone else for OS X)
Code: tell application "System Events" set theDesktopPlist to property list file "~/Library/Preferences/com.apple.desktop.plist" set theGivenDesktop to property list item "desktopCode" of property list item "Background" of theDesktopPlist try set theColorArray to property list item "BackgroundColor" of theGivenDesktop on error
Just upgraded to Debian Jessie. I'm having a problem with the desktop and lockscreen that I never had before in Debian 7. Whenever I open the laptop to wake it up, there is very bad discoloration of the background. (screenshot : [URL] ..... )
Hardware is an IBM Lenovo T410 with no customizations. The graphics are factory nvidia. 3D acceleration works flawlessly, and I have no other issues except this background problem.
------------------------ HARDWARE
$ nvidia-detect Detected NVIDIA GPUs: 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT218M [NVS 3100M] [10de:0a6c] (rev a2) Your card is supported by the default drivers and legacy driver series 304.
I am using export in 'Inkscape' to convert an SVG file to PNG. As I am using a transparent background, the colour of background is automatically set to yellow. I want to change this default colour to white. How can I do this?
For some reason bash is acting really really weird. When I use my gui terminal, and I tryto use tab completion, it freezes up the terminal, and I can't edit the line at all unless I do a ctrl+c.and when I try to do tab completion in text only mode it prints out : "Error: Can't open display: (null)"again and again and again, and I have to do a ctrl+c, also in text only mode it will randomly log me out. I have tried checking for blown caps, but there weren't any, and all the other programs work fine except for the command line. I am using bash version: 4.1.5(1)-releaseand gnome-terminal version: 2.30.2
the grub splash screen is too dark with very light colored text. i wanted to edit the screen background but there is no menu.lst. what file is shown by grub ?
by the way it works very well and has really scanned the complete computer for bootable partitions. and all work without any modification.
I want to install Gnome Color Chooser so I can edit the task bars text colors and what not. I have Compiz Fusion and Screenlets ready to go as well as my NVIDIA driver installed.
I cant find the latest version pre-packaged as a .rpm. How do I install it from a .tar.gz?
Is there a way to color particular words printed on console based on user preference? For example I need to color text 'error' when a particular program is compiled.
When in the interactive envirment, my Input and Output are all mess-up. So i want to color the Input and Output with two different colors.. so i can figure them out..
I am writing a bash script that utilizes the output of another script (which I will refer to as script#2.) Script#2 is not owned by me, I cannot modify it. All of the output from script#2 is blue, which makes it difficult for me to read.
I would like to have the output of it changed to grey. Is there a way I can do that in my script? A command I can pipe the output to?
Edit: One other question related to this. I put a trap function in my script that works well. Script#2 essentially runs a tail -f. When I ctrl+c to stop it, it stops script#2 and never calls the trap in my script. Is there any way I can work around that?