You are here

outtext and outtextxy functions

Declarations :-
void outtext(char *string);
void outtextxy(int x, int y, char *string);

These functions are used to display text on the screen in graphics mode. outtext displays text at the current position while outtextxy displays text from a specified point(x,y) on the screen.

C programming code

   int gd = DETECT, gm;
   outtext("To display text at a particular position on the screen use outtextxy");
   outtextxy(100, 100, "Hi There");
   return 0;

Note : Do not use printf, gotoxy and other textmode functions in graphics mode. Do not use escape sequences such as '\n','\t' etc in outtext and outtextxy functions as they do not work as they work in textmode.