[4.0 b1 linux] OpenConsole() from the IDE

Linux specific forum
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

[4.0 b1 linux] OpenConsole() from the IDE

Post by Trond »

If OpenConsole() is used and a program is run from the IDE another console is not opened and the program prints to the IDE's console (or to nothing if the IDE was not started from a console) unless the executable type is set to console.
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

It is normal. A terminal emulator is a standalone program on linux, so you can't just open a new window from within a program.

The console executable type is there to test console programs. In this case the IDE
opens the window and starts the executable inside it.
quidquid Latine dictum sit altum videtur
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Well, the description in the manual says this: "Open a console window." Then it should open one, in my opinion. At least with the debugger.
Nik
Addict
Addict
Posts: 1017
Joined: Fri May 13, 2005 11:45 pm
Location: Germany
Contact:

Post by Nik »

maybe the ide could have a preference for choosing a Terminal which will be launched when executing excutables with turned on cosole excutable option. Other IDEs like Anjuta do have a Terminal embedded, that would also be a possibility since under Linux every excutable has a commandlien associated with it that would work for all applications, however I think that would probably make the Code less cross platform.
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Choose "Console" as executable type in the compiler options and the IDE will run the
program in a terminal window.
A number of different terminal applications are automatically detected.
Nik wrote:Other IDEs like Anjuta do have a Terminal embedded, that would also be a possibility since under Linux every excutable has a commandlien associated with it that would work for all applications, however I think that would probably make the Code less cross platform.
Sorry, i do not understand what you mean.
quidquid Latine dictum sit altum videtur
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

freak wrote:
Nik wrote:Other IDEs like Anjuta do have a Terminal embedded, that would also be a possibility since under Linux every excutable has a commandlien associated with it that would work for all applications, however I think that would probably make the Code less cross platform.
Sorry, i do not understand what you mean.
In place of the error log there is a "console" which works for the compiled programs.
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

That part i understood, what about the rest ?
quidquid Latine dictum sit altum videtur
Post Reply