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?
(I wrote equivalently because terminal width[px] = font width[px]*number of columns. or that is what I mean by terminal width.)
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!