<?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 Re: setting the cursor position in a console window in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889651#M77840</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;GetConsoleWindow will work. ANSI.SYS works only for 16-bit apps. We got this complaint a LOT with CVF from people moving from DOS.&lt;BR /&gt;</description>
    <pubDate>Tue, 10 Nov 2009 01:18:28 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2009-11-10T01:18:28Z</dc:date>
    <item>
      <title>setting the cursor position in a console window</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889646#M77835</link>
      <description>In a console window&lt;BR /&gt;&lt;BR /&gt;SETTEXTPOSITION doesnt work&lt;BR /&gt;&lt;BR /&gt;So how is it possible to set (and retrieve) the cursor position?&lt;BR /&gt;&lt;BR /&gt;Thankx&lt;BR /&gt;&lt;BR /&gt;Jim&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(Our old code does it by using assembler routines to pass ansi.sys command strings - True)&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Nov 2009 22:39:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889646#M77835</guid>
      <dc:creator>jim_cox</dc:creator>
      <dc:date>2009-11-09T22:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: setting the cursor position in a console window</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889647#M77836</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="margin-top: 5px; width: 100%;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/308522"&gt;jim.cox&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;In a console window&lt;BR /&gt;&lt;BR /&gt;SETTEXTPOSITION doesnt work&lt;BR /&gt;&lt;BR /&gt;So how is it possible to set (and retrieve) the cursor position?&lt;BR /&gt;&lt;BR /&gt;Thankx&lt;BR /&gt;&lt;BR /&gt;Jim&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(Our old code does it by using assembler routines to pass ansi.sys command strings - True)&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Jim,&lt;BR /&gt;&lt;BR /&gt;this won't work in a simple console window. Have alook at the Graphics Library Routines under the QuickWin section of the documentation to find out more about using these features. You will need to create a TextWindow instead of a console window.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;David</description>
      <pubDate>Mon, 09 Nov 2009 23:41:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889647#M77836</guid>
      <dc:creator>DavidWhite</dc:creator>
      <dc:date>2009-11-09T23:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: setting the cursor position in a console window</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889648#M77837</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/142656"&gt;David White&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; &lt;BR /&gt;Jim,&lt;BR /&gt;&lt;BR /&gt;this won't work in a simple console window. Have alook at the Graphics Library Routines under the QuickWin section of the documentation to find out more about using these features. You will need to create a TextWindow instead of a console window.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;David&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;Thought that might be the case :(&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So how do I include the Quickwin stuff properly into my program?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If in the code I &lt;BR /&gt;&lt;BR /&gt;USE IFQWIN&lt;BR /&gt;&lt;BR /&gt;and later&lt;BR /&gt;&lt;BR /&gt;CALL SETTEXTWINDOW(1,1,24,80)&lt;BR /&gt;&lt;BR /&gt;At linking I get an unresolved external for _SETTEXTWINDOW&lt;BR /&gt;&lt;BR /&gt;Change the Fortran runtime libraries from debug multithreaded to debug quickwin generates a _winMain already defined error as well as _SETTEXTWINDOW and _DIR being unresolved&lt;BR /&gt;&lt;BR /&gt;And adding IFQWIN.LIB to the linker's dependency list creates a whole stack of unresolved externals&lt;BR /&gt;&lt;BR /&gt;(The new progam started life as an SDI code windowing application if that makes any difference)&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Jim&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Nov 2009 00:29:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889648#M77837</guid>
      <dc:creator>jim_cox</dc:creator>
      <dc:date>2009-11-10T00:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: setting the cursor position in a console window</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889649#M77838</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
