* help with dosemu
@ 2004-09-27 14:42 abu sager
2004-09-28 14:43 ` "Real" text in xdosemu Jan Willem Stumpel
0 siblings, 1 reply; 7+ messages in thread
From: abu sager @ 2004-09-27 14:42 UTC (permalink / raw)
To: linux-msdos
Hi sir;
i download dosemu form your site and i install it
i found some files in /usr/local/shre/dosemu
but i don't how to use this program
please can you guide me
please
best wishes
abdullah alwabel
^ permalink raw reply [flat|nested] 7+ messages in thread
* "Real" text in xdosemu
2004-09-27 14:42 help with dosemu abu sager
@ 2004-09-28 14:43 ` Jan Willem Stumpel
2004-09-28 15:25 ` Joe Henley
2004-09-28 20:58 ` Claudia Neumann
0 siblings, 2 replies; 7+ messages in thread
From: Jan Willem Stumpel @ 2004-09-28 14:43 UTC (permalink / raw)
To: linux-msdos
I have version 1.3, and its xdosemu has a resizable window both
for graphics and text, which is very nice. But -- this also means
that copying from the xdosemu window and pasting into other Linux
windows does not work anymore.
I apologize to all if this is an old FAQ (it may very well be) but
is there a way to enable copying text from the xdosemu window like
it used to be? (I don't mind if this means giving up the resize
feature for text screens).
Regards, Jan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: "Real" text in xdosemu
2004-09-28 14:43 ` "Real" text in xdosemu Jan Willem Stumpel
@ 2004-09-28 15:25 ` Joe Henley
2004-09-29 1:42 ` Ralph Alvy
2004-09-28 20:58 ` Claudia Neumann
1 sibling, 1 reply; 7+ messages in thread
From: Joe Henley @ 2004-09-28 15:25 UTC (permalink / raw)
To: Jan Willem Stumpel; +Cc: linux-msdos
Jan,
I had the same issue. I wanted a larger font than was available, so I
was loading a standard font and then resizing the window to a larger
size. I finally found (thru some folks help on this site) a font large
enough to use without needing to resize the window. After loading that,
the window was large enough, but no longer re-sizable. And I could
once again do copy and paste.
The lines in the /etc/dosemu/dosemu.conf file which matter are:
$_X_font = "vga1024norm" # <-- anything will work, this is a very large font
$_X_bilin_filt = (on)
Good luck.
Joe Henley
Jan Willem Stumpel wrote:
> I have version 1.3, and its xdosemu has a resizable window both
> for graphics and text, which is very nice. But -- this also means
> that copying from the xdosemu window and pasting into other Linux
> windows does not work anymore.
>
> I apologize to all if this is an old FAQ (it may very well be) but
> is there a way to enable copying text from the xdosemu window like
> it used to be? (I don't mind if this means giving up the resize
> feature for text screens).
>
> Regards, Jan
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: "Real" text in xdosemu
2004-09-28 14:43 ` "Real" text in xdosemu Jan Willem Stumpel
2004-09-28 15:25 ` Joe Henley
@ 2004-09-28 20:58 ` Claudia Neumann
1 sibling, 0 replies; 7+ messages in thread
From: Claudia Neumann @ 2004-09-28 20:58 UTC (permalink / raw)
To: Jan Willem Stumpel; +Cc: linux-msdos
Hi Jan!
Am Dienstag, 28. September 2004 16:43 schrieben Sie:
> I apologize to all if this is an old FAQ (it may very well be) but
> is there a way to enable copying text from the xdosemu window like
> it used to be? (I don't mind if this means giving up the resize
> feature for text screens).
The fonts you need are here:
http://resmedicinae.sourceforge.net/manuals/apw_linux/vgafonts.tgz
cu
Claudia
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: "Real" text in xdosemu
2004-09-28 15:25 ` Joe Henley
@ 2004-09-29 1:42 ` Ralph Alvy
2004-09-29 7:17 ` Jan Willem Stumpel
0 siblings, 1 reply; 7+ messages in thread
From: Ralph Alvy @ 2004-09-29 1:42 UTC (permalink / raw)
To: linux-msdos
>> I apologize to all if this is an old FAQ (it may very well be) but
>> is there a way to enable copying text from the xdosemu window like
>> it used to be? (I don't mind if this means giving up the resize
>> feature for text screens).
I have never been able to copy/paste from a xdosemu window. How do you
do that?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: "Real" text in xdosemu
2004-09-29 1:42 ` Ralph Alvy
@ 2004-09-29 7:17 ` Jan Willem Stumpel
2004-10-14 9:41 ` Bart Oldeman
0 siblings, 1 reply; 7+ messages in thread
From: Jan Willem Stumpel @ 2004-09-29 7:17 UTC (permalink / raw)
To: linux-msdos
Ralph Alvy wrote:
> I have never been able to copy/paste from a xdosemu window. How
> do you do that?
It is strange .. copying and pasting to and from xdosemu (text
programs only, of course) *does* works fine in 1.3. And it works
irrespective of the font used, and whether the text window is
resizable or not!
I only *thought* it did not work, because I could not see the
selected text highlighted in the program I tried it with.
But even if you cannot see the selection highlighted, it is copied
into the buffer, as you can see by pasting it into another program
running in a Linux xterm.
Why selections are highlighted in some programs and not in others,
I have no idea. Even within the same program there are
differences. For instance in Turbo C, selections are highlighted
in the main edit screen, but not in the help screens. But
selections can be taken from both of them.
Regards, Jan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: "Real" text in xdosemu
2004-09-29 7:17 ` Jan Willem Stumpel
@ 2004-10-14 9:41 ` Bart Oldeman
0 siblings, 0 replies; 7+ messages in thread
From: Bart Oldeman @ 2004-10-14 9:41 UTC (permalink / raw)
To: linux-msdos
On Wed, 29 Sep 2004, Jan Willem Stumpel wrote:
> It is strange .. copying and pasting to and from xdosemu (text
> programs only, of course) *does* works fine in 1.3. And it works
> irrespective of the font used, and whether the text window is
> resizable or not!
I had problems myself with KDE 3.2.3: after you selected by dragging the
mouse it would be cleared as soon as I released the mouse button. That's
fixed now and committed to the CVS. The fix for 1.2.2 is below in case
anyone is interested.
> Why selections are highlighted in some programs and not in others,
> I have no idea. Even within the same program there are
> differences. For instance in Turbo C, selections are highlighted
> in the main edit screen, but not in the help screens. But
> selections can be taken from both of them.
True, I'll have a look at that later.
Bart
--- src/env/video/X.c 4 Jul 2004 05:39:55 -0000 1.4.2.10
+++ src/env/video/X.c 14 Oct 2004 09:34:04 -0000
@@ -453,9 +453,16 @@
static int sel_start_row = -1, sel_end_row = -1, sel_start_col, sel_end_col;
static unsigned short *sel_start = NULL, *sel_end = NULL;
static u_char *sel_text = NULL;
-static Atom compound_text_atom = None;
-static Atom utf8_text_atom = None;
-static Atom text_atom = None;
+enum {
+ TARGETS_ATOM,
+ TIMESTAMP_ATOM,
+ COMPOUND_TARGET,
+ UTF8_TARGET,
+ TEXT_TARGET,
+ STRING_TARGET,
+ NUM_TARGETS
+};
+static Atom targets[NUM_TARGETS];
static Boolean doing_selection = FALSE, visible_selection = FALSE;
#endif
@@ -844,9 +851,12 @@
}
#if CONFIG_X_SELECTION
/* Get atom for COMPOUND_TEXT/UTF8/TEXT type. */
- compound_text_atom = XInternAtom(display, "COMPOUND_TEXT", False);
- utf8_text_atom = XInternAtom(display, "UTF8_STRING", False);
- text_atom = XInternAtom(display, "TEXT", False);
+ targets[TARGETS_ATOM] = XInternAtom(display, "TARGETS", False);
+ targets[TIMESTAMP_ATOM] = XInternAtom(display, "TIMESTAMP", False);
+ targets[COMPOUND_TARGET] = XInternAtom(display, "COMPOUND_TEXT", False);
+ targets[UTF8_TARGET] = XInternAtom(display, "UTF8_STRING", False);
+ targets[TEXT_TARGET] = XInternAtom(display, "TEXT", False);
+ targets[STRING_TARGET] = XA_STRING;
#endif
/* Delete-Window-Message black magic copied from xloadimage. */
proto_atom = XInternAtom(display, "WM_PROTOCOLS", False);
@@ -4094,8 +4104,20 @@
(unsigned long) requestor);
e.xselection.property = None;
}
- else if ((target == XA_STRING) || (target == compound_text_atom) ||
- (target == utf8_text_atom) || (target == text_atom)) {
+ else if (target == targets[TARGETS_ATOM]) {
+ X_printf("X: selection: TARGETS\n");
+ XChangeProperty(display, requestor, property, XA_ATOM, 32,
+ PropModeReplace, (char *)targets, NUM_TARGETS);
+ }
+ else if (target == targets[TIMESTAMP_ATOM]) {
+ X_printf("X: timestamp atom\n");
+ XChangeProperty(display, requestor, property, XA_INTEGER, 32,
+ PropModeReplace, (char *)&e.xselection.time, 1);
+ }
+ else if (target == targets[STRING_TARGET] ||
+ target == targets[COMPOUND_TARGET] ||
+ target == targets[UTF8_TARGET] ||
+ target == targets[TEXT_TARGET]) {
X_printf("X: selection: %s\n",sel_text);
e.xselection.target = target;
XChangeProperty(display, requestor, property, target, 8, PropModeReplace,
@@ -4107,8 +4129,9 @@
else
{
e.xselection.property = None;
- X_printf("X: Window 0x%lx requested unknown selection format %ld\n",
- (unsigned long) requestor, (unsigned long) target);
+ X_printf("X: Window 0x%lx requested unknown selection format %ld %s\n",
+ (unsigned long) requestor, (unsigned long) target,
+ XGetAtomName(display, target));
}
XSendEvent(display, requestor, False, 0, &e);
}
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-10-14 9:41 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-27 14:42 help with dosemu abu sager
2004-09-28 14:43 ` "Real" text in xdosemu Jan Willem Stumpel
2004-09-28 15:25 ` Joe Henley
2004-09-29 1:42 ` Ralph Alvy
2004-09-29 7:17 ` Jan Willem Stumpel
2004-10-14 9:41 ` Bart Oldeman
2004-09-28 20:58 ` Claudia Neumann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox