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

Re: blank console



Shachar Tal wrote:

> Does anyone know how to keep the console on, i.e. it shouldn't be blanked
> after <X> minutes?

ESC [ 9 ; # ]
When #=No. of minutes
In C:
	printf("\033[9;%d]\n", number_of_minutes);

I think #=0 is forever, but I am not sure. If you want to be sure if
0 is forever or only for, let's say one or two months, you may try  :-)
In addition, I don't know what about Y2K (defining #=2 one minute
before Y2K, may have the same effect as using zero...).

-- 
Eli Marmor
El-Mar Software Ltd.