cross platform - How to get console width without using ncurses? -
what need console width, improve not depend on library provides many other functions. in addition, user of library don't have ncurses
dev headers installed; if remove dependency on ncurses
, there less claims user.
i have downloaded ncurses source code , had brief @ it, failed grasp key code collecting console width. know fcntl()
can it, windows don't have it. tell me how width in cross-platform way?
you find in columns environment variable.
cross-platform console-application ncurses fcntl
No comments:
Post a Comment