I have a little problem now.

When you read input, stuff you type is echoed to the screen.
So a prompt and response:

~/felix>build/release/host/bin/flx --test=build/release src/web/tut_01
Hello World
Hello johnskaller
Hello
Enter your name: me
Hello me

Enter your name: you
Hello you!

and again with stdin redirected:

~/felix>build/release/host/bin/flx --test=build/release --input=meme.input 
src/web/tut_01
Hello World
Hello johnskaller
Hello
Enter your name: Hello me

Enter your name: Hello MEE!!


Woops! I mean, this is actually correct. Standard input isn't echoed to 
standard output, however when you read a line the line editor
will do that (and move the cursor and in the case of bash make a complete
an utter mess if you resize your terminal window).

Of course in Posix you can tell if a file is connected to a terminal with isatty
(or _isatty in Windows).

Hmmm...


--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to