I am developing a personal project/idea for a headless Raspberry Pi that works without a GUI display. I am working on a text graphicsesque design.
As the Raspberry Pi allows one to plug into most any screen, I want to be able to determine the screens resolution so I can create an optimal display.
My problem lies in actually getting the screens resolution. I have tried a few methods in python, such as messing with
xrandr and the the Tkinter module, but both have the same problem. There technically isn't a screen, just a console.
Text editors like vim seem to be able to fit themselves without any problem.
Can I get a screens resolution, without having to load up a display? All suggestions welcome, but my proficiencies are in the Python, C++, Java and Bash range.