Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

How to set the display color of Putty or Minicom in serial port mode?

Altera_Forum
Honored Contributor II
6,273 Views

Hi all, 

 

I just got a Cyclone V ArrowSoC kit, and have tried the linux boot example using serial port. 

However, after login to the linux system, I found that putty in serial port mode can't display any color, as listed in the attachment. Both file and directory, and any type of files, are grey. 

 

So, what, and how to set so that the serial port terminal as putty and minicom could show different type of files in different color, like directory in blue, .sh in green? 

 

i have tried the color setting in putty itself, and it doesn't work at all. To me, putty and minicom is just a communication terminal used to send and receive character data, which may not be the same as the typical shell terminal in linux.  

 

Thanks for your time and possible reply in advance~~
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
4,662 Views

I think you answered your own question, I don't think I have seen a terminal that performs the colour coding you are looking for. If one existed it would probably need to know what is running on the target since you wouldn't want a terminal to use colour coding for Linux when Windows is running on the target for example.

0 Kudos
Altera_Forum
Honored Contributor II
4,662 Views

I think the colors are defined in /etc/profile file. My linux OS shows different color for files, directories and such. I have attached the file I have. Try it out! Make sure you make a back up of the original file. 

 

NOTE: /etc/profile doesn't have an extension. I uploaded it as .txt to upload to this forum. It wouldn't allow me to upload without an extension.
0 Kudos
Reply