<?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>Disabling VT100 Commands in SDK14</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25642/disabling-vt100-commands-in-sdk14</link><description>I&amp;#39;m in the process of updating from SDK13 to SDK14. In the new CLI, there are a lot of NRF_CLI_VT100_CMD&amp;#39;s that are used which weren&amp;#39;t there before. If someone is using a plain serial port terminal application with no terminal emulation (like CoolTerm</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Oct 2017 06:34:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25642/disabling-vt100-commands-in-sdk14" /><item><title>RE: Disabling VT100 Commands in SDK14</title><link>https://devzone.nordicsemi.com/thread/101033?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 06:34:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da365842-3fd4-40e5-a1f4-887ee6101974</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;With small code modification it is possible to disable VT100 commands in new CLI but in such case text displayed on the screen will be confusing.&lt;/p&gt;
&lt;p&gt;I am refering to situation when you are typing a command and a log pops up. Current implementation looks more less as follows:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;save currently entered command&lt;/li&gt;
&lt;li&gt;erase: console name and command (VT100 command: clear +
possible cursor manipulation)&lt;/li&gt;
&lt;li&gt;print log&lt;/li&gt;
&lt;li&gt;go to new line (if needed)&lt;/li&gt;
&lt;li&gt;print console name and saved command&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Without step 2, one might think that command was executed before printing log.&lt;/p&gt;
&lt;p&gt;Another case where VT100 commands are used in SDK14 is when user is editing mutliline command. It is used to manipulate cursor so also special buttons are affected like &amp;#39;home&amp;#39;, &amp;#39;end&amp;#39;, &amp;#39;backspace&amp;#39; (also in SDK13) ...&lt;/p&gt;
&lt;p&gt;Increased VT100 commands utilization I would rather name as an extension of functionality not as an unwelcome change. If you will use CLI from SDK14 in the same way as CLI from SDK13 you shall be able to avoid VT100 commands. But in such case you will not have CLI as logger backend.&lt;/p&gt;
&lt;p&gt;If you have some ideas how logs and multiline edidion can be combined with CLI without VT100 commands please let me know. I could try to implement it in SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling VT100 Commands in SDK14</title><link>https://devzone.nordicsemi.com/thread/101034?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2017 19:19:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0fe8325-37a6-4bc4-9c29-0249398ee26e</guid><dc:creator>wael</dc:creator><description>&lt;p&gt;Thanks Jacub.&lt;/p&gt;
&lt;p&gt;Integrating CLI from SDK13 is not very straight forward and would involve touching a lot of files to make them work with the old logging and CLI modules.&lt;/p&gt;
&lt;p&gt;Supporting VT100 commands by default without a way to disable it is an unwelcome change in SDK14. If we are using the CLI and the logging modules to interface with units in setups that we have little control over like on a factory floor, this makes our life very hard.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disabling VT100 Commands in SDK14</title><link>https://devzone.nordicsemi.com/thread/101032?ContentTypeID=1</link><pubDate>Tue, 03 Oct 2017 05:53:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c7b070e-5433-4c11-aea4-3a628ea9d337</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;In case you are using Logger module with CLI you will not avoid VT100 commands. There are needed for commands like: clear screen, saving cursor position, restoring cursor position and so on.&lt;/p&gt;
&lt;p&gt;If you are &lt;strong&gt;not&lt;/strong&gt; using CLI as Logger backend you can try integrate CLI from SDK13. I think I saw a user who did it without bigger problem.&lt;/p&gt;
&lt;p&gt;Another alternative if you are using MAC is to try application: iTerm2&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;screen /dev/tty.usbmodemXXXX 115200
// where XXXX refers to devkit serial port
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;We were able to configure it to interpret VT100 commands correctly:
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6242.1.png" alt="image description" /&gt;
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4682.2.png" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>