[Fwd: SEDT (VMS EDT-like editor) under Cygwin ?]

2004-11-28 Thread bobby mcnulty junior
I'm sending this here.
It was on talk amongst yourselfs.
 Original Message 
Subject: SEDT (VMS EDT-like editor) under Cygwin ?
Date: Sun, 28 Nov 2004 18:07:16 + (UTC)
From: Jim McCarthy [EMAIL PROTECTED]
Reply-To: Talk Amongst Yourselves [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Hello --
SEDT is a VMS-EDT-like editor freely available as C source code for 
multiple
platforms (Windows, Unix, Linux, etc) at http://www.ankersoft.com/Sedt.html

I have successfully build sedt.exe (following the Linux example) under
Cygwin/X ... but running it either in the Cygwin console window, and/or 
in an
xterm or rxvt window under Cygwin/X, I encounter strange behavior.  Text
entered from the keyboard appears fine on the screeen until I hit return,
which instead of moving to the start of a new line echoes as ^M 
(actually, the
letter M in reverse-video) on the screen.  This behavior is the same 
regardless
of which SYSTEM=x setting I use in SEDT's startup configuration file,
SEDT.CNF ... (i.e., I've tried xterm, vt100, vt200, vt300, and even IBMAT).

Any fans of VMS EDT out there who might be sufficiently interested in SEDT
under Cygwin to help me troubleshoot these problems ?  Must have 
something to
do with how Cygwin is build on top of MS-Windows (my Windows 
installation is
Windows NT Workstation 4.0, SP6a, and my Cygwin kernel release is 1.5.12
(0.116/4/2), built 2004-11-10 08:34; set shows term = xterm.

Thanks for any assistance,
  -- Jim


--
Robert McNulty Junior
email: [EMAIL PROTECTED]
webpage: www.geocities.com/bobbymcn2004
begin:vcard
fn:Robert McNulty Junior
n:McNulty Junior;Robert
adr:;;3971 Linda Ann Drive;Millbrook;AL;36054;USA
email;internet:[EMAIL PROTECTED]
tel;home:1-334-285-5490
x-mozilla-html:FALSE
url:http://www.geocities.com/bobbymcn2004
version:2.1
end:vcard


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/

Re: SEDT (VMS EDT-like editor) under Cygwin ?

2004-11-28 Thread Gerrit P. Haase
Jim McCarthy wrote:
Hello --
SEDT is a VMS-EDT-like editor freely available as C source code for multiple 
platforms (Windows, Unix, Linux, etc) at http://www.ankersoft.com/Sedt.html

I have successfully build sedt.exe (following the Linux example) under 
Cygwin/X ... but running it either in the Cygwin console window, and/or in an 
xterm or rxvt window under Cygwin/X, I encounter strange behavior.  Text 
entered from the keyboard appears fine on the screeen until I hit return, 
which instead of moving to the start of a new line echoes as ^M (actually, the 
letter M in reverse-video) on the screen.  This behavior is the same regardless 
of which SYSTEM=x setting I use in SEDT's startup configuration file, 
SEDT.CNF ... (i.e., I've tried xterm, vt100, vt200, vt300, and even IBMAT).

Any fans of VMS EDT out there who might be sufficiently interested in SEDT 
under Cygwin to help me troubleshoot these problems ?  Must have something to 
do with how Cygwin is build on top of MS-Windows (my Windows installation is 
Windows NT Workstation 4.0, SP6a, and my Cygwin kernel release is 1.5.12 
(0.116/4/2), built 2004-11-10 08:34; set shows term = xterm.

Thanks for any assistance,
I'm getting this:
$ make
ccache gcc -O -DANSIC -DUNIX -DTERMCAP -DLINUX   -c -o sedt.o sedt.c
sedt.c: In function `strcasecmp':
sedt.c:1297: error: argument S doesn't match prototype
/usr/include/string.h:60: error: prototype declaration
sedt.c:1297: error: argument T doesn't match prototype
/usr/include/string.h:60: error: prototype declaration
make: *** [sedt.o] Error 1
Have you a patchfile about the changes you needed to apply to the sources?
Gerrit
--
=^..^=
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


RE: SEDT (VMS EDT-like editor) under Cygwin ?

2004-11-28 Thread Jim McCarthy
Sorry, no patchfile, but ...

1) Edit sedt.c and change all 'stricmp' to 'sedt_stricmp' to avoid
   conflict with 'stricmp' declaration in /usr/include/string.h

2) In comd.c, add #include errno.h before line #include proto.h

With these changes, build should result in a functional sedt.exe
file.

  -- Jim


-Original Message-
From: Gerrit P. Haase [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 28, 2004 13:29
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: SEDT (VMS EDT-like editor) under Cygwin ?

I'm getting this:

$ make
ccache gcc -O -DANSIC -DUNIX -DTERMCAP -DLINUX   -c -o sedt.o sedt.c
sedt.c: In function `strcasecmp':
sedt.c:1297: error: argument S doesn't match prototype
/usr/include/string.h:60: error: prototype declaration
sedt.c:1297: error: argument T doesn't match prototype
/usr/include/string.h:60: error: prototype declaration
make: *** [sedt.o] Error 1


Have you a patchfile about the changes you needed to apply to the sources?

Gerrit
-- 
=^..^=

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: SEDT (VMS EDT-like editor) under Cygwin ?

2004-11-28 Thread Gerrit P. Haase
Jim McCarthy wrote:
Sorry, no patchfile, but ...
1) Edit sedt.c and change all 'stricmp' to 'sedt_stricmp' to avoid
   conflict with 'stricmp' declaration in /usr/include/string.h
2) In comd.c, add #include errno.h before line #include proto.h
With these changes, build should result in a functional sedt.exe
file.
Well, not really, I found two more issues:
diff -urd sedt/term.c sedt-0.0/term.c
--- sedt/term.c 1994-08-28 20:51:34.0 +0200
+++ sedt-0.0/term.c 2004-11-28 23:17:21.615971200 +0100
@@ -747,7 +747,7 @@
   }
   _exit(1);
  }
-#if !defined(SCO)  !defined(HPUX)
+#if !defined(SCO)  !defined(HPUX)  !defined(__CYGWIN__)
  if (ioctl(0,TIOCGWINSZ,ws)!=-1ws.ws_row!=0ws.ws_col!=0)
  {Scr_Length=ws.ws_row;
   Scr_Width=ws.ws_col;
diff -urd sedt/vars.c sedt-0.0/vars.c
--- sedt/vars.c 1994-08-28 20:51:36.0 +0200
+++ sedt-0.0/vars.c 2004-11-28 23:14:58.730512000 +0100
@@ -279,7 +279,7 @@
 int Saved_Character=0;
 #endif
-#if defined(UNIX)  !(defined(SCO) | defined(HPUX))
+#if defined(UNIX)  !(defined(SCO) | defined(HPUX) | defined(__CYGWIN__))
 #include sys/ioctl.h
 struct winsize ws;
/*Structure for terminal height and width*/

I think it is not really working.  In the docs is mentioned that
the backtick character is what : is in vim, but it seems to have
no effect when I hit backtick, I cannot delete or save or exit...
What you could try to do about your problem is:
add /usr/lib/automode.o to the objects and link it in the executable.
Gerrit
--
=^..^=
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: SEDT (VMS EDT-like editor) under Cygwin ?

2004-11-28 Thread Christopher Faylor
On Mon, Nov 29, 2004 at 12:35:53AM +0100, Gerrit P. Haase wrote:
Jim McCarthy wrote:
Sorry, no patchfile, but ...

1) Edit sedt.c and change all 'stricmp' to 'sedt_stricmp' to avoid
   conflict with 'stricmp' declaration in /usr/include/string.h

2) In comd.c, add #include errno.h before line #include proto.h

