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)
Synopsis
Description
Options
Example
Author
License
definition:
subroutine print_ansi(filename) character(len=*),intent(in) :: filename
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.
FILENAME name of output file. If blank write to stdout.
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
John S. Urban
Public Domain
Nemo Release 3.1 | print_ansi (3m_pixel) | April 21, 2023 |