[UP]


Manual Reference Pages  - xterm_get_geometry (3)

NAME

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

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

Public Domain


xterm_get_geometry (3) September 17, 2020
Generated by manServer 1.08 from 505e3afd-6c37-4ca7-bec6-c773cfb007ab using man macros.