title: Print rectangles to terminal
body: <p>I'm trying to write a text editor for Linux that looks like MS-DOS <code>EDIT</code>.
  <img src="https://www.computerhope.com/jargon/e/doseditwindow.jpg" alt=""></p>
  
  <p>However, I'm stuck because I can't figure out how to draw the thin rectangles around the editor screen and dialog box. I know the Linux <code>dialog</code> command can do something similar:</p>
  
  <p><img src="https://bash.cyberciti.biz/uploads/bashwiki/thumb/3/30/Dialog-yesno-box-output.png/600px-Dialog-yesno-box-output.png" alt=""></p>
  
  <p>How can I draw rectangles like that around the screen (preferably without curses)?</p>