C Library Functions  - xterm_get_geometry (3)

NAME

xterm_get_geometry(3f) - [M_xterm] obtain xterm(1) screen size in character units (LICENSE:MIT)

CONTENTS

Synopsis
Description
Example
Author
License

SYNOPSIS

subroutine xterm_get_geometry(rows,cols)

     integer,intent(out) :: rows
     integer,intent(out) :: cols

DESCRIPTION

Sends an escape sequence to stdout to query the size of an xterm(1) window. The number of character rows and character columns is returned.

For this to work stdout must be your terminal device; so this may not work effectively in a pipe or when redirection is used, depending on your system.

EXAMPLE

A sample program:

   program demo_xterm_get_geometry
   use M_xterm, only : xterm_get_geometry
   implicit none
   integer :: irows, icols
      call xterm_get_geometry(irows,icols)
      write(*,*)’rows=’,irows,’ cols=’,icols
   end program demo_xterm_get_geometry

AUTHOR

John S. Urban

LICENSE

    MIT


Nemo Release 3.1 xterm_get_geometry (3) August 28, 2026
Generated by manServer 1.08 from a1ef2b97-bc90-4bb1-ace8-11c7e25991f6 using man macros.