This is the mail archive of the
mailing list for the Cygwin project.
Canonical mode problem with v1.0
- To: cygwin at sourceware dot cygnus dot com
- Subject: Canonical mode problem with v1.0
- From: Dtcohen at aol dot com
- Date: Thu, 13 Jan 2000 14:11:16 EST
- CC: fusz at cadlab dot tu-berlin dot de, Dtcohen at aol dot com
> 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.
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:
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
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
Want to unsubscribe from this list?
Send a message to email@example.com