Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

OUTTEXT

Graphics Subroutine: In text or graphics mode, sends a string of text to the screen, including any trailing blanks. This routine is only available for Windows.

Module

USE IFQWIN

CALL OUTTEXT (text)

text

(Input) Character*(*). String to be displayed.

Text output begins at the current text position in the color set with SETTEXTCOLORRGB or SETTEXTCOLOR. No formatting is provided. After it outputs the text, OUTTEXT updates the current text position.

To output text using special fonts, you must use the OUTGTEXT subroutine.

Example

 USE IFQWIN
 INTEGER(2) oldcolor
 TYPE (rccoord) rc

 CALL CLEARSCREEN($GCLEARSCREEN)
 CALL SETTEXTPOSITION (INT2(1), INT2(5), rc)
 oldcolor = SETTEXTCOLOR(INT2(4))
 CALL OUTTEXT ('Hello, everyone')
 END