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) February 23, 2025
Generated by manServer 1.08 from 6e96e54f-89f0-49d3-892d-37c73ec45ed9 using man macros.