VOGONS


Reply 8 of 25, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

I modified my test build of 0.72 to re-read the BIOS values when an "H" (cursor position) ANSI command is processed, and it works well. Here's a screen of an Infocom game running with an original interpreter at 80x50:

info50tp7.png

One small additional issue is that when setting the 8x8 font, the cursor disappears. Looking at the code for INT10_LoadFont() I found a "to do" note about reprogramming the cursor shape, so I guess that just isn't implemented yet. I made a little program in assembler to run inside DOSBox that sets the 8x8 font and also reprograms the the cursor to an appropriate shape. It does the job nicely, and it's attached to this post if anyone is interested.

Attachments

  • Filename
    SET80X50.ZIP
    File size
    141 Bytes
    Downloads
    958 downloads
    File comment
    Loads 8x8 font and sets cursor shape in DOSBox
    File license
    Fair use/fair dealing exception

Reply 9 of 25, by general_vagueness

User metadata
Rank Member
Rank
Member

thank you very much 😁
this is what I've been looking for, only not
what about the ANSI support?
(note: I had a thread like this and I'm going to stop posting on it; I really should have looked around b4 I started it 😦 )

You cannot fall off the floor.
If you look hard enough, you'll find something you don't like.

How to ask questions the smart way
How to become a hacker
How to answer smart-alec questions

Reply 10 of 25, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

I couldn't figure out what you were asking about, so I looked up your other thread since you don't have that many posts. The little program I made is only for setting 80x50 text mode, it doesn't do any other modes. You can only do so much in a 19 byte program.

This thread was primarily about reporting a problem with the internal ANSI support in DOSBox where it doesn't correctly process ANSI cursor positioning commands past 80 columns or 25 lines. You're probably not doing anything that uses the cursor positioning commands, and won't run into the problem.

I guess you were also asking about setting colors of the command text in DOSBox. You don't need a mode setting program for that, you can do it with ANSI commands. Just create a text file with the proper ANSI escape sequences in it and use the TYPE command in DOSBox to output that file to the console. For example, to get green text you would use <esc>[32;40m where the <esc> represents the escape character, ASCII 27. Look up ANSI escape sequences on Google or Wikipedia for a more in-depth explanation.

Reply 11 of 25, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

I believe 4DOS (which works fine in DosBox, btw) also has commands to change the color.

How To Ask Questions The Smart Way
Make your games work offline

Reply 12 of 25, by general_vagueness

User metadata
Rank Member
Rank
Member

thanks
I knew how to use ANSI esc[ things, I just thought you had to have support installed 😅 . That's pretty much all I wanted.

You cannot fall off the floor.
If you look hard enough, you'll find something you don't like.

How to ask questions the smart way
How to become a hacker
How to answer smart-alec questions

Reply 13 of 25, by Plan9FOS

User metadata
Rank Newbie
Rank
Newbie

If you need an excellent ANSI program that runs in DOSBox, try ANSIPLUS from Kristofer Sweger at:

http://www.sweger.com/ansiplus

It's a really nice program and the full version is now free.
It lets you control color, text size, text lines, etc.

Reply 14 of 25, by general_vagueness

User metadata
Rank Member
Rank
Member

I thought I had been forgetting something and reading the thread again reminded me: is there a way I can use con (and/or other "devices") in DOSBox?
That's the only the pertinent thing I can think of right now.

Oh, and if you read my first post and are wondering, I guess I'm here to stay. I haven't really used forums before, but this one seems really good. 😀

You cannot fall off the floor.
If you look hard enough, you'll find something you don't like.

How to ask questions the smart way
How to become a hacker
How to answer smart-alec questions

Reply 15 of 25, by h00ch

User metadata
Rank Newbie
Rank
Newbie

Hi, I have an old DOS game that I wrote in my introduction to C language course in college. I haven't seen it for a long time and now that I have DOSBox installed, I'm (almost) able to see it again in all it's ANSI glory! 😀 The problem is, I only see the top 25 lines. The batch file that runs the main EXE has the statement "MODE CON lines=50" but that doesn't seem to work. Is there something in the dosbox.conf file I need to change/set to make this work?

Reply 18 of 25, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

If that use of MODE is only setting an 80x50 text screen, you can also use the little program above and run that from the batch file instead of MODE. However, as you can see from the main point of this thread, if your program uses the ANSI cursor positioning command past line 25, you'll need to try a CVS version of DOSBox or wait for a future release.

Reply 19 of 25, by h00ch

User metadata
Rank Newbie
Rank
Newbie

Cool, I guess all I needed was the "MODE.COM" file from FreeDOS. Works great now! (except for a programming bug or 2) 😉 If anyone wants to try the game, it's good for a laugh. 😀

Run CASTLE.BAT to play within DOSBox. Object of the game is to find the Priestess and escape with her back to the main doors where you start from. Keep an eye out for those secret passages! (hint: there are 4 or 5 of them and they look very slightly different from a regular wall section).

Attachments

  • Filename
    Castle.zip
    File size
    53.32 KiB
    Downloads
    488 downloads
    File license
    Fair use/fair dealing exception

Reply 20 of 25, by general_vagueness

User metadata
Rank Member
Rank
Member

It doesn't seem to work for me.
It runs and there don't seem to be any glitches, but it doesn't seem to want to let me use anything.
Somehow I killed two of the skeletons, but I don't know how.
I think this might be a nice way to kill some time, I'd just like help with the controls.
To be specific, F2 and F3 always bring up "cancel" and nothing else, even though it says at the top that I have a dagger.

EDIT: I got the short sword, and it appeared on the list; it seems like you have to move right up to an enemy and press the direction they're in to attack, is that how it works?

You cannot fall off the floor.
If you look hard enough, you'll find something you don't like.

How to ask questions the smart way
How to become a hacker
How to answer smart-alec questions

Reply 21 of 25, by h00ch

User metadata
Rank Newbie
Rank
Newbie

You just move using the arrow keys and move into the monster you want to kill or the item you want to pick up. When the option appears to pick something up, you press "P" as it says on the left of the screen.

Reply 23 of 25, by general_vagueness

User metadata
Rank Member
Rank
Member

OK, thanks.

Hey, I finally made a short post!

You cannot fall off the floor.
If you look hard enough, you'll find something you don't like.

How to ask questions the smart way
How to become a hacker
How to answer smart-alec questions

Reply 24 of 25, by lairdmusich

User metadata
Rank Newbie
Rank
Newbie

I am trying to run an application in DosBox that requires an 80x50 text screen, and I noticed the Set80x50.com utility that was posted a long time ago by Ripsaw8080. This program does the trick, however, I was hoping the application I'm developing could manipulate the screen mode directly (instead of needing to execute an external program). Ripsaw8080, you said the Set80x50.com application was written in assembler... you wouldn't happen to be wiling to share that assembler code? (if you still have it) I could then insert that code directly into a program that I'm writing for my students in my computer science class. Would that be possible?

Reply 25 of 25, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Switching from 80x25 to 80x50 only involves loading the 8-line font, which you can do with a video BIOS function: https://www.delorie.com/djgpp/doc/rbinter/id/52/1.html

mov ax,1112h
mov bl,0
int 10h