Re: Turning off automatic screen clanking

From: Samuel Thibault (Samuel.Thibault@ens-lyon.fr)
Date: Mon Jul 28 2003 - 15:19:04 EST


Le lun 28 jui 2003 16:00:03 GMT, Richard B. Johnson a tapoté sur son clavier :
> I have experimentally determined that I can turn off
> the automatic screen blanking with the following escape
> sequence.
>
> const char blk[]={27, '[', '9', ';', '0', ']', 0};
> main()
> {
> printf(blk);
> }

Yes, this is what setterm -blank 0 does. See setterm_command() in
drivers/char/console.c(2.4) or vt.c(2.6)

> I need to know what the appropriate ioctl() is to do this
> directly without using escape sequences.

It's not possible even with current 2.6.0-test2 but could be added to
tioclinux in a few lines.

Regards,
Samuel Thibault
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jul 31 2003 - 22:00:37 EST