There are Win32 APIs for manipulating a console window and setting the position. See &lt;A href="http://msdn.microsoft.com/en-us/library/ms682073%28VS.85%29.aspx"&gt;Console Functions&lt;/A&gt; In particular, &lt;A href="http://msdn.microsoft.com/en-us/library/ms686025%28VS.85%29.aspx"&gt;SetConsoleCursorPosition&lt;/A&gt;. You'll need to call GetStdHandle first to get a handle to the console.&lt;BR /&gt;&lt;BR /&gt;ANSI.SYS doesn't work in 32-bit Windows.&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Nov 2009 00:31:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889649#M77838</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-11-10T00:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: setting the cursor position in a console window</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889650#M77839</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336209"&gt;Steve Lionel (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; There are Win32 APIs for manipulating a console window and setting the position. See &lt;A href="http://msdn.microsoft.com/en-us/library/ms682073%28VS.85%29.aspx"&gt;Console Functions&lt;/A&gt; In particular, &lt;A href="http://msdn.microsoft.com/en-us/library/ms686025%28VS.85%29.aspx"&gt;SetConsoleCursorPosition&lt;/A&gt;. You'll need to call GetStdHandle first to get a handle to the console.&lt;BR /&gt;&lt;BR /&gt;ANSI.SYS doesn't work in 32-bit Windows.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;GetStdHandle or GetConsoleWindow? or are they the same given an AllocConsole() ?&lt;BR /&gt;&lt;BR /&gt;&amp;gt; ANSI.SYS doesn't work in 32-bit Windows.&lt;BR /&gt;&lt;BR /&gt;Well, it works fine in an XP command window - but its really really clunky - which is one reason I'm having to rewrite both the frontend and libraries for this particular baby&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Nov 2009 00:59:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889650#M77839</guid>
      <dc:creator>jim_cox</dc:creator>
      <dc:date>2009-11-10T00:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: setting the cursor position in a console window</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889651#M77840</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;GetConsoleWindow will work. ANSI.SYS works only for 16-bit apps. We got this complaint a LOT with CVF from people moving from DOS.&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Nov 2009 01:18:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889651#M77840</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-11-10T01:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: setting the cursor position in a console window</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889652#M77841</link>
      <description>Having trouble with the second paramter to the SetConsoleCursorPosition call.&lt;BR /&gt;&lt;BR /&gt;According to the documentation the call looks like&lt;BR /&gt;&lt;BR /&gt;BOOL WINAPI SetConsoleCursorPosition(&lt;BR /&gt; HANDLE hConsoleOutput,&lt;BR /&gt; COORD dwCursorPosition&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;where a COORD is&lt;BR /&gt;&lt;BR /&gt;typedef struct _COORD {  SHORT X;  SHORT Y;&lt;BR /&gt;} COORD,  *PCOORD;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I'm trying a structure that looks like&lt;BR /&gt;&lt;BR /&gt; TYPE COORD&lt;BR /&gt; INTEGER(2) X&lt;BR /&gt; INTEGER(2) Y&lt;BR /&gt; END TYPE&lt;BR /&gt; &lt;BR /&gt; TYPE (COORD) C&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;but I keep getting&lt;BR /&gt;&lt;BR /&gt;error #6633: The type of the actual argument differs from the type of the dummy argument.   &lt;C&gt;&lt;BR /&gt;&lt;BR /&gt;Any thoughts? &lt;BR /&gt;&lt;BR /&gt;&lt;/C&gt;</description>
      <pubDate>Tue, 10 Nov 2009 02:36:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889652#M77841</guid>
      <dc:creator>jim_cox</dc:creator>
      <dc:date>2009-11-10T02:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: setting the cursor position in a console window</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889653#M77842</link>
      <description>&lt;DIV style="margin:0px;"&gt;Here's a routine I did in CVF that sets the cursor position. Proabably pretty close to what&lt;BR /&gt;you'd need in IVF.&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
subroutine gotoxy(irow,icol)&lt;BR /&gt;use dflib&lt;BR /&gt;use dfwin&lt;BR /&gt;integer fhandle&lt;BR /&gt;logical lstat&lt;BR /&gt;Type(T_COORD) wpos&lt;BR /&gt;fhandle = GetStdHandle(STD_OUTPUT_HANDLE)&lt;BR /&gt;wpos.x = icol&lt;BR /&gt;wpos.y = irow&lt;BR /&gt;lstat = SetConsoleCursorPosition(fhandle, wpos)&lt;BR /&gt;&lt;BR /&gt;return&lt;BR /&gt;end&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Nov 2009 16:35:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889653#M77842</guid>
      <dc:creator>jparsly1</dc:creator>
      <dc:date>2009-11-10T16:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: setting the cursor position in a console window</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889654#M77843</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
You need to use type T_COORD, not a type that "looks like" it.&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Nov 2009 16:58:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889654#M77843</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-11-10T16:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: setting the cursor position in a console window</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889655#M77844</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336209"&gt;Steve Lionel (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; You need to use type T_COORD, not a type that "looks like" it.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;Thankx, that did the trick :)&lt;BR /&gt;&lt;BR /&gt;Is there a good source for documentation of the ifort view of the winapi interface and the libraries?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Jim&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Nov 2009 20:42:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889655#M77844</guid>
      <dc:creator>jim_cox</dc:creator>
      <dc:date>2009-11-10T20:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: setting the cursor position in a console window</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889656#M77845</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;BR /&gt;The sources for the modules are in the compiler's INCLUDE folder.&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Nov 2009 21:05:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/setting-the-cursor-position-in-a-console-window/m-p/889656#M77845</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-11-10T21:05:36Z</dc:date>
    </item>
  </channel>
</rss>

