<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>A5 and printf in Linux terminal</title>
		<link>http://www.allegro.cc/forums/view/616712</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Mon, 30 Jan 2017 04:09:20 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Greetings,</p><p>I&#39;m working on making a program on the Raspberry Pi that uses the Raspberry Pi camera and raspistill program to take pictures, detect motion, and then uses mail to email me the triggering image when there&#39;s motion detected.  I&#39;m using Allegro 5 for analyzing the pictures taken through system calls.  This is a terminal application and I&#39;m not creating a display, keeping it text only.  I&#39;m noticing that after I call al_init() that printf doesn&#39;t output to the terminal and any output it did do up until that point is seemingly cleared.  If I end the program before al_init() is executed then my text output is there.  As a kludge, I&#39;ve been writing debugging output information to strings formatted as echo commands and doing system calls of said strings.  That works, and I know another option would be to create a display and use al_draw_text to draw text to the display, though just wondering if there&#39;s any way I can get printf to work in the terminal.  Thanks!</p><p>- Mike
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (myoung)</author>
		<pubDate>Sun, 29 Jan 2017 22:43:51 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hmm, that&#39;s odd. I just tried <span class="source-code">ex_utf8</span> on my Raspberry Pi and it seemed to output things to the termina fine. Could you try that example and see if it works for you?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (SiegeLord)</author>
		<pubDate>Mon, 30 Jan 2017 00:23:43 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thanks SiegeLord!  I included common.c and using open_log_monospace, log_printf, and close_log functions are giving me the results I wanted.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (myoung)</author>
		<pubDate>Mon, 30 Jan 2017 04:09:20 +0000</pubDate>
	</item>
</rss>
