<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Console in ANSI C or *nix' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Console in ANSI C or *nix' posted on the 'C and C++' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 09:37:09 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 09:37:09 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Console in ANSI C or *nix</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/337001/337001/console-in-ansi-c-or-nix/</link>
      <description>How do I&lt;br /&gt;
clear the console,&lt;br /&gt;
get position where I am on the console,&lt;br /&gt;
and set position?&lt;br /&gt;
&lt;br /&gt;
Is it possible to do it in ansi C?&lt;br /&gt;
If not, is it possible to do it in C on unix?&lt;br /&gt;
If not, is it possible at all?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/337001/337001/console-in-ansi-c-or-nix/</guid>
      <pubDate>Sun, 14 May 2006 03:49:31 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: Console in ANSI C or *nix</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/337001/337005/re-console-in-ansi-c-or-nix/#337005</link>
      <description>&lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by stober at  2006-5-14 5:12:44&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: How do I&lt;br /&gt;
: clear the console,&lt;br /&gt;
: get position where I am on the console,&lt;br /&gt;
: and set position?&lt;br /&gt;
: &lt;br /&gt;
: Is it possible to do it in ansi C?&lt;br /&gt;
&lt;span style="color: Red;"&gt;No&lt;/span&gt;&lt;br /&gt;
: If not, is it possible to do it in C on unix?&lt;br /&gt;
&lt;span style="color: Red;"&gt;No -- unix uses ansi c too :)&lt;/span&gt;&lt;br /&gt;
: If not, is it possible at all?&lt;br /&gt;
: &lt;br /&gt;
&lt;span style="color: Red;"&gt;Yes.  use curses library functions.  unlike ms-windows, *nix supports hundreds of terminal types and each one has its own way of moving the cursor around the screen.  That is why there are no standard ascii c functions to control the cursor.  I suppose you could do your own thing with the terminfo.h and associated library, but that would entail pretty low-level programming.  There might be another console lib like curses but I don't know of one.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
http://72.14.203.104/search?q=cache:ZfI2zzPOK4YJ:heather.cs.ucdavis.edu/~mat
loff/UnixAndC/CLanguage/Curses.pdf+man+curses&amp;amp;hl=e
n&amp;amp;gl=us&amp;amp;ct=clnk&amp;amp;cd=5&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/337001/337005/re-console-in-ansi-c-or-nix/#337005</guid>
      <pubDate>Sun, 14 May 2006 05:11:29 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: Console in ANSI C or *nix</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/337001/337009/re-console-in-ansi-c-or-nix/#337009</link>
      <description>: &lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by stober at  2006-5-14 5:12:44&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: : How do I&lt;br /&gt;
: : clear the console,&lt;br /&gt;
: : get position where I am on the console,&lt;br /&gt;
: : and set position?&lt;br /&gt;
: : &lt;br /&gt;
: : Is it possible to do it in ansi C?&lt;br /&gt;
: &lt;span style="color: Red;"&gt;No&lt;/span&gt;&lt;br /&gt;
: : If not, is it possible to do it in C on unix?&lt;br /&gt;
: &lt;span style="color: Red;"&gt;No -- unix uses ansi c too :)&lt;/span&gt;&lt;br /&gt;
: : If not, is it possible at all?&lt;br /&gt;
: : &lt;br /&gt;
: &lt;span style="color: Red;"&gt;Yes.  use curses library functions.  unlike ms-windows, *nix supports hundreds of terminal types and each one has its own way of moving the cursor around the screen.  That is why there are no standard ascii c functions to control the cursor.  I suppose you could do your own thing with the terminfo.h and associated library, but that would entail pretty low-level programming.  There might be another console lib like curses but I don't know of one.&lt;/span&gt;&lt;br /&gt;
: &lt;br /&gt;
: http://72.14.203.104/search?q=cache:ZfI2zzPOK4YJ:heather.cs.ucdavis.edu/~mat
loff/UnixAndC/CLanguage/Curses.pdf+man+curses&amp;amp;hl=e
n&amp;amp;gl=us&amp;amp;ct=clnk&amp;amp;cd=5&lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
Thanks&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/337001/337009/re-console-in-ansi-c-or-nix/#337009</guid>
      <pubDate>Sun, 14 May 2006 06:00:01 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: Console in ANSI C or *nix</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/337001/337039/re-console-in-ansi-c-or-nix/#337039</link>
      <description>&lt;br /&gt;
