|
||||||
| C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hello,
I am currently devloping a linux console-based ftp client using ncurses. Since some ftpd's like glftpd have the ability to add color to its output using ansi colors (escape characters) i just want to ask if someone knows of a more or less simple way to display them in the right way. I've googled a lot but found nothing appropriate. Thanks for your help, - T. |
| Sponsored Links |
|
|
|
|||||
|
Found these, hope it helps:
\033[22;30m - black \033[22;31m - red \033[22;32m - green \033[22;33m - brown \033[22;34m - blue \033[22;35m - magenta \033[22;36m - cyan \033[22;37m - gray \033[01;30m - dark gray \033[01;31m - light red \033[01;32m - light green \033[01;33m - yellow \033[01;34m - light blue \033[01;35m - light magenta \033[01;36m - light cyan \033[01;37m - white Print in Red: Code:
printf("\033[22;31mHello, world!");
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Don't hesitate to ask any questions that you have! Check out our To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. ! |
|
|||||
|
This may be some help also: Linux Console Colors & Other Tricks
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. Don't hesitate to ask any questions that you have! Check out our To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. ! |
| Sponsored Links |
|
|
|
|||||
|
Quote:
![]() |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
| Xav | ........ | 1318.93 |
| MeTh0Dz|Reb0rn | ........ | 1053.7 |
| morefood2001 | ........ | 879.43 |
| John | ........ | 877.37 |
| marwex89 | ........ | 869.98 |
| WingedPanther | ........ | 814.88 |
| Brandon W | ........ | 712.1 |
| chili5 | ........ | 300.72 |
| Steve.L | ........ | 232.06 |
| dcs | ........ | 194.72 |
Goal: 100,000 Posts
Complete: 82%