Support Forums
Set the default for shell bg and fg - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Computer Support Topics (https://www.supportforums.net/forumdisplay.php?fid=4)
+---- Forum: Linux, FreeBSD, and Unix (https://www.supportforums.net/forumdisplay.php?fid=17)
+---- Thread: Set the default for shell bg and fg (/showthread.php?tid=2717)



Set the default for shell bg and fg - Phyrrus - 11-08-2009

Ok, i currently have to run xterm -fg white -bg black how do i make these changes work when i just run xterm?


RE: Set the default for shell bg and fg - manipulate - 11-09-2009

Stop using xterm.


RE: Set the default for shell bg and fg - Phyrrus - 11-09-2009

why,, I use xterm because i can align it with my other windows.


RE: Set the default for shell bg and fg - g4143 - 11-09-2009

You look into the /etc/X11/Xresources file

Or you could write a small script and call the script

Code:
#!/bin/bash

xterm -bg green -fg yellow

This is the script I'm using for my Mandriva WMII setup which uses Xterm

Code:
#!/bin/bash

xterm -bg black -fg green -font -*-courier-*-*-*-*-18-*-*-*-*-*-*-* -geometry 70x24



RE: Set the default for shell bg and fg - Phyrrus - 11-09-2009

Thanks.. but this dosn't help.


RE: Set the default for shell bg and fg - manipulate - 11-10-2009

Why doesn't this solution help, nobody can help you if you don't give any information.