inverse mode and flash mode for text

This is a discussion on inverse mode and flash mode for text within the Linux Programming forums, part of the Platform Specific Boards category; I normally write programs on linux console. I know how to write functions to clear screen, change text color or ...

  1. #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

  2. #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

  3. #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,
    Last edited by Jaguar; 02-08-2003 at 12:16 PM.
    slackware 10.0; kernel 2.6.7
    gcc 3.4.0; glibc 2.3.2; vim editor
    migrating to freebsd 5.4

Popular pages Recent additions subscribe to a feed

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