From: Stas Sergeev <stssppnn@yahoo.com>
To: linux-msdos@vger.kernel.org
Subject: Re: PrintScreen
Date: Sat, 11 Jan 2003 01:32:44 +0300 [thread overview]
Message-ID: <3E1F4A0C.4070909@yahoo.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 493 bytes --]
Hello.
Jan Willem Stumpel wrote:
> Pressing the PrtSc key in dosemu (1.1.4.0) prints the (text)
> screen, which is a nice surprise.
Why? I can assure you you'll have
the same also with 1.1.3.
What did you expect anyway? :)
> Specifying a different printer in dosemu.conf works for "normal"
> DOS printing (printing from applications and COPYing to LPT1), but
> not for PrtSc: the printer always seems to be "lp". Can anyone
> confirm this? Is there a fix?
Maybe the attached patch can help?
[-- Attachment #2: pr0.diff --]
[-- Type: text/plain, Size: 764 bytes --]
--- src/base/async/int.c Thu Jan 9 19:02:03 2003
+++ src/base/async/int.c Sat Jan 11 01:23:17 2003
@@ -1471,15 +1471,15 @@
int x_pos, y_pos;
ushort *base=SCREEN_ADR(READ_BYTE(BIOS_CURRENT_SCREEN_PAGE));
g_printf("PrintScreen: base=%p, lines=%i columns=%i\n", base, li, co);
- printer_open(1);
+ printer_open(0);
for (y_pos=0; y_pos < li; y_pos++) {
for (x_pos=0; x_pos < co; x_pos++)
- printer_write(1, READ_BYTE(base + y_pos*co + x_pos));
- printer_write(1, 0x0d);
- printer_write(1, 0x0a);
+ printer_write(0, READ_BYTE(base + y_pos*co + x_pos));
+ printer_write(0, 0x0d);
+ printer_write(0, 0x0a);
}
- printer_flush(1);
- printer_close(1);
+ printer_flush(0);
+ printer_close(0);
}
static void int05(u_char i)
next reply other threads:[~2003-01-10 22:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-10 22:32 Stas Sergeev [this message]
2003-01-11 11:55 ` PrintScreen Jan Willem Stumpel
-- strict thread matches above, loose matches on Subject: below --
2003-01-10 19:49 PrintScreen Jan Willem Stumpel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E1F4A0C.4070909@yahoo.com \
--to=stssppnn@yahoo.com \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.