Cygwin: import color scheme from "Designer Color Scheme Designer"

I am learning how to get color coding in a Cygwin terminal.

First, I right-click on the Cygwin icon and select "options":

enter image description here

Next, I see the following options panel. However, there are no topics. Instead, there is a “Color Scheme Designer” button:

enter image description here


When I click on “Color Scheme Designer,” I go to the following web page (the interface of the GitHub project project website at the bottom left) in my browser ( Color Scheme Designer ):

enter image description here

In the upper right corner there is a button with the inscription "get scheme", which gives the following panel,

enter image description here

If I right-click on the buttons on this last panel and click "Copy Link", all color settings are saved in a specific button formatting in my clipboard. Then I can paste it into a file.

It was at this last stage that I was stuck.


How do I get one of these color schemes in a list of Cygwin themes? Please note: there is a button next to the “Color Scheme Designer” (Figure 2) that is grayed out, called “Save” ... so there seem to be some functions where I can save one of these custom color schemes so that it appears in the Subject drop-down list?

+5
source share
1 answer

You are almost there! Here is my solution, I am sure there are other ways to achieve this. Note that the solution assumes that your cygwin installation included the mintty terminal emulator (installed by default in recent versions of cygwin).

1) Right-click on the .minttyrc button and save the link as a text document on your computer.

2) Open a text document and copy its contents to the clipboard. A file might look something like this:

 BackgroundColour=13,25,38 ForegroundColour=255,255,255 CursorColour=255,255,255 Black=0,0,0 BoldBlack=62,62,62 Red=217,20,46 BoldRed=246,162,173 Green=46,217,20 BoldGreen=173,246,162 Yellow=217,191,20 BoldYellow=246,235,162 Blue=20,46,217 BoldBlue=162,173,246 Magenta=191,20,217 BoldMagenta=235,162,246 Cyan=20,217,191 BoldCyan=162,246,235 White=217,217,217 BoldWhite=255,255,255 

3) Open cygwin and go to your home directory by typing cd ~

4) Type ls -a to see various hidden configuration files that are stored in your home directory. In particular, you should see a file named .minttyrc .

5) Open .minttyrc with your favorite text editor and copy the code snippet that you received in step 2)

6) Restart cygwin or start another instance of the terminal, and the new color scheme should work.

+4
source

Source: https://habr.com/ru/post/1268716/


All Articles