De acordo com o manual do usuário do PuTTY, isso deve ser habilitado por padrão :
If you have an application which is supposed to use 256-colour mode and it isn't working, you may find you need to tell your server that your terminal supports 256 colours. On Unix, you do this by ensuring that the setting of TERM describes a 256-colour-capable terminal. You can check this using a command such asinfocmp
:If you do not see$ infocmp | grep colors colors#256, cols#80, it#8, lines#24, pairs#256,
colors#256
in the output, you may need to change your terminal setting. On modern Linux machines, you could tryxterm-256color
.
Se você estiver procurando usar 256 cores em um aplicativo específico, como o Vim ou o Emacs, há guias separados para saber como fazer isso: