or its associated logical unit number LUN like in this line
winio@(‘%100.20cw[hscroll,vscroll]’, LUN)
is in use?
When %cw is open we can write on its associated LUN like into usual fortran output unit (like print on screen) or some file:
writre(LUN,*) abc
But in Fortran there exist a way to find if file is open or is in use with INQUIRE statement.
What is needed for %cw is sort of like INQUIRE(filename, exists) statement but instead of 'filename' has to be the LUN number - that sort of idea. May be other workarounds exist.
I need it for the following. Suppose I open %cw to print on screen some data (some variable 1). If i will need to printscreen another Variable 2 I would like to print it values into the different %cw screen which program has automatically open for that. Hence the program has to find that one (or two or five) %cw is already open and specific LUN numbers are taken and then open new %cw window with LUN=LUN+1 and write there.