Author Topic: How Using Wineconsole cmd in Code Blocks Ubuntu Platform as default console  (Read 5851 times)

Offline hamzaniazni

  • Single posting newcomer
  • *
  • Posts: 5


I'm new to ubuntu and code blocks...i like to create windows program in ubuntu using code blocks..Please Help me..:)

Offline hamzaniazni

  • Single posting newcomer
  • *
  • Posts: 5
how to use windows command prompt in wine to run console application create in ubuntu

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12006
    • Travis build status
What is the command to run the wine console?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline hamzaniazni

  • Single posting newcomer
  • *
  • Posts: 5
command to run directly from terminal:

wineconsole cmd

can we use wineconsole cmd as replacement of xterm??

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
command to run directly from terminal:

wineconsole cmd

can we use wineconsole cmd as replacement of xterm??
You don't need that to run windows apps on linux if your system is set up correctly (binfmt-support).
wine (or wineserver should start automagically and (in most cases) seamless.
At least if I configure it as console app (also for gui apps) it works fine.

Tested on debian with a simple console project and a wxWidgets project with a library and a main (gui-)app, both compiled with MinGW32 cross-compiler, and wxWidgets cross-libs for the second.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12006
    • Travis build status
can we use wineconsole cmd as replacement of xterm??
No, because it is not a terminal emulator, but shell emulator or something like that...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline hamzaniazni

  • Single posting newcomer
  • *
  • Posts: 5
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???

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12006
    • Travis build status
You can use:
Code: [Select]
#ifndef _WIN32
system("clear");
#else
system("cls");
#endif
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline hamzaniazni

  • Single posting newcomer
  • *
  • Posts: 5
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...