title: How to get terminal size or font size in pixels?
body: <p>I've seen some posts and answers about how to get the terminal size in numbers of columns and rows. Can I get the terminal size, or equivalently, the size of the font used in the terminal, in pixels? </p>
  
  <p>(I wrote <em>equivalently</em> because terminal width[px] = font width[px]*number of columns. or that is what I mean by <em>terminal width</em>.)</p>
  
  <p>I'm looking for a way that works with python 2 on linux, but I do appreciate answers that works only with python 3. Thanks!</p>