Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: i need a cga driver for xfree86  (Read 11563 times)

0 Members and 1 Guest are viewing this topic.

smeezekitty

  • Guest
i need a cga driver for xfree86
« on: July 29, 2009, 05:15:24 PM »
i need a color graphics adapter driver for xfree86 (640x200 1 bpp)
and dont just tell me "hardware upgrade"
becuase the awnser is no ;D

smeezekitty

  • Guest
Re: i need a cga driver for xfree86
« Reply #1 on: August 12, 2009, 11:39:11 PM »
anyone

2x3i5x



    Expert
  • Thanked: 134
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 10
Re: i need a cga driver for xfree86
« Reply #2 on: August 13, 2009, 12:08:26 AM »
just to be sure I know wat you're asking ... the color graphics adapter, that's just graphics card?

What graphics card do you use if that's the case?

smeezekitty

  • Guest
Re: i need a cga driver for xfree86
« Reply #3 on: August 15, 2009, 12:59:36 AM »
as in the old color graphics adapter
http://en.wikipedia.org/wiki/Color_Graphics_Adapter

smeezekitty

  • Guest
Re: i need a cga driver for xfree86
« Reply #4 on: August 16, 2009, 06:54:19 PM »
 >:(

Salmon Trout

  • Guest
Re: i need a cga driver for xfree86
« Reply #5 on: August 17, 2009, 12:29:14 AM »
A thousand bumping emoticons will not get you the answer you want. Xfree86=modern Xwindows. CGA=ancient hardware. I do not believe an XFree86 "driver" was ever implemented for the CGA.

Quote from: smeezekitty
Dont just tell me "hardware upgrade"
becuase the awnser is no

Then so it is for the CGA driver question. The CGA was the *censored* child of the IBM video adapter family. Unloved and soon abandoned. Your question was asked in 2000 in a Linux forum, and the answer came back "No, and why would anyone want to use a CGA with XFree86?"

smeezekitty

  • Guest
Re: i need a cga driver for xfree86
« Reply #6 on: August 17, 2009, 12:37:27 AM »
hercules is supported
that's from same date as CGA!
sure cga is horrible low res but still it should be supported
also EGA is supported thats ancient too
----edit----
for some reason cga is my favorett
i have win 3.1 on a cga driver even on VGA
i tried to force win 95 to run on CGA
i even wrote an emulator to run dos VGA programs (slowly) on CGA
i waws playing simcity cga the ohter day
and when cga is not possable i go EGA
i dont like VGA very much
i even wrote some dos games and an OS shell
that are compatable with CGA

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: i need a cga driver for xfree86
« Reply #7 on: August 17, 2009, 01:05:26 AM »
if you actually ever owned a CGA monitor and adapter you would be glad to be rid of them.

Quote
i dont like VGA very much

you need to learn more about display technologies- there isn't necessarily a "CGA mode" or a "EGA mode" they are called that merely because that was when they were introduced.

"CGA" in my mind is 320x200 with 4 of 16 colours. Awful, just awful. This is why most people opted for the MDA at the time.

EGA added some modes. it still supported the CGA modes

VGA, which for some reason you don't like although I suspect no reason- added two main modes, 640x480  at 4bpp and 320x240 with 8bpp. other modes with more resolution could be gained by tweaking about with the VGA registers. the VGA also supported All of EGA and CGA's modes.

Anything above 640x480 with 256 colours is some form of SVGA.


windows 3.1 doesn't have a CGA driver, so you must be forcing it to use the Windows 3.0 driver.


you can't force windows 95 to run in CGA because it cannot run windows 3.0 drivers.


I was trying to dereference Null Pointers before it was cool.

smeezekitty

  • Guest
Re: i need a cga driver for xfree86
« Reply #8 on: August 17, 2009, 01:20:39 AM »
actully powerload has a 3.1 cga driver
i dont like VGA because the 256 color mode
because evreyone uses that
i even wrote a program to make VGA text mode look like CGA
and LOCK out VGA graphics mode to make it only run EGA programs
and it also allows VGA to do some of the CGA tricks
i know i am strange and obsessed with CGA

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: i need a cga driver for xfree86
« Reply #9 on: August 17, 2009, 01:33:16 AM »
Quote
i even wrote a program to make VGA text mode look like CGA
mode co40
Quote
and LOCK out VGA graphics mode to make it only run EGA programs
that's pointless. and stupid. just get a EGA or CGA card.


Quote
and it also allows VGA to do some of the CGA tricks
the only CGA "tricks" are to avoid snow on the screen. Oh guess what- VGA doesn't have snow in it's CGA modes. Regardless of wether you wait for the Vertical retrace.
I was trying to dereference Null Pointers before it was cool.

smeezekitty

  • Guest
Re: i need a cga driver for xfree86
« Reply #10 on: August 17, 2009, 01:41:51 AM »
there are graphics mode tricks that are CGA only
also i like CGA dosbox it doesnt emulate overscan though
i am working on getting a real CGA asap

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: i need a cga driver for xfree86
« Reply #11 on: August 17, 2009, 01:46:36 AM »
there are graphics mode tricks that are CGA only


examples?
I was trying to dereference Null Pointers before it was cool.

smeezekitty

  • Guest
Re: i need a cga driver for xfree86
« Reply #12 on: August 17, 2009, 02:00:40 AM »
oldskool.org ;D (known as trixter around the forums)

Salmon Trout

  • Guest
Re: i need a cga driver for xfree86
« Reply #13 on: August 17, 2009, 04:25:39 AM »
I think that imposing artificial restrictions on the type of solution required based on what you "like" in this way is kind of against the ethos of the site, personally.

smeezekitty

  • Guest
Re: i need a cga driver for xfree86
« Reply #14 on: August 17, 2009, 10:59:35 AM »
in english?
by the way here is a fairly modern software (10 yr old)
that supports cga
http://www.linct.org/cur/NewDeal/TS/235.htm

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: i need a cga driver for xfree86
« Reply #15 on: August 17, 2009, 11:14:27 AM »
fairly modern = 10 year old DOS program... ok then.
I was trying to dereference Null Pointers before it was cool.

smeezekitty

  • Guest
Re: i need a cga driver for xfree86
« Reply #16 on: August 17, 2009, 11:19:58 AM »
well CGA was already 12y out of date when it was made
back to the topic how does somone go about writing a driver for X?

patio

  • Moderator


  • Genius
  • Maud' Dib
  • Thanked: 1769
    • Yes
  • Experience: Beginner
  • OS: Windows 7
Re: i need a cga driver for xfree86
« Reply #17 on: August 17, 2009, 11:30:33 AM »
well CGA was already 12y out of date when it was made
back to the topic how does somone go about writing a driver for X?

Why are you on this mission ? ?
" Anyone who goes to a psychiatrist should have his head examined. "

smeezekitty

  • Guest
Re: i need a cga driver for xfree86
« Reply #18 on: August 17, 2009, 12:59:00 PM »
mainly i want to prove i can do it
but is it possable to write the driver?

Salmon Trout

  • Guest
Re: i need a cga driver for xfree86
« Reply #19 on: August 17, 2009, 01:27:00 PM »
in english?

You're beginning to irritate me...

2x3i5x



    Expert
  • Thanked: 134
  • Computer: Specs
  • Experience: Familiar
  • OS: Windows 10
Re: i need a cga driver for xfree86
« Reply #20 on: August 17, 2009, 05:04:00 PM »
Quote
CGA was already 12 years out of date

Why look at something that probably only you would be using?

smeezekitty

  • Guest
Re: i need a cga driver for xfree86
« Reply #21 on: August 17, 2009, 05:09:33 PM »
Why look at something that probably only you would be using?
why not

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: i need a cga driver for xfree86
« Reply #22 on: August 17, 2009, 09:08:12 PM »
why not

the classic response when you have no reasons why... you try to reverse the question.

I was trying to dereference Null Pointers before it was cool.

smeezekitty

  • Guest
Re: i need a cga driver for xfree86
« Reply #23 on: August 17, 2009, 09:10:42 PM »
because i like the
messed up aspect of 640x200 and the 4 beautyful four colors
RED GREEN BROWN BLACK
RED GREEN YELLOW BLACK
MAGENTA CYAN WHITE BLACK
RED CYAN WTHIE BLACK

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: i need a cga driver for xfree86
« Reply #24 on: August 17, 2009, 09:16:52 PM »
the background isn't always black, you can select any background out of the 16 colours. Black is the default.

Come to think of it, your dislike for VGA is probably not from any real issue other then simply not liking to program it.

Additionally, CGA only had TWO, not 4, official palettes.


 1. Magenta, cyan, white and background color
 2. Red, green, brown/yellow and background color




I was trying to dereference Null Pointers before it was cool.

smeezekitty

  • Guest
Re: i need a cga driver for xfree86
« Reply #25 on: August 17, 2009, 10:32:15 PM »
but 5 palettes if you tweak it
the ONLY reason for not liking VGA is because it has a 256 mode

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: i need a cga driver for xfree86
« Reply #26 on: August 17, 2009, 10:37:11 PM »
That's not the reason- you just don't want to bother learning how to program the 256 colour mode. more colours=better user experience, but people still living in the past working with dated technologies have a tendency to evangelize those technologies even if they clearly fall short of later developments in almost all areas.

the 5 palettes you get from tweaking it aren't official.
I was trying to dereference Null Pointers before it was cool.

smeezekitty

  • Guest
Re: i need a cga driver for xfree86
« Reply #27 on: August 17, 2009, 11:32:18 PM »
i can program 256 color mode
turbo c code:
Code: [Select]
#include <Dos.h>
#include <conio.h>
char far *image = MKFP(0xA000, NULL);
#define pixelset(X, Y, C) (void)(image[(320 * Y) + X] = C)
#define pixelget(X, Y) (int)(image[(320*Y) +X]=C)
int main(){
_AX = 0x13;
asm {int 10h}
int x,y;for(x = 0;x < 256;x++){
for(y = 0;y < 200;y++){
pixelset(x, y, x);
}
}
getch();
asm {
mov ax,3h
int 10h
}
return -0;
}
i dont like 256 colors
for one people use pal anim that freezes windows
for seconds i find the res unbareable

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: i need a cga driver for xfree86
« Reply #28 on: August 17, 2009, 11:41:05 PM »
yeah, because 640x200 is a lot more sensible.. or 320x200   ::)

besides, you can tweak the VGA to a slightly higher 256 colour resolution.

At least people still know how to copy paste code.
I was trying to dereference Null Pointers before it was cool.

smeezekitty

  • Guest
Re: i need a cga driver for xfree86
« Reply #29 on: August 18, 2009, 12:01:07 AM »
i didnt copy and paste this
i wrote it from scratch right in the Post reply editor
just try to find that code somewhere on the internet

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: i need a cga driver for xfree86
« Reply #30 on: August 18, 2009, 12:32:08 AM »
i didnt copy and paste this
i wrote it from scratch right in the Post reply editor
just try to find that code somewhere on the internet


I don't need to, it's strikingly similar to one of the early samples in Michael Abrash's graphics programming blackbook, in fact it's the first in the VGA chapter.

BTW I highly recommend that book! It covers CGA, too ;)
I was trying to dereference Null Pointers before it was cool.

smeezekitty

  • Guest
Re: i need a cga driver for xfree86
« Reply #31 on: August 18, 2009, 01:28:18 AM »
i learned that from the internet but nto copied it
i havent looked at the code in 3 months