User forums > Using Code::Blocks
How Using Wineconsole cmd in Code Blocks Ubuntu Platform as default console
oBFusCATed:
--- Quote from: hamzaniazni on February 16, 2011, 04:38:49 pm ---can we use wineconsole cmd as replacement of xterm??
--- End quote ---
No, because it is not a terminal emulator, but shell emulator or something like that...
hamzaniazni:
ohhh...really??thanks...just i have dual boot with windows in my computer..ubuntu and windows...my group project used system("cls") to clear to program in console application..but the system("cls") doesn't work in ubuntu..except i used wine to run the windows excutable program through the wineconsole..so think by using wineconsole i can avoid this problem...when i build and run the program..it's run smoothly but onlu screen clear not working...any suggestion???
oBFusCATed:
You can use:
--- Code: ---#ifndef _WIN32
system("clear");
#else
system("cls");
#endif
--- End code ---
hamzaniazni:
Thanks...but not work....is there another way..to setting up code blocks to run wine dos console when i try to run the program...the situation is when i run exe file in debug folder it will open wine dos console...so the system cls will work...i had try alias cls='clear'..but also not work..or there are option to install ms-dos console in ubuntu..that i can use it to run my program from code blocks..thanks...
Navigation
[0] Message Index
[*] Previous page
Go to full version