xterm_pencolor(3f) - [M_xterm] set xterm(1) color by number using escape sequences (LICENSE:MIT)
Synopsis
Description
Options
See Also
Example
Author
License
subroutine xterm_pencolor(pennum,color)
integer,intent(in) :: pennum character(len=*),intent(in) :: color
Set the color of a pen of an xterm(1) window.
pennum which pen color to set. Typically, allowed values are from 0 to at least 15. color A string specifying a color. Value may be a name or a HEX value string of the form #RRGGBB, or of the form rgb:RR/GG/BB
showrgb(1) shows known named X11 Windows colors
A sample program:
program demo_xterm_pencolor use M_xterm, only : xterm_pencolor call xterm_pencolor(0,gray) call xterm_pencolor(1,rgb:000/fff/000) call xterm_pencolor(2,#FF00FF) end program demo_xterm_pencolor
John S. Urban
Nemo Release 3.1 | xterm_pencolor (3) | February 23, 2025 |