Although you can use gcc/g ++ to compile code in windows CMD, the font of CMD is unbearable.
Without any discriminatory mentality, we feel that there is no aesthetic feeling and our psychology is uncomfortable.
Because CMD uses the Chinese Code Page (936), you can use the "attribute" to modify only the ugly font. If
Run "chcp 437" in the CMD window. You can see that there are two more fonts in the replaceable Font: Consolas and Lucida console.
Although the two fonts are not ugly, they are not my favorite fonts. The default font in Linux is Momospace, so I want to replace CMD with this font.
After Baidu, the solution is obtained, which is recorded as follows.
1. Of course, first obtain the next Bitstream Vera Sans Mono installation package.
2. decompress the package and install (copy) it under C: \ windows \ Fonts (unfortunately, it can be used only after restart, without restarting ).
3. Modify the registry. Open HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ Console \ TrueTypeFont
Create "string values" -- 000 and 0000, and modify their values as follows:
(You can create only one value. Here I want to add my favorite Courier New font)
4. Open CMD, set the attribute to the Mono font (if not, Run "chcp 437" in CMD), and restart it.
In this way, we can make the CMD and Linux terminals look similar. Of course, this is similar. Because CMD does not seem to be as highlighted in color as the terminal, of course, the command line is also different.
But for the code writer, if only one small dev c ++ can be installed, you can use gcc/g ++ and gdb to compile the debugging program in the CMD window, do you feel immediately
CMD is something like Linux right away? It seems like it's blowing over, huh, but it doesn't matter. I like it ......