Canonical mode problem with v1.0
Dtcohen@aol.com
Dtcohen@aol.com
Thu Jan 13 11:11:00 GMT 2000
> On Thu, Jan 13, 2000 at 12:24:12PM -0500, Dtcohen@aol.com wrote:
> >> If you need to wait until "RETURN" is pressed maybe you have succes with
> >> "gets()". Using "scanf()" is dangerous, because sometimes "RETURN" is left in
> >> the buffer.
> >
> >Yes, using gets() or fgets() for a small program would work better, but
> >the real problem is that canonical mode is broken for v1.0 (the man
> >page for "termio" explains this in detail, but it basically means getc(stdin)
> >should block until a carriage return is entered). Canonical mode also
> >allows the user to backspace over his mistakes -- which also doesn't work
> >with v1.0.
>
> I just tried cat >/dev/null using the cygwin CD. I could edit the line
> as expected. I tried this from the command line, under bash, and under
> /bin/sh. All of them worked fine.
>
> I think that if canonical mode was really broken we would have heard about
> it from a numbe of different directions by now.
>
> I also tried your test case, which worked as expected.
>
> As a wild guess, it sounds like you may not be using the Cygwin 1.0 DLL.
>
> cgf
>
> --
Chris,
Thanks for getting back to me.
Regarding your suggestion about Cygwin 1.0 DLL:
ls -l /bin/cygwin1.dll gives:
-rw-r--r-- 1 jgrishaw None 804728 Sep 13 22:15 /bin/cygwin1.dll
There are no other cygwin1.dll's on my hard drive.
My $PATH is set to:
//D/grishaw/bin:/bin:/contrib/bin:/usr/i686-cygwin/bin:/usr/local/bin:/usr/local/bin/X11:/usr/X11R6/bin:/usr/lib/gcc-lib/i686-cygwin/2.9-cygwin-990830://D/ModelTech/win32://C/WINNT/SYSTEM32://C/WINNT
stty -a yields:
speed 38400 baud; rows 65; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo -echoe -echok -echonl -noflsh -tostop -echoctl -echoke
(notice "icanon")
And yet backspace does not work when I run sh.exe, or cat > /dev/null,
or dc, etc, etc, etc.
I'm stumped. Please offer any suggestions for where to look for the
problem.
Many thanks,
Jim Grishaw.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
More information about the Cygwin
mailing list