<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic If you have a console driver in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090875#M124246</link>
    <description>&lt;P&gt;If you have a console driver that supports ANSI cursor positioning sequences, such as the one that comes with Cygwin+Gfortran on Windows, or one of the many console programs such as Konsole on Linus, you can try the following:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;program overwrite
implicit none
integer :: i,j
character :: esc = char(27)
!
write(*,10,advance='no') esc,10000
do i=10001,100000
   write(*,20,advance='no') esc,i
end do
10 format(A1,'[13;30HCounter : ',I6)
20 format(A1,'[13;40H',I6)

end program&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Dec 2015 23:19:57 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2015-12-02T23:19:57Z</dc:date>
    <item>
      <title>How to overprint in a console application?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090860#M124231</link>
      <description>&lt;P&gt;I want my console application to display a varying number at the same location in the current output line, i.e. overprint it. Example:&lt;/P&gt;

&lt;P&gt;DO I = 1, n&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ! do something&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WRITE (*, '(A, I3)') 'Loop count = ', n&lt;BR /&gt;
	END DO&lt;/P&gt;

&lt;P&gt;IOW I don't want each loop count report to create a new line (thus scrolling out of the window when n is large)--I want it to keep updating the same line. I know how to do this using Quickwin or API routines, but I desire standard Fortran.&lt;/P&gt;

&lt;P&gt;Once upon a time I could accomplish this using carriage control: the output string would be '+Loop count = ', n. But this awkwardly requires the compiler switch '/ccdefault:fortran'. Worse, I understand that carriage control has been eliminated from standard Fortran.&lt;/P&gt;

&lt;P&gt;So, how can I do this now?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 07:20:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090860#M124231</guid>
      <dc:creator>dboggs</dc:creator>
      <dc:date>2015-12-01T07:20:14Z</dc:date>
    </item>
    <item>
      <title>If you just try:</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090861#M124232</link>
      <description>&lt;P&gt;If you just try:&lt;/P&gt;

&lt;P&gt;WRITE (*, '(\,A, I3)') 'Loop count = ', n&lt;/P&gt;

&lt;P&gt;Or check documentation -&amp;gt;FORMAT&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 10:45:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090861#M124232</guid>
      <dc:creator>reidar</dc:creator>
      <dc:date>2015-12-01T10:45:14Z</dc:date>
    </item>
    <item>
      <title>Try this:</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090862#M124233</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;program overwrite
implicit none
integer :: i,j&amp;nbsp;
character :: bsp = char(8)
!
write(*,10,advance='no')10000
do i=10001,99999
&amp;nbsp; &amp;nbsp;write(*,20,advance='no')(bsp,j=1,5),i
end do
10 format('Counter: ',I5)
20 format(5A1,I5)
end program&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 11:11:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090862#M124233</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-12-01T11:11:08Z</dc:date>
    </item>
    <item>
      <title>You could also open the unit</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090863#M124234</link>
      <description>&lt;P&gt;You could also open the unit with CARRIAGECONTROL='FORTRAN', but you're right that Fortran carriage control is not part of the current standard. &amp;nbsp;mecej4's approach will generally work, though. If you don't require keeping the text at the beginning you could output a single CR (char(13)).&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 12:55:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090863#M124234</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-12-01T12:55:43Z</dc:date>
    </item>
    <item>
      <title>Thanks for these suggestions.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090864#M124235</link>
      <description>&lt;P&gt;Thanks for these suggestions.&lt;/P&gt;

&lt;P&gt;reidar: This doesn't do what I want. the backslash simply causes the output to continue on the same line without a CR/LF; the line simply grows longer and longer.&lt;/P&gt;

&lt;P&gt;mecej4: This "sort of" works, and the backspace character is a good idea. However, with your code as written the output does not appear until the program completes. If I replace "advance='no'" with "\" or "$" (the older styles of doing the same thing) then it works OK, i.e. the output line is actually displayed each time through the loop. I do not understand this, I always thought that&amp;nbsp;backslash editing, dollar editing, and advance=no were&amp;nbsp;equivalent. I have tried several variations on these formats and conclude they are not. (Perhaps there is some obscure issue lingering in my test program?)&lt;/P&gt;

&lt;P&gt;Here's my code snipped that works:&lt;/P&gt;

