[#3986] Re: Principle of least effort -- another Ruby virtue. — Andrew Hunt <andy@...>

> Principle of Least Effort.

14 messages 2000/07/14

[#4043] What are you using Ruby for? — Dave Thomas <Dave@...>

16 messages 2000/07/16

[#4139] Facilitating Ruby self-propagation with the rig-it autopolymorph application. — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/07/20

[ruby-talk:04199] Re: Control-Z under Windows

From: Conrad Schneiker <schneik@...>
Date: 2000-07-25 00:20:40 UTC
List: ruby-talk #4199
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 = <undef>; quit = <undef>; erase = <undef>; kill = <undef>; eof = <undef>;
eol = <undef>; eol2 = <undef>; start = <undef>; stop = <undef>; susp = <undef>;
rprnt = <undef>; werase = <undef>; lnext = <undef>; flush = <undef>;
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 = <undef>; quit = <undef>; erase = <undef>; kill = <undef>; eof = <undef>;
start = <undef>; stop = <undef>; susp = <undef>; rprnt = <undef>;
werase = <undef>; lnext = <undef>; flush = <undef>;
-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.)



In This Thread

Prev Next