How do you go about configuring colours for terminal [applications]?

I figured this might be the best place to ask but I'm not sure.
I'm using termite, and it has 256 colours predefined. I have always thought that I better define my own colours (override defaults), because the defaults didn't immediately look nice. However, I recently discovered that for example the vim plugin "vim-airlineish" uses colour 55, which matches the screenshots of the plugin - so default colour scheme is assumed. So I'm wondering if this default colour scheme is some kind of global, well known default? And does it perhaps have properties, like: you will most likely find a colour close to the one you want in there, or something else? Is there a name for it?
http://a.pomf.se/dmahvz.png
So what I'm really wondering, is: what is the preferred way to configure the colours of console applications?
Should I leave the default theme as it is and search for the colours I want in this colour scheme?
Or should I find my own set of colours, and choose amongst these when configuring specific applications? This is what I've been doing so far, and for example, I wanted a greenish theme on my desktop, but the default colour scheme doesn't seem to hold a wide spectrum of green colours. (following picture is from my current colours, which I recently set and which I am not really that satisfied with)
http://a.pomf.se/rpeisv.png
Or should I override colours as I need specific colours? An ideal way - but pretty unorderly - to design for instance a colour scheme for coding, would maybe be to use gcolor2/3 to choose any colour that you need, and then put it in the colour scheme. If you could do that easily but you can't really - you have to go through a moderate amount of steps to change one colour, and in the long run of revising, revising, it's just a hassle.
Thanks in advance for any input you can provide on this!
-- mod edit: converted img to url tags.  Trilby --
Last edited by Trilby (2015-05-01 11:41:41)

You have a few different only paritially overlapping questions here.  How to find a color / is there a name for it:  There are 16 base colors, then a 216 color cube, then 24 grayscale colors.  You can get a bit more about this from a google search - here's one example:
https://fedoraproject.org/wiki/Features … _Terminals
There are also countless scripts to print out the 256 colors in a useful way in a terminal.  These scripts are littered all around these forums - just search and you'll find them.
It is common practice to override the first 16 colors.  There are also countless posts - and I think an entire thread - on these forums devoted to sharing these color schemes.  I believe it is also possible to override any of the other 240 colors, but it is generally not done and I'd advise against it.  These other 240 are generally the ones "assumed".  The first 16 have conventional meaning, but there are no specific shades that should be assumed: 1 is some shade of red or something the user prefers in place of red, 2 is some shade of green, etc.  8-15 are bright versions of 0-7.
Also, as you search - please find the forum guidelines and only link to larger images.  I converted the images to urls in your post.

