Now let's open up the bashrc file using the vim command. Now select the Default Background in the list-menu and click the Modify button. Click on the Colors option under the Window section.
#How to get putty to show colors windows#
Opening PuTTy through Windows search feature. If you make a mistake or have trouble, you can replace your. Note: If you are in the session, then right-click on the PuTTy command window and choose the Change Settings option. They are somewhat close (you won’t get pink from blue, for example), but you can tell the difference. Bask in the color goodness Warning: The colors from PuTTY are not rendered the same as for a Emacs for X11, Emacs for Windows, or Meadow. In order to setup custom colors for the ls command, this can also be done through updating the aliases to the ~/.bash_profile or ~/.bashrc file by editing the file using any text editor like vim.īefore making any changes to the bashrc, first take the backup of this file by copying its configurations to any other file. Go ahead start up your Emacs, then run M-x list-colors-display.
You can find below the list of color codes for the foreground text: To assemble your own list, we need to know the list of color codes and file type codes which use the same numerical color codes like in your Bash prompt. Black with green background: sticky and other-writable directory.Blue with green background: other-writable directory.White with blue background: sticky directory.Black with background: file with capability.Black with background: set-group-ID file.Uncolored with red background: set-user-ID file.Bold with black background: orphan symlink or missing file.
#How to get putty to show colors code#
$ alias ls='ls -color=auto' Default Colors Code Scheme Now, to enable the colors, assign back the alias using the following command. (If the server has not bothered to supply a window or icon title, none of this will happen.You can see in the screenshot that after removing the alias the output of ls command is uni color. If you do this, PuTTY's window title and Taskbar caption will change into the server-supplied icon title if you minimise the PuTTY window, and change back to the server-supplied window title if you restore it. If for some reason you want to see both titles, check the box marked ‘Separate window and icon titles’. Or just run the following ls to turn off the colors. Now run the commands below to remove alias with the unalias command. Run the combination of following aliases and grep command to find the bash shell aliases used for color display. This makes sense in a windowing system where the window becomes an icon when minimised, such as Windows 3.1 or most X Window System setups but in the Windows 95-like user interface it isn't as applicable.īy default, PuTTY only uses the server-supplied window title, and ignores the icon title entirely. The colors of ls command output is defined in bash as aliases. PuTTY allows the server to send xterm control sequences which modify the title of the window in mid-session (unless this is disabled - see section 4.6.5) the title string set here is therefore only the initial window title.Īs well as the window title, there is also an xterm sequence to modify the title of the window's icon. If you want a different window title, this is where to set it.
By default the window title will contain the host name followed by ‘PuTTY’, for example - PuTTY. The ‘Window title’ edit box allows you to set the title of the PuTTY window.
Previous page next page 4.9.1 Controlling the window title