With these changes, build should result in a functional sedt.exe
file.

Well, not really, I found two more issues:

diff -urd sedt/term.c sedt-0.0/term.c
--- sedt/term.c1994-08-28 20:51:34.0 +0200
+++ sedt-0.0/term.c2004-11-28 23:17:21.615971200 +0100
@@ -747,7 +747,7 @@
   }
   _exit(1);
  }
-#if !defined(SCO)  !defined(HPUX)
+#if !defined(SCO)  !defined(HPUX)  !defined(__CYGWIN__)
  if (ioctl(0,TIOCGWINSZ,ws)!=-1ws.ws_row!=0ws.ws_col!=0)

Why is this?  TIOCGWINSZ is defined for cygwin.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: SEDT (VMS EDT-like editor) under Cygwin ?

2004-11-28 Thread Gerrit P. Haase
Christopher Faylor wrote:
On Mon, Nov 29, 2004 at 12:35:53AM +0100, Gerrit P. Haase wrote:
Jim McCarthy wrote:
Sorry, no patchfile, but ...
1) Edit sedt.c and change all 'stricmp' to 'sedt_stricmp' to avoid
 conflict with 'stricmp' declaration in /usr/include/string.h
2) In comd.c, add #include errno.h before line #include proto.h
With these changes, build should result in a functional sedt.exe
file.
Well, not really, I found two more issues:
diff -urd sedt/term.c sedt-0.0/term.c
--- sedt/term.c 1994-08-28 20:51:34.0 +0200
+++ sedt-0.0/term.c 2004-11-28 23:17:21.615971200 +0100
@@ -747,7 +747,7 @@
 }
 _exit(1);
}
-#if !defined(SCO)  !defined(HPUX)
+#if !defined(SCO)  !defined(HPUX)  !defined(__CYGWIN__)
if (ioctl(0,TIOCGWINSZ,ws)!=-1ws.ws_row!=0ws.ws_col!=0)

