title: What unicode characters are best for drawing a squarewave in a string
body: <p>I am trying to represent a square wave pulse train in a string, from an array of stored GPIO events and timings. the code is working but I need better Unicode characters for the transitions.</p>
  
  <p>this is my current method</p>
  
  <pre><code>    public String waveform()
      {
      String s = "";
      int pulses;
      int pulseWidth;
  
      pulseWidth = events.get(1).duration; //mostly right!
      for (RF433Event e: events)
      {
          pulses = e.duration/pulseWidth;
          if (e.gpioEvent.getEdge() == PinEdge.RISING)
          {
              // rising edge so for the duration it was low
              for (int i = 0; i&lt;pulses; i++) s = s+'_';
              s = s+"\u02E9";
          } else
          {
              // falling edge so for the duration it was high
              for (int i = 0; i&lt;pulses; i++) s = s+"\u0305";
              s = s+"\u02E5";
          }
  
      }
      return s;
      }
  </code></pre>
  
  <p>The output looks like this in the Intellij console window
  <a href="https://i.stack.imgur.com/wF4fQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wF4fQ.jpg" alt="enter image description here"></a></p>
  
  <p>but strangely is not appearing on the RPi, do I need to install something else on the Pi? </p>