Similar Messages

  • How to select a Hibenrate configuration file for web application/junit?

    Dear all,
    I am using hibernate for a web application.
    I have two configuration files: one ("hibernate-jta.cfg.xml") uses a data source and the other ("hibernate.cfg.xml") directly uses jdbc.
    private static String CONFIG_FILE = "hibernate-jta.cfg.xml"; private static String CONFIG_FILE_WITHOUT_DATASOURCE = "hibernate.cfg.xml";
    When I deplyed my applcation to an application server, I need to use the first one. When I run junit test, I need to use the second one.
    How can I design a mecanism to switch between the two configuration files according the the case: web application or java stand alone application?
    Configuration cfg = new Configuration(); cfg.configure(CONFIG_FILE);
    Thanks.
    Pengyou

    My solution is to add a new public method "initFactoryForJunit() " in the Static singleton.
    In the junit test, this method will be invoked in order to load a second configuration file.
    public class ThreadsafeSessionFactory {
         private static Logger log = Logger
                   .getLogger(ThreadsafeSessionFactory.class);
         private static String CONFIG_FILE = "hibernate-jta.cfg.xml";
         private static String CONFIG_FILE_FOR_JUNIT = "hibernate.cfg.xml";
         private static final Configuration cfg = new Configuration();
         private static org.hibernate.SessionFactory sessionFactory;
         public static SessionFactory getInstance() {
              log.info("getInstance()");
              if (sessionFactory == null) {
                   ThreadsafeSessionFactory.initFactory();
              return sessionFactory;
         /*public synchronized Session openSession() {
              log.debug("openSession()");
              return sessionFactory.getCurrentSession();
         public synchronized Session getCurrentSession() {
              log.debug("getCurrentSession()");
              return sessionFactory.getCurrentSession();
         private static void initFactory() {
              log.debug("initFactory()");
              if (sessionFactory == null) {
                   try {
                        Configuration cfg = new Configuration();
                        cfg.configure(CONFIG_FILE);
                        String factoryJndiName = cfg
                                  .getProperty(Environment.SESSION_FACTORY_NAME);
                        if (factoryJndiName != null) {
                             log.debug("using jndi factory");
                             cfg.buildSessionFactory();
                             sessionFactory = (SessionFactory) (new InitialContext())
                                       .lookup(factoryJndiName);
                        } else {
                             log.info("using default factory");
                             sessionFactory = cfg.buildSessionFactory();
                             log.info("after using default factory");
                   } catch (Exception ex) {
                        ex.printStackTrace();
                        log.error("failed creating session factory");
                        throw new HibernateException(
                                  "initFactory(): failed initializing configuration");
         public static void initFactoryForJunit() {
              log.debug("initFactory()");
              if (sessionFactory == null) {
                   try {
                        Configuration cfg = new Configuration();
                        cfg.configure(CONFIG_FILE_FOR_JUNIT);
                        String factoryJndiName = cfg
                                  .getProperty(Environment.SESSION_FACTORY_NAME);
                        if (factoryJndiName != null) {
                             log.debug("using jndi factory");
                             cfg.buildSessionFactory();
                             sessionFactory = (SessionFactory) (new InitialContext())
                                       .lookup(factoryJndiName);
                        } else {
                             log.info("using default factory");
                             sessionFactory = cfg.buildSessionFactory();
                             log.info("after using default factory");
                   } catch (Exception ex) {
                        ex.printStackTrace();
                        log.error("failed creating session factory");
                        throw new HibernateException(
                                  "initFactory(): failed initializing configuration");
         public static void close() {
              if (sessionFactory != null)
                   sessionFactory.close();
              sessionFactory = null;
    }

  • How do you set up Port Forwarding for ARD 2.2 in AEB N?

    Help,
    I'm a novice at Apple Remote Desktop (ARD) - not an IT guy, so it has to be pretty basic and detailed.
    How do you set up Port Forwarding for ARD 2.2 on the Apple Airport Extreme BS router, 802.11 N. I have one at each end of the internet connection. At one end I have an Airport Extreme N router with 2 macs and eventually 1 windows XP machine (if I can) that I would like to be able to connect to over the interenet (the clients) and at the other end, I have a Mac with ARD 2.2 installed also with an Airport Extreme N router. Note: Both routers use Static IP addresses and all computers use static IP's internally not through DHCP. What are the settings or directions to do this.
    I have read and printed out the directions for Configuration of ARD 3.0 that are posted many times in the ARD discusion group, but it uses a Linksys router ( http://www.starkpr.com/ard.htm posted by Dave Sawyer). The Mac router is different, particularly with the place to set a Private IP address. I'm not sure about alot of things, but especially about the Private IP address, what number do I set it to, the one that is in my Network connections list? It automatically changes to a different number in AE N setup for Port Forwarding (by one) as if it is not suppose to the same?????
    Are there any directions available that are as straight forward for the Airport Extreme N router, as the one's that are listed here for the Linksys Router's? ( http://www.starkpr.com/ard.htm )
    Any and All help will be greatly appreciated.
    P.S. I know I should have 3.0 but bought 2.2 just weeks before 3.0 came out and they would not give me an upgrade price, so I'm waiting for 4.0 to upgrade.
    Thanks,
    Jim

    Try the following for each AirPort Extreme ...
    AEBSn - Port Mapping Setup
    To setup port mapping on an 802.11n AirPort Extreme Base Station (AEBSn), either connect to the AEBSn's wireless network or temporarily connect directly, using an Ethernet cable, to one of the LAN port of the AEBSn, and then use the AirPort Utility, in Manual Setup, to make these settings:
    1. Reserve a DHCP-provided IP address for the host device.
    Internet > DHCP tab
    o On the DHCP tab, click the "+" (Add) button to enter DHCP Reservations.
    o Description: <enter the desired description of the host device>
    o Reserve address by: MAC Address
    o Click Continue.
    o MAC Address: <enter the MAC (what Apple calls Ethernet ID if you are using wired or AirPort ID if wireless) hardware address of the host computer>
    o IPv4 Address: <enter the desired IP address>
    o Click Done.
    2. Setup Port Mapping on the AEBSn.
    Advanced > Port Mapping tab
    o Click the "+" (Add) button
    o Service: <choose the appropriate service from the Service pop-up menu>
    o Public UDP Port(s): 3283
    o Public TCP Port(s): 3283
    o Private IP Address: <enter the IP address of the host server>
    o Private UDP Port(s): 3283
    o Private TCP Port(s): 3283
    o Click "Continue"
    o Click the "+" (Add) button
    o Service: <choose the appropriate service from the Service pop-up menu>
    o Public UDP Port(s):
    o Public TCP Port(s): 5900
    o Private IP Address: <enter the IP address of the host server>
    o Private UDP Port(s):
    o Private TCP Port(s): 5900
    o Click "Continue"
    o Click the "+" (Add) button
    o Service: <choose the appropriate service from the Service pop-up menu>
    o Public UDP Port(s):
    o Public TCP Port(s): 5988
    o Private IP Address: <enter the IP address of the host server>
    o Private UDP Port(s):
    o Private TCP Port(s): 5988
    o Click "Continue"
    (ref: "Well Known" TCP and UDP ports used by Apple software products)

  • How can you change your security question for I tunes?

    How can you change your security question for I tunes?

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then the steps half-way down this page give you a reset link on your account : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 link above to add a rescue email address for potential future use

  • How do you change/adjust border width for all the cells in a table created in Pages?

    How do you change/adjust border width for all the cells in a table created in Pages?
    Note- I am trying to figure out how to create and format tables in the latest version of the Pages app on an iPad air (iOS 8.1.1.1) . Creating tables, adding or removing borders for individual/all cells in a table seems straight forward. However the default border style seems to be a heavy black line. How do I change this?
    I found the option add or remove borders for all/ individual cells in a table, however I can't find any option within style/format dialogue screens for changing colour or line thickness for table cells. Likewise I can't find any clear instructions on how to do this in apple help pages or support website
    Btw- I'm assuming  it is possible to customize/adjust the colour & thickness of selected lines in a table created in this app (it's fairly easy to do this word processing apps like MS Word) please let me  know if this is not actually possible in Pages

    They know perfectly well what they took out of Pages '09.
    Well over 90 features.
    Do you think you posting feedback is going to remind them of what they did?
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Pages '09 should still be in your Applications/iWork folder.
    Archive/trash Pages 5 and rate/review it in the App Store, then get back to work.
    Peter

  • How Do You Go About Returing Your Nano

    Well i've had mine two weeks and is full of scrathces like a lot of other epople and i am not happy.
    I read people are returing for a exchange?
    How Do you go about doing this?
    Cheers

    doent ne 1 read my mesages
    the nano uses a special plastic to give the consumer, the slimness and lightness that they have been crying ou for, it needs to be shock proof which this plastic provides insted of blistering/ cracking its stong but flexable on impact, and so it can be easily scrached because of its ruberised plastic.
    please do the maths befor you buy and the science befor you complain, this is anoying because the forums are filled with this, you look for the latest discusion and its filled with nano scrch complaints, people with real problems are getting shunted and its not fair to thatse people, its not down to manufacture becasue it wasnt scrached when it arived, nor is the machanics faulty, infact its dificult for it to go faulty becasue it has a flash drive not a hard drive so no moving parts!
    please read ths befor you proced with " but it has a scrach from putting it in my rough jeans pocket" excuse

  • How would you go about limiting file upload

    I don't need source code, just want to know if it's possible or how to go about limiting how many files a user can upload.
    So far
    I can limit what types of files get uploaded.
    I can limit how big those files can be.
    Is it possible, or how would you go about limiting how many files get sent?
    - When the user does a browse they can select multiple files.

    This is the best that I can come up with.
    Ripped from adobe cookbooks
    var fileList:Array = fileReferenceList.fileList;
    if( fileList.length > 4 )
        Alert.show("Too many files" , "Please try again with 4 or less files");
    else
       for (var i:Number=0; i<fileList.length; i++)
           var file:FileReference = FileReference(fileList[i]);
           arrayCollection.addItem({name:file.name, size:file.size, object:file})
    If this post was helpful , please mark it as such.

  • How to set background as white colour for Bitmap images in sapscripts?

    Hi,
    Can anyone let me know that How to set background as white colour for Bitmap images in sapscripts?Actually,I am getting grey as background as defualt for my Bitmap images.
    Sorry,in my previous question,I posted viceversa.I am mistaken.
    Thanks,
    Balaji

    Hi,
    The problem can be solved by changing the way you save the original image.
    Take a look at this thread which explains;
    Problem with logo
    Regards,
    Nick

  • How do you feel about the hacktivist group Anonymous?

    How do you feel about the hacktivist group Anonymous? Are they heroes or criminals to you?They have done many things one would consider a good deed and some which one wouldn't. They were voted as one of the Top 100 Most Influential People of 2012 in Time Magazine. They have been linked to or played a major role in such things as ISIS, North Korea, Sony, Xbox, Westboro Baptist Church, Chinese Government, etc. They are considered to be in the Top 10 for greatest hackers/hacktivist groups of all time. * My personal views: I kind of like them and what they do. Granted everything they have done hasn't been with good intentions, but for the most part they seem to play the role of good hackers/hacktivists (if such a thing exists). Good day.
    This topic first appeared in the Spiceworks Community

    How do you feel about the hacktivist group Anonymous? Are they heroes or criminals to you?They have done many things one would consider a good deed and some which one wouldn't. They were voted as one of the Top 100 Most Influential People of 2012 in Time Magazine. They have been linked to or played a major role in such things as ISIS, North Korea, Sony, Xbox, Westboro Baptist Church, Chinese Government, etc. They are considered to be in the Top 10 for greatest hackers/hacktivist groups of all time. * My personal views: I kind of like them and what they do. Granted everything they have done hasn't been with good intentions, but for the most part they seem to play the role of good hackers/hacktivists (if such a thing exists). Good day.
    This topic first appeared in the Spiceworks Community

  • So if Aperture does not provide the ability to burn photos to dvd/cd how do you go about doing that?

    So if Aperture does not provide the ability to burn photos to dvd/cd how do you go about doing that?

    Simply mount a disc in the drive, then in Aperture Export your versions to that location.  Later in the Finder, Burn.  No need for special function.
    Ernie

  • Hi, We are a physiotherapy practice trying to use i-cal as a clinic diary systaem for 15 therapists. We need to block out availability of therapists but cant do this? How can you block someones diary out for specific times on i-cal? Any help please..

    Hi, We are a physiotherapy practice trying to use i-cal as a clinic diary system for 15 therapists. We need to block out availability of therapists but cant do this? How can you block someones diary out for specific times on i-cal? Any help please..

    iCal is designed for personal use, and isn't really meant to handle this sort of situation.
    The best suggestion I can offer, though it's a trifle untidy, is: create a calendar for each therapist, giving each a different colour. Enter the availability for each therapist - if it's on a weekly basis you can make them repeating events. Then add the individual appointments, which will show alongside in the daily view. In this example, the 'purple' therapist is available from 1030 to 1700 and has appointments at 1200 and 1500.
    If you have more than a few therapists available at any one time it's liable to look a bit messy, but it's the best I can think of at the moment.

  • How do you change the Apple ID for my iPhone 4?

    How do you change the Apple ID for my iPhone 4. I am able to access my iTunes account using my new ID and password on my computer; however, my iphone has a different Apple ID and I do not have cannot access iTunes on this phone. 

    Also, if you have iCloud, you will probably also want to change the iCloud account on the phone to be yours:
    Settings>iCloud - if Account is not yours, go to the bottom and Delete Account. Then sign back on with your iCloud account info.
    Cheers,
    GB

  • How can you unlock a iphone4s sprint for a family member in russia?

    How can you unlock a iphone4s sprint for a family member in russia? i sold it to them but when they took it back to russia is locked them out as if someone has stolen the phone.

    Contact Sprint to see if they offer unlocking and if you qualify.
    Only the wireless carrier to which the iPhone is locked can unlock it.

  • How do you change the pink highlight for the present day in calendar when in week view

    How do you change the pink highlight for the present day in calendar when in week view - OSX Maverick

    the current day was light blue in ical in 10.6 but with plenty of contrast, but I recently made the bigger leap all the way to calendar in 10.9. the choice of color is terrible for reasons such as Spile1962 puts below, but also not having any way to tweak it is terrible. I'm on a bran d new imac and can barely see a difference and frankly, while I appreciate the subtlety, I still forget to look for the darker bar across the top of the current week and day. we should be able to adjust weekend and current day bg colors.
    I went into the app's package contents in hopes that they were using a tiff/png file that I could tweak on my own but couldn't find anything for them. all the icons are there, as are the bg sets for all the little pop-ups and things, but I couldn't even find a reference to a hex color in the plist file.
    send apple feedback. I just did myself, except that Calendar hasn't made the list (yet?), only iCal up to version 4.x, and Messages is still only iChat for feedback, and some others are old as well. apparently after steve died, apple's attention to these details just died with him. it's been that long since those other apps should have been relevant on their site.

  • How do you set the font color for a specific entire row inside a JTable?

    How do you set the font color for a specific entire row inside a JTable?
    I want to change the font color for only a couple of rows inside a JTable.
    I've seen some ways to possibly do this with an individual cell.
    Clarification on changing the font color in an individual cell would be helpful too if
    there is no easy way to do this for a row.

    hai,
    Try out with this piece of code.Create your table and assign the renderer to each column in the table.
    CellColorRenderer m_CellColorRenderer = new CellColorRenderer();
    for(int i=0;i<your_JTable.getColumnCount();i++)
    your_JTable.getColumnModel().getColumn(i).setCellRenderer(m_CellColorRenderer);
    class CellColorRenderer extends JLabel implements TableCellRenderer
    CellColorRenderer()     
    setOpaque(true);     
    setHorizontalAlignment(LEFT);
    setVerticalAlignment(CENTER);
    setBackground(Color.white);
    setForeground(Color.black);
    protected void setValue(Object value)
         setText((value == null) ? "" : value.toString());
    public Component getTableCellRendererComponent(JTable table,Object value,boolean isSelected, boolean hasFocus, int row,int column)
         if(isSelected == true)
              setForeground(Color.red);
         else
              setForeground(Color.black);
         setValue(value);
         return this;
    regards,
    bala

Maybe you are looking for