I wonder if dosemu is in debian 8 or 9 and if that would work?
I'm no linux expert. On ubuntu 19.10 I just did "apt-get install
dosemu" and followed the instructions on the magickaBBS wiki for dos
doors.
I have eliminated all the chatter when running doors with dosemu by
ending the dosemu execution line with 2>&1>/dev/null but I still see..
ERROR: unknown window sizes li=0 co=0, setting to 80x25
Hello Apam,
I have eliminated all the chatter when running doors with dosemu by
ending the dosemu execution line with 2>&1>/dev/null but I still
see..
ERROR: unknown window sizes li=0 co=0, setting to 80x25
Do you know if there is a way to tell dosemu to use 80x25, or
another window size if needed?
I have eliminated all the chatter when running doors with dosemu by
ending the dosemu execution line with 2>&1>/dev/null but I still see..
ERROR: unknown window sizes li=0 co=0, setting to 80x25
I use to solve this by calling "stty cols 80 rows 25" just before
calling dosemu.
That may work for you, I don't really have all the details of your implementation.
Do you know if there is a way to tell dosemu to use 80x25, or
another window size if needed?
Magicka should be telling it itself.. there should be no need to
run stty.
I have eliminated all the chatter when running doors with
dosemu by ending the dosemu execution line with 2>&1>/dev/null
but I still see..
Just a drive-by comment, but that redirection probably isn't
quite what you want.
In particular, when using Bourne-like shells (ksh, bash, dash, zsh,
etc), order of redirection matters. Redirections are evaluated left-to-right, so `2>&1>/dev/null` with redirect file descriptor
number 2 (conventionally, "standard error") to whatever file
descriptor 1 (also by convention "standard output") refers to
_at the time of redirection_, and _then_ redirect file descriptor
1 to /dev/null. Notably after both redirections are processed,
file descriptor 2 will still point to whatever 1 referred to
before 1 was redirected to /dev/null.
In other words, this doesn't redirect both stderr and stdout to
/dev/null. To do that, you want to do: `>/dev/null2>&1`.
Do you know if there is a way to tell dosemu to use 80x25, or
another window size if needed?
Magicka should be telling it itself.. there should be no need
to run stty.
I had 2>/dev/null at the end of the /usr/bin/dosemu ... line but I
I had 2> was
seeing the contents of the .bat file before the door fired up so I
was trying to eliminate that.
seeing the contents of the .bat file before the door fired up
so I was trying to eliminate that.
It sounds like you've not got the serial port set up, when it is,
only the serial port output should be going to stdout.
I'm still not certain what I should do to eliminate the .bat file displaying it's contents before the door runs, is 1>&2>/dev/null what I want?
I just changed the redirect to 1>/dev/null and that seems to have
worked. I just see the door fire up.. none of the .bat file
contents and nothing about the cols or rows..
I am using your dosemu.conf with $_com1 = "virtual".
If you'd like to try and let me know the next time you have some
free time that would be great.. :)
Short answer, I'm afraid I don't know why your batch file is
displaying, but that redirection is almost certainly NOT what you
want.
My suspicion is that, if you opened up the .bat file itself, you'd
see it either directing itself to echo everything (I think that was
a thing in DOS batch files? I honestly don't remember, and haven't touched MSFT anything in many years. I have some vague memory of
`@echo on` or something like that at the top of the file. A quick
search tells me that prepending each command with '@' will disable
echoing the command as the batch file executes and that if you add
`@echo off` as the first line of the file it won't echo the
commands it executes as it runs), or it's explicitly cat'ing itself
out (e.g. it has a line like `type me.bat`).
Fun historical fact: the existence of `stderr` owes itself to the invention of pipes in 3rd Edition Research Unix. Before that,
there was no need for a separate error stream!
I just changed the redirect to 1>/dev/null and that seems to
have worked. I just see the door fire up.. none of the .bat
file contents and nothing about the cols or rows..
Yeah, you definitley don't want to do that. The $_com1 = "virtual"
is supposed to make stdout (file descriptor 1) show the serial port stream, so you need that for Magicka's stdio redirection to capture anything.
I am using your dosemu.conf with $_com1 = "virtual".
Hmm, either it's not reading that config file, or there's something
wrong with dosemu. What version of dosemu are using?
Hmm, either it's not reading that config file, or there's something
wrong with dosemu. What version of dosemu are using?
Hmm, either it's not reading that config file, or there's
something wrong with dosemu. What version of dosemu are using?
The deb I installed is
dosemu_1.4.0.7+20130105+b028d3f-2+1amd64.deb.
It's the latest version I believe. It's not available on debian 10
that I am running here. I added stretch (debian 9) to my sources
list to install it.
Sysop: | altere |
---|---|
Location: | Houston, TX |
Users: | 66 |
Nodes: | 4 (0 / 4) |
Uptime: | 12:01:22 |
Calls: | 635 |
Calls today: | 2 |
Files: | 7,638 |
Messages: | 292,249 |