C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 02-04-2003, 01:08 PM   #1
still a n00b
 
Jaguar's Avatar
 
Join Date: Jun 2002
Posts: 187
inverse mode and flash mode for text

I normally write programs on linux console.
I know how to write functions to clear screen, change text color or move cursor using \033 escape sequence.

But I dont know how to change letter text to inverse mode, flash mode (blinking) and to change them back to normal mode? (I guess it might use the same escape sequence \033 or curses.h but I dont know.)

Anyone know please tell me.

Thx in advance.
__________________
slackware 10.0; kernel 2.6.7
gcc 3.4.0; glibc 2.3.2; vim editor
migrating to freebsd 5.4
Jaguar is offline   Reply With Quote
Old 02-08-2003, 12:16 PM   #2
still a n00b
 
Jaguar's Avatar
 
Join Date: Jun 2002
Posts: 187
Code:
printf( "\033[5mhello \033[0mworld\n" );
`hello' is inverse OK, but `world' is not blinking.

Welcome back vVv!!!
You have been abandoning this board for a long time, where have you been?
__________________
slackware 10.0; kernel 2.6.7
gcc 3.4.0; glibc 2.3.2; vim editor
migrating to freebsd 5.4
Jaguar is offline   Reply With Quote
Old 02-08-2003, 12:47 PM   #3
still a n00b
 
Jaguar's Avatar
 
Join Date: Jun 2002
Posts: 187
More questions please.

On my console `\033[5m' makes non-blinking inverse.

By the way, I need 2 formats i.e.
1. non-blinking inverse
2. blinking inverse (normally I call it `flash mode')

Thanks,
__________________
slackware 10.0; kernel 2.6.7
gcc 3.4.0; glibc 2.3.2; vim editor
migrating to freebsd 5.4

Last edited by Jaguar; 02-08-2003 at 01:16 PM.
Jaguar is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump


All times are GMT -6. The time now is 04:31 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22