xterm_get_iconstate(3f) - [M_xterm] obtain xterm(1) icon state using escape sequences (LICENSE:MIT)
Synopsis
Description
Result
Example
Author
License
function xterm_get_iconstate() result(state)
integer :: state
Sends an escape sequence to stdout to query the icon state of an xterm(1) window.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.
state returns opened if window is not iconified; closed if iconified.
A sample program:
program demo_xterm_get_iconstate use M_xterm, only : xterm_get_iconstate implicit none write(*,*) xterm_get_iconstate() end program demo_xterm_get_iconstate
John S. Urban
Nemo Release 3.1 | xterm_get_iconstate (3) | February 23, 2025 |