Manual Reference Pages  - print_ansi (3m_pixel)

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 (3m_pixel) April 21, 2023
Generated by manServer 1.08 from 02dde14a-923b-49e3-9ccc-46de8d077b48 using man macros.