You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fortran is often used to develop console backend programs. In certain scenarios, there may be a need to obtain the terminal size to display content appropriately.
Similar to Python, this routine is suitable to be placed in stdlib_system (OS, Operating System).
Prior Art
C/C++:
Unix/Linux: Obtain the winsize structure through the ioctl system call and the TIOCGWINSZ command;
Windows: Use the GetConsoleScreenBufferInfo API to obtain console buffer information.
Motivation
Fortran is often used to develop console backend programs. In certain scenarios, there may be a need to obtain the terminal size to display content appropriately.
Similar to Python, this routine is suitable to be placed in
stdlib_system
(OS, Operating System).Prior Art
winsize
structure through theioctl
system call and theTIOCGWINSZ
command;GetConsoleScreenBufferInfo
API to obtain console buffer information.Additional Information
No response
The text was updated successfully, but these errors were encountered: