public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Crashes if running WordPerfect 5.1
@ 2004-05-29 18:13 Stas Sergeev
  2004-05-29 20:47 ` Bart Oldeman
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Stas Sergeev @ 2004-05-29 18:13 UTC (permalink / raw)
  To: linux-msdos

Hello.

Lars_BjÛrndal wrote:
> Dosemu, and I picked the latest CVS (yesterday evening). Now, I can
> not run WordPerfect 5.1 any more, Dosemu crashes. It's very important
> for me to be able to run wp. What can I do to this?
You can set

$_mapping = "mapfile"

in your dosemu.conf.
-
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: Crashes if running WordPerfect 5.1
  2004-05-29 18:13 Crashes if running WordPerfect 5.1 Stas Sergeev
@ 2004-05-29 20:47 ` Bart Oldeman
  2004-05-30 21:05 ` f11 and f12 Cheryl Homiak
  2004-05-31 16:41 ` Crashes if running WordPerfect 5.1 Lars Bjørndal
  2 siblings, 0 replies; 7+ messages in thread
From: Bart Oldeman @ 2004-05-29 20:47 UTC (permalink / raw)
  To: linux-msdos

Hi,

> Lars_BjÛrndal wrote:
> > Dosemu, and I picked the latest CVS (yesterday evening). Now, I can
> > not run WordPerfect 5.1 any more, Dosemu crashes. It's very important
> > for me to be able to run wp. What can I do to this?
> You can set
>
> $_mapping = "mapfile"
>
> in your dosemu.conf.

The patch below also does the job. As far as I could see DPMI no longer
calls this function so I guess I could remove the comment whilst I was at
it.

Bart

--- src/arch/linux/mapping/mapshm.c.~1.11.~	Sun May  9 11:39:26 2004
+++ src/arch/linux/mapping/mapshm.c	Sat May 29 21:40:08 2004
@@ -147,15 +147,23 @@
   munmap(addr, mapsize);
 }

-/*
- * NOTE: DPMI relies on realloc_mapping() _not_ changing the address ('addr'),
- *       when shrinking the memory region.
- */
 static void *realloc_mapping_shm(int cap, void *addr, int oldsize, int newsize)
 {
+  void *ret;
   Q__printf("MAPPING: realloc, cap=%s, addr=%p, oldsize=%x, newsize=%x\n",
 	cap, addr, oldsize, newsize);
-  return mremap(addr, oldsize, newsize, MREMAP_MAYMOVE);
+
+  if (newsize <= oldsize)
+    return mremap(addr, oldsize, newsize, MREMAP_MAYMOVE);
+
+  /* expanded new memory is apparently not shared so can't be aliased.
+     so we must allocate a new region and memcpy to it */
+  ret = alloc_mapping_shm(cap, newsize);
+  if (ret != MAP_FAILED) {
+    memcpy(ret, addr, oldsize);
+    free_mapping_shm(cap, addr, oldsize);
+  }
+  return ret;
 }

 static void *mmap_mapping_shm(int cap, void *target, int mapsize, int protect, void *source)

-
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

* f11 and f12
  2004-05-29 18:13 Crashes if running WordPerfect 5.1 Stas Sergeev
  2004-05-29 20:47 ` Bart Oldeman
@ 2004-05-30 21:05 ` Cheryl Homiak
  2004-05-30 21:26   ` Bart Oldeman
  2004-05-31 16:41 ` Crashes if running WordPerfect 5.1 Lars Bjørndal
  2 siblings, 1 reply; 7+ messages in thread
From: Cheryl Homiak @ 2004-05-30 21:05 UTC (permalink / raw)
  To: dosemu

I find that since upgrading to dosemu-1.2.1 I can not access F11 and F12
in MegaDots, a program for braille translation and formatting. When I try
F11 or F12 in this program, it complains about that macro not existing. Is
this a known program and is there something I can do about it?
Thanks.


-- 
Cheryl

"Do not fear, for I am with you;
do not be dismayed, for I am your God.
I will strengthen you and help you;
I will uphold you with my righteous right hand."

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: f11 and f12
  2004-05-30 21:05 ` f11 and f12 Cheryl Homiak
@ 2004-05-30 21:26   ` Bart Oldeman
  2004-05-31 19:14     ` Cheryl Homiak
  0 siblings, 1 reply; 7+ messages in thread
From: Bart Oldeman @ 2004-05-30 21:26 UTC (permalink / raw)
  To: Cheryl Homiak; +Cc: dosemu

On Sun, 30 May 2004, Cheryl Homiak wrote:

> I find that since upgrading to dosemu-1.2.1 I can not access F11 and F12
> in MegaDots, a program for braille translation and formatting. When I try
> F11 or F12 in this program, it complains about that macro not existing. Is
> this a known program and is there something I can do about it?

depends where you use it. Terminal? Console? X?
On the console $_rawkeyboard may help (dosemu -k). Otherwise try shift-f1,
many terminals don't distinguish between shift-f1 and f11. If all else
fails ctrl-6 - (that is ctrl+six then minus) and ctrl-6 = should work.

Bart


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Crashes if running WordPerfect 5.1
  2004-05-29 18:13 Crashes if running WordPerfect 5.1 Stas Sergeev
  2004-05-29 20:47 ` Bart Oldeman
  2004-05-30 21:05 ` f11 and f12 Cheryl Homiak
@ 2004-05-31 16:41 ` Lars Bjørndal
  2 siblings, 0 replies; 7+ messages in thread
From: Lars Bjørndal @ 2004-05-31 16:41 UTC (permalink / raw)
  To: linux-msdos

Stas Sergeev <stsp@aknet.ru> writes:

> You can set
>
> $_mapping = "mapfile"

Yes, it worked! What happens when you spesify that?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: f11 and f12
  2004-05-30 21:26   ` Bart Oldeman
@ 2004-05-31 19:14     ` Cheryl Homiak
  2004-06-01 20:14       ` Lars Bjørndal
  0 siblings, 1 reply; 7+ messages in thread
From: Cheryl Homiak @ 2004-05-31 19:14 UTC (permalink / raw)
  To: dosemu

It is the console I am using, and the ctrl-6 combinations worked.
Thanks.



-- 
Cheryl

"Do not fear, for I am with you;
do not be dismayed, for I am your God.
I will strengthen you and help you;
I will uphold you with my righteous right hand."

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: f11 and f12
  2004-05-31 19:14     ` Cheryl Homiak
@ 2004-06-01 20:14       ` Lars Bjørndal
  0 siblings, 0 replies; 7+ messages in thread
From: Lars Bjørndal @ 2004-06-01 20:14 UTC (permalink / raw)
  To: dosemu

Are there a complete list of the function keys (with combinations) you
can use if you run dosemu for instance through SSH?
Lars

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-06-01 20:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-29 18:13 Crashes if running WordPerfect 5.1 Stas Sergeev
2004-05-29 20:47 ` Bart Oldeman
2004-05-30 21:05 ` f11 and f12 Cheryl Homiak
2004-05-30 21:26   ` Bart Oldeman
2004-05-31 19:14     ` Cheryl Homiak
2004-06-01 20:14       ` Lars Bjørndal
2004-05-31 16:41 ` Crashes if running WordPerfect 5.1 Lars Bjørndal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox