C Library Functions  - xterm_get_position (3)

NAME

xterm_get_position(3f) - [M_xterm] obtain xterm(1) screen position (LICENSE:MIT)

CONTENTS

Synopsis
Description
Example
Author
License

SYNOPSIS

subroutine xterm_get_position(right,down)

     integer,intent(out) :: right
     integer,intent(out) :: down

DESCRIPTION

Sends an escape sequence to stdout to query the position of an xterm(1) window. The position of the upper left corner of the xterm window is returned relative to the upper left corner of the display

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

EXAMPLE

A sample program:

   program demo_xterm_get_position
   use M_xterm, only : xterm_get_position
   implicit none
   integer :: iright, idown
      call xterm_get_position(iright,idown)
      write(*,*)’right=’,iright,’ down=’,idown
   end program demo_xterm_get_position

AUTHOR

John S. Urban

LICENSE

    MIT


Nemo Release 3.1 xterm_get_position (3) February 23, 2025
Generated by manServer 1.08 from 3e950d3e-8e0b-4be6-a68e-b26bdcd6cba0 using man macros.