Mail Archives: djgpp/1998/05/20/07:33:57
From: | "Sergi Marsal (C+)" <smarsal AT abonados DOT cplus DOT es>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | 80x50 text mode with Allegro
|
Date: | Tue, 19 May 1998 01:52:32 +0200
|
Organization: | Telefonica Transmision de Datos
|
Lines: | 35
|
Message-ID: | <6jqhdl$ink$1@talia.mad.ibernet.es>
|
NNTP-Posting-Host: | abonado-195-53-41-163.cat.es
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
How can I put a 80x50 text mode with (or without) allegro 3.0
I tried the set_gfx_mode function with the GFX_TEXT parameter but only get a
80x25 text mode...
another question
How can I detect if the printer is available for printing, I can print but
cannot detect when it's on. I use this code:
#include <stdio.h>
int main(void)
{
FILE *printer;
if (!(printer=fopen("prn", "w")))
{
printf("printer not ready"); // never gets here
}
else
{
fwrite(whatever, 100, 1, printer); // always here, printer on and
off
fclose(printer);
}
return 0;
}
Somebody knows any other way to print?
thanks
- Raw text -