&lt;P&gt;WRITE (*, '(A, $)') ' Loop count = '&lt;BR /&gt;
	bsp = CHAR (8)&lt;BR /&gt;
	DO&amp;nbsp;i = 1, n&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WRITE (*, '(3A1, I3, $)') (bsp, j=1,3), i&lt;BR /&gt;
	END DO&lt;BR /&gt;
	! Note that constants '3' must agree in number and be sufficiently large to accommodate the size of i&lt;/P&gt;

&lt;P&gt;So, I am still faced with resorting to non-standard IVF extensions to solve this problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 17:12:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090864#M124235</guid>
      <dc:creator>dboggs</dc:creator>
      <dc:date>2015-12-01T17:12:34Z</dc:date>
    </item>
    <item>
      <title>Which compiler version are</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090865#M124236</link>
      <description>&lt;P&gt;Which compiler version are you using? I ran mecej4's code and it definitely updated while the program was running. Several versions ago it might not have.&lt;/P&gt;

&lt;P&gt;An alternative would be to use nonadvancing output to create a sort of "progress bar".&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 17:26:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090865#M124236</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-12-01T17:26:41Z</dc:date>
    </item>
    <item>
      <title>I have two computers. One</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090866#M124237</link>
      <description>&lt;P&gt;I have two computers. One uses 2013 sp1.3.202. One uses 2011.11.344.&lt;/P&gt;

&lt;P&gt;The setting&amp;nbsp;ADVANCE='NO'&amp;nbsp;doesn't work correctly on either one--the output doesn't appear until&amp;nbsp;a subsequent write to the window occurs. A correct result appears on the final screen, but it is no good for real-time tracking.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 21:35:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090866#M124237</guid>
      <dc:creator>dboggs</dc:creator>
      <dc:date>2015-12-01T21:35:18Z</dc:date>
    </item>
    <item>
      <title>Try by inserting a FLUSH</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090867#M124238</link>
      <description>&lt;P&gt;Try by inserting a FLUSH statement after the WRITE statement.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 21:43:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090867#M124238</guid>
      <dc:creator>LRaim</dc:creator>
      <dc:date>2015-12-01T21:43:54Z</dc:date>
    </item>
    <item>
      <title>A good suggestion, but it</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090868#M124239</link>
      <description>&lt;P&gt;A good suggestion, but it doesn't help.&lt;/P&gt;

&lt;P&gt;Moreover, it's a little awkward. This being a console application, I have all the WRITE's going to unit *. FLUSH () requires a unit argument, it doesn't accept FLUSH (*). I tried opening a window to unit 1 and directing all of the writing to that. The program runs the same and appears the same as the original version using unit (*). Then, adding FLUSH (1) was observed to have no effect.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 22:21:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090868#M124239</guid>
      <dc:creator>dboggs</dc:creator>
      <dc:date>2015-12-01T22:21:03Z</dc:date>
    </item>
    <item>
      <title>Are you using something other</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090869#M124240</link>
      <description>&lt;P&gt;Are you using something other than the default buffering on output to the console? Is the counter display being done on the standard command line console or in a Windows program?&lt;/P&gt;

&lt;P&gt;The program in #3 works even with CVF6.6 and Gfortran 4.9.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 23:34:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090869#M124240</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-12-01T23:34:17Z</dc:date>
    </item>
    <item>
      <title>I checked some old stuff,</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090870#M124241</link>
      <description>&lt;P&gt;I checked some old stuff, what used to work with CVF was a "+" sign in column 1, so you should try:&lt;/P&gt;

&lt;P&gt;&amp;nbsp; WRITE (*, '('&lt;STRONG&gt;+&lt;/STRONG&gt;',A, I3)') 'Loop count = ', n&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 09:37:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090870#M124241</guid>
      <dc:creator>reidar</dc:creator>
      <dc:date>2015-12-02T09:37:31Z</dc:date>
    </item>
    <item>
      <title>I think that requires</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090871#M124242</link>
      <description>&lt;P&gt;I think that requires cooperation from the console/DOS-box: it is an ancient type of carriage control, dating from the time of printers with endless papersheets.It may or may not still work - you simply have no way of ensuring it just from the Fortran program.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 09:42:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090871#M124242</guid>
      <dc:creator>Arjen_Markus</dc:creator>
      <dc:date>2015-12-02T09:42:38Z</dc:date>
    </item>
    <item>
      <title>No, that simply requires</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090872#M124243</link>
      <description>&lt;P&gt;No, that simply requires opening the file with CARRIAGECONTROL='FORTRAN'. Even in CVF that was not the default.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 17:19:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090872#M124243</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-12-02T17:19:24Z</dc:date>
    </item>
    <item>
      <title>The solution based on</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090873#M124244</link>
      <description>&lt;P&gt;The solution based on carriage control has already been covered in this thread, starting with the very first message. It remains the most convenient way to do it. The complaint is that it was removed from the standard (in 2003) and hence only works through sympathisers of compilers (like Intel) who continue to offer it through extensions. In Intel's case, that would be using a non-standard compiler switch or a non-standard file open option, both as described above.&lt;/P&gt;

&lt;P&gt;In the past, when the standards people removed a feature, a work-around or modern replacement was described. Not so in this case. It is awkward to do using strictly standard features. The feature appears to have been removed because of the demise of line printers. I think this was a bad assumption, that "carriage control" was not useful for anything else.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 22:44:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090873#M124244</guid>
      <dc:creator>dboggs</dc:creator>
      <dc:date>2015-12-02T22:44:06Z</dc:date>
    </item>
    <item>
      <title>In kernel32.f90 you will find</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090874#M124245</link>
      <description>&lt;P&gt;In kernel32.f90 you will find SetConsoleCursorPosition and GetConsoleScreenBufferInfo.&lt;/P&gt;

&lt;P&gt;You might want to write generic wrappers, perhaps GOTOXY and WHEREXY that use these functions on Windows, and uses similar functions on Linux or other operating system.&lt;/P&gt;

&lt;P&gt;Jim Dempsey&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 22:54:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090874#M124245</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2015-12-02T22:54:49Z</dc:date>
    </item>
    <item>
      <title>If you have a console driver</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090875#M124246</link>
      <description>&lt;P&gt;If you have a console driver that supports ANSI cursor positioning sequences, such as the one that comes with Cygwin+Gfortran on Windows, or one of the many console programs such as Konsole on Linus, you can try the following:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;program overwrite
implicit none
integer :: i,j
character :: esc = char(27)
!
write(*,10,advance='no') esc,10000
do i=10001,100000
   write(*,20,advance='no') esc,i
end do
10 format(A1,'[13;30HCounter : ',I6)
20 format(A1,'[13;40H',I6)

end program&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 23:19:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090875#M124246</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-12-02T23:19:57Z</dc:date>
    </item>
    <item>
      <title>https://github.com/adoxa</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090876#M124247</link>
      <description>&lt;P&gt;&lt;A href="https://github.com/adoxa/ansicon"&gt;https://github.com/adoxa/ansicon&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It appears this is a good method&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 01:28:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090876#M124247</guid>
      <dc:creator>nichols__john</dc:creator>
      <dc:date>2015-12-03T01:28:11Z</dc:date>
    </item>
    <item>
      <title>I'm unsure of that - isn't</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090877#M124248</link>
      <description>&lt;P&gt;I'm unsure of that - isn't this a separate program you have to load?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 01:40:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090877#M124248</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-12-03T01:40:39Z</dc:date>
    </item>
    <item>
      <title>Yes it is - it is one method</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090878#M124249</link>
      <description>&lt;P&gt;Yes it is - it is one method that does not look that bad -- there are no good solutions.&lt;/P&gt;

&lt;P&gt;It is listed as the currently preferred solution at a number of major help sites and then you run your program in the window.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 02:26:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090878#M124249</guid>
      <dc:creator>nichols__john</dc:creator>
      <dc:date>2015-12-03T02:26:35Z</dc:date>
    </item>
    <item>
      <title>My proposal #11 works well if</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090879#M124250</link>
      <description>&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;My proposal #11 works well if you set project -&amp;gt; Properties -&amp;gt;Compability -&amp;gt; VMS = Yes.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;integer&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; i,j,n&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;character&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;*1 bsp&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;n=1000&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;WRITE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; (*, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;'(A)'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;' Loop count = '&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;WRITE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; (*, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;'(A)'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;' '&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;bsp = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;CHAR&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; (8)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;DO&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; i = 1, n&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;! WRITE (*, '(3A1, I3, $)') (bsp, j=1,3), i&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;WRITE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; (*, &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;"('+',3A1, I4)"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;) (bsp, j=1,3), i&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;END DO&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;pause&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;end&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 11:13:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-overprint-in-a-console-application/m-p/1090879#M124250</guid>
      <dc:creator>reidar</dc:creator>
      <dc:date>2015-12-03T11:13:01Z</dc:date>
    </item>
  </channel>
</rss>

