Messages in this thread | | | Date | Mon, 28 Jul 2003 16:19:04 -0400 | From | Samuel Thibault <> | Subject | Re: Turning off automatic screen clanking |
| |
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/
| |