Skip to content

Terminal width detection library for Python

License

Notifications You must be signed in to change notification settings

ArneBachmann/termwidth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terminal width determination library

This library exports exactly one function:

import termwidth
w, h = termwidth.getTermWidth()

x = w - 5
print(" " * w / 2 + "Hello" + " " * w / 2)

About

Terminal width detection library for Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages