C++ - Making the console fullscreen?

2019-08-05 05:37发布

All right, I'm sad now. Microsoft has removed the fullscreen console feature from Win7, which is what I'm running. Now I'm looking into things like OpenGL or SDL to see if I can emulate the console, and make it fullscreen (and I mean FULLSCREEN no window or border or anything). Is it possible to emulate the console fullscreen (like DOS) in OpenGL or something similar?

4条回答
SAY GOODBYE
2楼-- · 2019-08-05 05:55

I see the tag of mingw, so probably you don't like me to propose Cygwin. With cygwin you can do Alt+shift+Enter to get full screen. And with cygwin you can also run DOS script. Since I only used it at XP before, I am not very sure about that it works in 7.

Check this link: http://forums.mydigitallife.info/archive/index.php/t-21673.html, mainly focus on blinkomatic's comment. He said it can be done by Cygwin.

查看更多
何必那么认真
3楼-- · 2019-08-05 06:12

Go to device manager and disable the display adapters, the resolution gets changed. Now You can use the c++ in full screen mode. You can restore it back by enable the display adapters.

查看更多
smile是对你的礼貌
4楼-- · 2019-08-05 06:21

try the system command it's a bit esier (system ("mode 650"); } example:

#include <iostream> 

using namespace std;
int main(){
system("mode 650");
system("pause");
return 0;
}
查看更多
Explosion°爆炸
5楼-- · 2019-08-05 06:21

Beyond Windows XP you cant a console fullscreen, Microsoft removed the functionality (WDDM display drivers)

You can use http://www.dosbox.com/ to fullscreen DOS applications

查看更多
登录 后发表回答