Mail Archives: djgpp/2001/12/09/04:58:55
On Sun, 9 Dec 2001, Roger Young wrote:
> I'm having a few problems with DJGPP and Allegro
> and hope someone can help out. Here are my queries:
It is best to post each question in a separate message, unless they are
all closely related (which they aren't in your case). That makes the
discussion more easily followed, and you can also come up with a
meaningful Subject line (hint, hint ;-).
> (1) How do I control the bash environment? for
> example I would like to alias 'ls' with 'ls --color'
> this works on the fly but how do I make it part of
> my configuration.
Put the alias on your _bashrc or _blogin files.
I tried to set it in djgpp.env
> but it had no effect.
Do NOT edit djgpp.env, ever! It's dangerous, since the file has a
cryptic syntax, and, if modified incorrectly, can easily break your DJGPP
installation.
> (2) Is it possible to scroll back the console screen
> as in Linux?
No :-(. Microsoft wants DOS programs to die, so it deliberately makes
their life as hard as they can. That's why the DOS box is so poor in
features.
My private solution is to have the DOS box as large as the screen can
handle without making the font too small to be legible. Where this isn't
enough, piping output to Less and using the Script program are the next
best solutions.
There's also a port of rxvt, a free terminal emulator, but I have no idea
how compatible it is with DJGPP programs (redirecting standard handles
between DOS and Windows programs may be tricky).
> (3) I am not able to compile allegro 3.12, apparently something
> to do with the assembler. I include the log below. The compiler
> is gcc-3.0.2 downloaded Nov 28.
Get a newer Allegro.
> Updating dependencies in c:/dir/microwin/microwin.89p/src/mwin ...
> c:/djgpp/bin/bash.exe -ec 'gcc -MM -DERASEMOVE=1 -DUPDATEREGIONS=1
> -DMWPIXEL_FORMAT=MWPF_PALETTE -DDOS_DJGPP=1 -D_NAIVE_DOS_REGS=1
> -DMSDOS=1 -I. -I/dir/microwin/microwin.89p/src/include winmain.c
> winuser.c wingdi.c winexpos.c winclip.c winevent.c windefw.c winrgn.c
> winfont.c winsbar.c \
> | sed '\''s/\(\)\.o[ :]*/\1.o \.depend : $(TOP)\/config /g'\'' >
> .depend; \
> [ -s .depend ] || rm -f .depend'
> c:/djgpp/bin/bash: .depend: No such file or directory (ENOENT)
Is this plain DOS or some version of Windows? If the latter, does it
help to set LFN=y in the environment?
- Raw text -