<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Mtr on bramp.net</title>
    <link>https://blog.bramp.net/</link>
    <description>Recent content in Mtr on bramp.net</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-GB</language>
    <lastBuildDate>Sun, 07 Aug 2011 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.bramp.net/tags/mtr/" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Default to curses interface for mtr</title>
      <link>https://blog.bramp.net/post/2011/08/07/default-to-curses-interface-for-mtr/</link>
      <pubDate>Sun, 07 Aug 2011 00:00:00 +0000</pubDate>
      
      <guid>https://blog.bramp.net/post/2011/08/07/default-to-curses-interface-for-mtr/</guid>
      <description><p>I really like <a href="http://www.bitwizard.nl/mtr/">mtr</a> (the traceroute tool), however, it always bugged me that it launches a GUI app instead of using the <a href="http://en.wikipedia.org/wiki/Curses_(programming_library)">curses</a> interface. You can easily pass the “-t” or “–curses” flag to default to the curses interface, but I always forget.</p>
<p>So today I set about writing a patch for mtr to read a environment varable to force the curses interface. While I was reading the source I noticed there was already a simple undocumented way!</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="nb">export</span> <span class="nv">MTR_OPTIONS</span><span class="o">=</span>-t
</span></span></code></pre></div><p>Voila the curses interface is now used by default. This is certainly going into my ~/.bashrc</p>
</description>
    </item>
    
  </channel>
</rss>