: Thanks&lt;br /&gt;
: &lt;br /&gt;
One problem though, I compile with:&lt;br /&gt;
gcc -g client.c -lcurses&lt;br /&gt;
but it says:&lt;br /&gt;
client.c:16:20: curses.h: No such file or directory&lt;br /&gt;
&lt;br /&gt;
I tried to compile with -lncurses too but it didn't work either...&lt;br /&gt;
&lt;br /&gt;
Why is it called curses?&lt;br /&gt;
Becouse the include is cursed. &lt;img src="http://www.programmersheaven.com/images/Community/twink.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/337001/337039/re-console-in-ansi-c-or-nix/#337039</guid>
      <pubDate>Sun, 14 May 2006 13:24:52 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: Console in ANSI C or *nix</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/337001/337105/re-console-in-ansi-c-or-nix/#337105</link>
      <description>: &lt;br /&gt;
: : Thanks&lt;br /&gt;
: : &lt;br /&gt;
: One problem though, I compile with:&lt;br /&gt;
: gcc -g client.c -lcurses&lt;br /&gt;
: but it says:&lt;br /&gt;
: client.c:16:20: curses.h: No such file or directory&lt;br /&gt;
: &lt;br /&gt;
: I tried to compile with -lncurses too but it didn't work either...&lt;br /&gt;
: &lt;br /&gt;
: Why is it called curses?&lt;br /&gt;
: Becouse the include is cursed. &lt;img src="http://www.programmersheaven.com/images/Community/twink.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
you may have to specify the full path to the curses .h files&lt;br /&gt;
gcc -g -I/&amp;lt;path to header files here&amp;gt; client.c -lcurses&lt;br /&gt;
&lt;br /&gt;
also search your hard drive to insure the curses library is installed.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/337001/337105/re-console-in-ansi-c-or-nix/#337105</guid>
      <pubDate>Mon, 15 May 2006 13:10:26 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: Console in ANSI C or *nix</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/337001/337159/re-console-in-ansi-c-or-nix/#337159</link>
      <description>: : &lt;br /&gt;
: : : Thanks&lt;br /&gt;
: : : &lt;br /&gt;
: : One problem though, I compile with:&lt;br /&gt;
: : gcc -g client.c -lcurses&lt;br /&gt;
: : but it says:&lt;br /&gt;
: : client.c:16:20: curses.h: No such file or directory&lt;br /&gt;
: : &lt;br /&gt;
: : I tried to compile with -lncurses too but it didn't work either...&lt;br /&gt;
: : &lt;br /&gt;
: : Why is it called curses?&lt;br /&gt;
: : Becouse the include is cursed. &lt;img src="http://www.programmersheaven.com/images/Community/twink.gif" width="15" height="15" alt="" /&gt;&lt;br /&gt;
: : &lt;br /&gt;
: &lt;br /&gt;
: &lt;br /&gt;
: you may have to specify the full path to the curses .h files&lt;br /&gt;
: gcc -g -I/&amp;lt;path to header files here&amp;gt; client.c -lcurses&lt;br /&gt;
: &lt;br /&gt;
: also search your hard drive to insure the curses library is installed.&lt;br /&gt;
: &lt;br /&gt;
I searched for it and it couldn't be found, so I downloaded it.&lt;br /&gt;
Now the hard part is to understand the instructions to install...&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/337001/337159/re-console-in-ansi-c-or-nix/#337159</guid>
      <pubDate>Tue, 16 May 2006 03:30:28 -0700</pubDate>
      <category>C and C++</category>
    </item>
  </channel>
</rss>