Re: Programming enhanced display modes in GNOME Terminal



^[ should be the escape character.  Try printf("%c[...", 27, ...);

Andrew Taylor

"Bhola N. De" wrote:
> 
> I wanted to make characters white, bold in the GNOME terminal.  I tried:
> 
>         printf ("^[[1;37mTest: %s\n", "This is a Test");
> 
> where '37' stands for white color and '1' stands for bold.  'm' stands
> for character rendition.
> I did this based on info I picked up from
> /usr/doc/console-tools-19990302/contrib/console.doc under RH6.0.
> 
> But the output had escape sequences:
> 
>         ^[[1;37mTest: This is a Test
> 
> in the terminal output without doing the character rendition.  Can
> somebody please help me how to do this?
> 
> Thank you.
> 
> --
>   ^    ^
>  ("\''/").__..-''"`-. .          Bhola De
>  `9_ 9  )   `-. (    ).`-._.`)   bnde@prodigy.net
>  (_Y_.)' ._   ) `._`.  " -.-'
>   _.`.`-'_..-_/ /-'_.'
> (!)-'' ((!).' ((!.'
> 
> --
> To unsubscribe: mail gnome-devel-list-request@gnome.org with "unsubscribe"
> as the Subject.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]