From: Conrad Schneiker Date: 2000-07-24T19:20:40-05:00 Subject: [ruby-talk:04199] Re: Control-Z under Windows Hi, Andrew Hunt wrote: > Hi all, > > Dave and I have discovered different behavior under Windows. > > C:\> ruby > puts "hello world" > ^Z > hello world > > Workd fine on my Win95 box, but on Dave's NT box, the Control-Z > does nothing -- it just sits and waits. He can type a Control-D > (as with Unix) and it works okay; if I type a Control-D I get the > little diamond. Both are cygwin builds of Ruby. Well, on NT, both ^Z and ^D work for me in both the "DOS" Command Prompt window and in the Cgwin B20 bash window. However, in both cases, _nothing_ happens in any of these 4 cases until _after_ I follow up the ^Z or ^D with a press of the Enter key. And maybe this is why--I was expecting the "normal" UNIX tty settings, but here is what I had by default: ==== NT cgwin/bash ==== # stty -a speed 38400 baud; rows 45; columns 80; line = 0; intr = ; quit = ; erase = ; kill = ; eof = ; eol = ; eol2 = ; start = ; stop = ; susp = ; rprnt = ; werase = ; lnext = ; flush = ; min = 0; 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 ===== NT "dos" ===== C:\>stty speed 38400 baud; line = 0; intr = ; quit = ; erase = ; kill = ; eof = ; start = ; stop = ; susp = ; rprnt = ; werase = ; lnext = ; flush = ; -cread ignbrk -brkint -imaxbel -opost -iexten -echoe -echok -echoctl -echoke These computer gadgets would be wonderful if it weren't for software.... :-) -- Conrad Schneiker (This note is unofficial and subject to improvement without notice.)