delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/01/08/16:21:08

From: err AT raelity DOT com (Ernie Rael)
Subject: ncurses-1.9.9e, NT, B17.1
8 Jan 1997 16:21:08 -0800 :
Sender: daemon AT cygnus DOT com
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <32da2271.73244671.cygnus.gnu-win32@mail.scruznet.com>
Mime-Version: 1.0
Original-To: gnu-win32 AT cygnus DOT com
X-Mailer: Forte Agent .99g/32.339
Original-Sender: owner-gnu-win32 AT cygnus DOT com

At the end of this message are the changes i made to
get ncurses working. A previous message outlined the
problems. With term set to pcansi it works fairly well.
(I was expecting to need to build a terminfo entry with
some ugly hacks, but was pleasantly suprised to find
that pcansi worked). I checked the cygwin dll's code and sure
enough the console handler has the translations. There
are some problems with restoring the complete state of
the terminal, and input seems flakey. Might get some time
to play with this later this week.

Note:	_FO_BINARY is defined to be "b"
	(see following message "binary mode handling")

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: RCS/lib_screen.c,v
retrieving revision 1.1
diff -r1.1 lib_screen.c
110c110
<       if ((fp =3D fopen(file, "r")) =3D=3D (FILE *)NULL)
---
>       if ((fp =3D fopen(file, "r" _FO_BINARY)) =3D=3D (FILE *)NULL)
125c125
<       if ((fp =3D fopen(file, "w")) =3D=3D (FILE *)NULL)
---
>       if ((fp =3D fopen(file, "w" _FO_BINARY)) =3D=3D (FILE *)NULL)
146c146
<       if ((fp =3D fopen(file, "r")) =3D=3D (FILE *)NULL)
---
>       if ((fp =3D fopen(file, "r" _FO_BINARY)) =3D=3D (FILE *)NULL)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: RCS/read_entry.c,v
retrieving revision 1.1
diff -r1.1 read_entry.c
72c72
<     if ((fd =3D open(filename, 0)) < 0)
---
>     if ((fd =3D open(filename, O_RDONLY|O_BINARY)) < 0)
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: RCS/write_entry.c,v
retrieving revision 1.1
diff -r1.1 write_entry.c
203c203
<       fp =3D fopen(filename, "w");
---
>       fp =3D fopen(filename, "w" _FO_BINARY);
-
For help on using this list, send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019