C Library Functions  - xterm_get_pencolor (3)

NAME

xterm_get_pencolor(3f) - [M_xterm] query xterm(1) color by number (LICENSE:MIT)

CONTENTS

Synopsis
Description
Options
Returns
Example
Author
License

SYNOPSIS

function xterm_get_pencolor(pennum) result(color)

     integer,intent(in)  :: pennum
     character(len=*)    :: color

DESCRIPTION

Get the color of an xterm(1) color number.

OPTIONS

pennum which pen number to describe the color of

RETURNS

color A string specifying the pen color in the form "rgb:RR/GG/BB"

EXAMPLE

A sample program:

   program demo_xterm_get_pencolor
   use M_xterm, only : xterm_get_pencolor
   character(len=:),allocatable :: cache
   integer :: i
   do i=0,15
      cache=xterm_get_pencolor(i)
      write(*,’(i4.4,1x,a)’)i,cache
   enddo
   end program demo_xterm_get_pencolor

Sample output:

AUTHOR

John S. Urban

LICENSE

    MIT


Nemo Release 3.1 xterm_get_pencolor (3) June 29, 2025
Generated by manServer 1.08 from 4da2cf07-0deb-42b1-95c2-562aa254a218 using man macros.