Re: Setting up new dosemu 1.3.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Karl.

I wrote a little dos C program many years ago to set the screen colors.
usage is

Usage: ansicolo fg bg i
Colors: blk 0 red 1 grn 2 yell 3 blu 4 mag 5 cya 6 wht 7
i is 0 for normal foreground, 1 for intensified        

You need to load ansi.c or vansi.c in your config.sys.

I tried to attach the executable, but the list will not accept it. If
you want it, it is on our ftp site:

ftp://astro.princeton.edu/jeg/ansicolo/ansicolo.exe

--jim gunn

****************************************************************************

If you have a c compiler, the (almost trivial) source is

#include <stdio.h>


main(argc,argv)
int argc;
char **argv;
{
    if(argc < 3){
        printf("\nUsage: ansicolor fg bg i");
        printf("\nColors: blk 0 red 1 grn 2 yell 3 blu 4 mag 5 cya 6 wht 7");
        printf("\ni is 0 for normal foreground, 1 for intensified");
        printf("\n");
    }else{
        printf("\033[0;3%s;4%sm",argv[1],argv[2]);
        if(argc == 4 && *argv[3] == '1') printf("\033[1m");
        printf("\033[2J");
    }
}


***************************************************************************

On Wed, 12 Apr 2006, Karl. wrote:

> On Tue, Apr 11, 2006 at 05:12:43PM -0500, Larry Alkoff wrote:
> > The 80x25 seems to be a default - don't know it it can be changed or 
> > not but 80x25 works well for me.
> 
> You can change it within dosemu using the dos 'mode' command (perhaps 
> add it to your autoexec.bat)
> 
> "mode co80,50" gets you colour, 80 columns, 50 rows.
>                number of rows can be 25, 28, 43, or 50
> 
> "mode /?"      gets you help on other options
> 
> A lot of software makes assumptions and only uses half the screen, but 
> there's a lot of software which works properly as well.  I just don't 
> feel right if my dos box is not 50 rows  :-)
> 
> Karl.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Console]     [Linux Audio]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Camping]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Samba]     [Linux Media]     [Fedora Users]

  Powered by Linux