C Library Functions  - print_ansi (3)

NAME

print_ansi(3f) - [M_pixel:PRINT] print small pixel array as colored text on terminals and terminal emulators that obey ANSI escape sequences (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Example
Author
License

SYNOPSIS

definition:

   subroutine print_ansi(filename)
   character(len=*),intent(in) :: filename

DESCRIPTION

This driver prints the pixmap as a simple array of ANSI terminal escape sequences. It assumes only single-digit colors are used. It is appropriate for inspecting small pixmaps.

OPTIONS

FILENAME
  name of output file. If blank write to stdout.

EXAMPLE

Sample Program:

   program demo_print_ansi
   use M_pixel
   implicit none
   call prefsize(80,24)
      call vinit()
      call ortho2(0.0,80.0,0.0,24.0)
      call linewidth(400)
      call color(1)
      call circle(12.0,12.0,6.0)
      call color(2)
      call circle(72.0,12.0,6.0)
      call print_ansi()
      call vexit()
   end program demo_print_ansi

AUTHOR

John S. Urban

LICENSE

Public Domain


Nemo Release 3.1 print_ansi (3) July 22, 2023
Generated by manServer 1.08 from 7b9700ea-78d5-4c94-b0d8-f0ec9eb9137f using man macros.