View previous topic :: View next topic |
Author |
Message |
stfark1
Joined: 02 Sep 2008 Posts: 204
|
Posted: Sun Apr 19, 2020 4:56 pm Post subject: Execution Background |
|
|
During the Fortran program execution, the default back ground and text is black with white text. I would like to reverse this and make the background white with black text. Any suggestions? Sid Kraft |
|
Back to top |
|
 |
LitusSaxonicum
Joined: 23 Aug 2005 Posts: 2385 Location: Yateley, Hants, UK
|
Posted: Sun Apr 19, 2020 7:50 pm Post subject: |
|
|
Sid,
Use the WINAPP directive?
Eddie |
|
Back to top |
|
 |
PaulLaidler Site Admin

Joined: 21 Feb 2005 Posts: 7781 Location: Salford, UK
|
Posted: Mon Apr 20, 2020 8:23 am Post subject: |
|
|
If you have a simple Fortran program that does not use ClearWin+ then you will probably be running it as a "console" application.
Adding the WINAPP directive to the start of the code will change it to a "windows" application with the desired effect. This will be OK for output results but may not work for reading data from what was previously the console.
A console or "DOS box" or "Command prompt window" has its own properties (including background and text colour) which can be changed under program control but it would be quite tricky to do that. |
|
Back to top |
|
 |
John-Silver

Joined: 30 Jul 2013 Posts: 1520 Location: Aerospace Valley
|
Posted: Mon Apr 20, 2020 9:47 pm Post subject: |
|
|
Sid, IF as Paul suggests you're talking about a Console program/window, you can change it first by opening a console window, right-clicking on the caption bar, and selecting Options - then the Colours Tab - and change the background (and whatever other colours you fancy) there
The opened console window doesn't suddenly all change to a different coloured background, but if you hit and hold 'Enter', when the cursor reaches the bottom the background starts to change.
Alternatively, jus topen a new console window and the new background colour is present, so the system settings are changed, at least for the current session (I haven't tried logging out and back in to see if the changes are permanent or not.
Anyway, you have it as a back-up option which could be an instruction for the user.
Programatically, I'm sure we had a discussion somewhere on the forums quite a while back. _________________ ''Computers (HAL and MARVIN excepted) are incredibly rigid. They question nothing. Especially input data.Human beings are incredibly trusting of computers and don't check input data. Together cocking up even the simplest calculation ... " |
|
Back to top |
|
 |
|