xterm_get_position(3f) - [M_xterm] obtain xterm(1) screen position (LICENSE:MIT)
Synopsis
Description
Example
Author
License
subroutine xterm_get_position(right,down)
integer,intent(out) :: right integer,intent(out) :: down
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 displayFor this to work stdout must be your terminal device; so this may not work effectively in a pipe or when redirection is used.
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
John S. Urban
Nemo Release 3.1 | xterm_get_position (3) | February 23, 2025 |