Why is this?  TIOCGWINSZ is defined for cygwin.
I got an error at this line:
ccache gcc -O -DANSIC -DUNIX -DTERMCAP -DLINUX   -c -o term.o term.c
term.c: In function `Set_Terminal':
term.c:751: error: `TIOCGWINSZ' undeclared (first use in this function)
term.c:751: error: (Each undeclared identifier is reported only once
term.c:751: error: for each function it appears in.)
term.c:751: error: invalid use of undefined type `struct winsize'
term.c:751: error: invalid use of undefined type `struct winsize'
term.c:752: error: invalid use of undefined type `struct winsize'
term.c:753: error: invalid use of undefined type `struct winsize'
make: *** [term.o] Error 1
When I include sys/termios.h I get this:
$ make
ccache gcc -O -DANSIC -DUNIX -DTERMCAP -DLINUX   -c -o term.o term.c
term.c: In function `Set_Terminal':
term.c:754: error: invalid use of undefined type `struct winsize'
term.c:754: error: invalid use of undefined type `struct winsize'
term.c:755: error: invalid use of undefined type `struct winsize'
term.c:756: error: invalid use of undefined type `struct winsize'
make: *** [term.o] Error 1
Even if I patch vars.c to include sys/termios.h so that the part
with 'struct winsize ws' compiles, I get the second error.
Gerit
--
=^..^=
--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


Re: SEDT (VMS EDT-like editor) under Cygwin ?

2004-11-28 Thread Christopher Faylor
On Mon, Nov 29, 2004 at 01:09:02AM +0100, Gerrit P. Haase wrote:
Christopher Faylor wrote:

On Mon, Nov 29, 2004 at 12:35:53AM +0100, Gerrit P. Haase wrote:

Jim McCarthy wrote:

Sorry, no patchfile, but ...

1) Edit sedt.c and change all 'stricmp' to 'sedt_stricmp' to avoid
 conflict with 'stricmp' declaration in /usr/include/string.h

2) In comd.c, add #include errno.h before line #include proto.h

With these changes, build should result in a functional sedt.exe
file.

Well, not really, I found two more issues:

diff -urd sedt/term.c sedt-0.0/term.c
--- sedt/term.c  1994-08-28 20:51:34.0 +0200
+++ sedt-0.0/term.c  2004-11-28 23:17:21.615971200 +0100
@@ -747,7 +747,7 @@
 }
 _exit(1);
}
-#if !defined(SCO)  !defined(HPUX)
+#if !defined(SCO)  !defined(HPUX)  !defined(__CYGWIN__)
if (ioctl(0,TIOCGWINSZ,ws)!=-1ws.ws_row!=0ws.ws_col!=0)


Why is this?  TIOCGWINSZ is defined for cygwin.

I got an error at this line:
ccache gcc -O -DANSIC -DUNIX -DTERMCAP -DLINUX   -c -o term.o term.c
term.c: In function `Set_Terminal':
term.c:751: error: `TIOCGWINSZ' undeclared (first use in this function)
term.c:751: error: (Each undeclared identifier is reported only once
term.c:751: error: for each function it appears in.)
term.c:751: error: invalid use of undefined type `struct winsize'
term.c:751: error: invalid use of undefined type `struct winsize'
term.c:752: error: invalid use of undefined type `struct winsize'
term.c:753: error: invalid use of undefined type `struct winsize'
make: *** [term.o] Error 1

When I include sys/termios.h I get this:
$ make
ccache gcc -O -DANSIC -DUNIX -DTERMCAP -DLINUX   -c -o term.o term.c
term.c: In function `Set_Terminal':
term.c:754: error: invalid use of undefined type `struct winsize'
term.c:754: error: invalid use of undefined type `struct winsize'
term.c:755: error: invalid use of undefined type `struct winsize'
term.c:756: error: invalid use of undefined type `struct winsize'
make: *** [term.o] Error 1


Even if I patch vars.c to include sys/termios.h so that the part
with 'struct winsize ws' compiles, I get the second error.

Which means that term.c is using winsize incorrectly, apparently.

Since other applications (like vim) are using TIOCGWINSZ, it can't be
entirely broken.

If this actually ever becomes a package it shouldn't be released broken
in this regard.  It should be able to determine the size of the screen.

cgf

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/