Re: [Freedos-devel] Re: How to detect if fd #0/#1 are the local console

2004-09-12 Thread Arkady V.Belousov
Hi!

4--2004 16:47 [EMAIL PROTECTED] (Eric Auer) wrote to
[EMAIL PROTECTED]:

EA Hi! I suggest using isatty:
EA   write(isatty(1) ? 1 : 2, format (YES/NO)? , 17);
EA The above example would show the confirm prompt on STDERR if STDOUT is
EA redirected to a non-tty.

 There may be trouble with redirection to NUL, which is also device. As
I post earlier, Eugeny Roshal checks if ioctl(1,0) == 0x83 (but I suggest,
that enough to test 0x82).

EA I guess CTTY devices are always TTYs, though.
EA By the way, as far as I know, *only* COMn/AUX/CON can be CTTY targets.
EA Now about CLS/... handling: Because CTTY is handled by FreeCOM itself,

 No. FreeCOM may be _re_called (for example, by system()) with already
redirected handles by parent shell.




---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] Re: How to detect if fd #0/#1 are the local console

2004-09-12 Thread Arkady V.Belousov
Hi!

5--2004 12:03 [EMAIL PROTECTED] (Steffen Kaiser) wrote to
[EMAIL PROTECTED] [EMAIL PROTECTED]:

 Matthias once wrote a long mail saying how other DOSes deal with this.
SK He writes that DR DOS issues ANSI escape sequences. Actually they are fine,
[...]
SK in http://marc.theaimsgroup.com/?l=freedos-devm=101742333130155w=2
SK If STDOUT does correspond with a device (bit 7) which does *not*
SK supporting INT 29h (bit 3 cleared), it will use a method partially
SK similar to the DR-DOS INT 10h/AH=00h method to clear the screen, in
SK all other cases it will simply issue the ANSI ED-sequence.

 This is strange, because fastcon bit (0x10) usually not set for
non-local devices (thus, above describes using INT10 on, say, COMx). For
example, currently all devices in my environment contains no 0x10 bit,
except CON. And neither device contains ANSI support (thus sending ANSI
sequence to this CON is useless).




---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


[Freedos-devel] HIMEM and 64Mb of memory

2004-09-12 Thread Arkady V.Belousov
Hi!

 BTW, I now recall one problem with too many memory: on machines with
64+ Mb of memory, NCACHE2 (from Norton Utilities 8 package) with EXT option
(without argument, which selects max of memory) says about zero available
memory. I _suggest_, HIMEM should return slightly less, than 64Mb for XMS2.

 Michaele, if you wish, I send you ncache2.exe for test. Command line:
ncache2 install ext.




---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] NCACHE2

2004-09-12 Thread Luchezar Georgiev
As far as I remember, NCACHE2 doesn't work with DOS versions later than 6.
---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] NCACHE2

2004-09-12 Thread Arkady V.Belousov
Hi!

12--2004 14:27 [EMAIL PROTECTED] (Luchezar Georgiev) wrote to
[EMAIL PROTECTED]:

LG As far as I remember, NCACHE2 doesn't work with DOS versions later than 6.

 Yes. So what? This is only one example, that some programs may be
crazy, when returned memory value is too big (because arithmetic overflow).




---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel