Does anyone know how to shut down only the moniter in a dos program.
Does anyone know how to shut down only the moniter in a dos program.
Read the FAQ. The link is at the end of this page.
As for your question, I don't know.
Regards,
Mario Figueiredo
Using Borland C++ Builder 5
Read the Tao of Programming
This advise was brought to you by the Comitee for a Service Packless World
If you mean turn off the monitor, there's no way for the cpu to do that, its only the button. You could try
Code:char verify; cout<<"Would you like to turn off the monitor?"; cin>>verify; if(verify=="y") { cout<<"press the off button on the monitor, please."; }....
Actually it is a valid question, at least it used to be anyway. Their was a BIOS flag in DOS that you couold set to terminate the screen fefresh cycle, therefore although the monitor was still on, as in power is going to it, nothing was being put to the screen. Let me see if I can find it, its been awhile.
Ah, I think this is it, here you go: (by the way sorry, its in assembly)
Please excuse some of us who are too quick to answer a question with a misinformed response.Code:mov ax, 1201h mov bl, 36h ;enable/disable screen refresh int 10h ;all basic video calls
wow.... thats wicked... lol can you cut the PC off?
What is C++?
of course you can ... you can reboot te computer alsoOriginally posted by Vicious
wow.... thats wicked... lol can you cut the PC off?