[CM] standard input EOF in console app s7

Heinrich Taube taube at illinois.edu
Thu Feb 20 14:21:41 PST 2014


ok thanks, this is not meant as an app, its simply a debugging tool! maybe i should not generate the makefile by default….


On Feb 20, 2014, at 11:13 AM, Tito Latini <tito.01beta at gmail.com> wrote:

> s7> [Ctrl-d]
> s7>
> s7>
> s7>
> s7>
> ... forever ...
> 
> [Ctrl-c]
> 
> GUI side: if a grace-ful musician accidentally clicks on the
> executable, the loop continues to write "\ns7> " in background.
> 
> diff -ur cm~/src/s7.cpp cm/src/s7.cpp
> --- cm~/src/s7.cpp	2014-02-20 16:46:11.069524177 +0100
> +++ cm/src/s7.cpp	2014-02-20 16:46:25.488342908 +0100
> @@ -37,7 +37,7 @@
>   std::string str;
>   try 
>   {
> -    while (true)
> +    while (std::cin)
>     {
>       std::cout << "\ns7> ";
>       str = "";
> 
> 
> s7 <<< :ok
> s7> :ok
> s7> Bye!
> 
> _______________________________________________
> Cmdist mailing list
> Cmdist at ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist




More information about the Cmdist mailing list