<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>RTT viewer clear screen</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12289/rtt-viewer-clear-screen</link><description>Hello! 
 I&amp;#39;ve been using RTT viewer to view some data in my nRF52832. Everything works fine but I am unable to clear the RTT viewer terminal screen. 
 As it is in the manual I tried using:
SEGGER_RTT_WriteString(0, RTT_CTRL_CLEAR); 
 No luck... Then</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Mar 2016 16:01:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12289/rtt-viewer-clear-screen" /><item><title>RE: RTT viewer clear screen</title><link>https://devzone.nordicsemi.com/thread/46451?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2016 16:01:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff2035e2-9a61-4f38-9567-c8c99020ce7b</guid><dc:creator>Anunnaki</dc:creator><description>&lt;p&gt;Worked like a charm. Thank You!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT viewer clear screen</title><link>https://devzone.nordicsemi.com/thread/46450?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2016 15:49:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2117120-2d8a-445d-aac7-bb6d022a174e</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I usually use &lt;code&gt;\033[2J\033[;H&lt;/code&gt;. &lt;code&gt;\033[2J&lt;/code&gt; to clear the screen and &lt;code&gt;\033[;H&lt;/code&gt; to set the cursor back to the uppermost left position.&lt;/p&gt;
&lt;p&gt;Edit: also make sure to use the correct tab in RTT Viewer. If you select the &amp;quot;All Terminals&amp;quot; tab the screen wont clear with &lt;code&gt;\033[2J&lt;/code&gt;, but if you use e.g. Terminal 0 the screen resets nicely.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>