Originally Posted by
spartrekus
The FAQ is huge.
Could you be specific on how to exit the input?
look, it is readily possible. It can be proved:
echo test | less
echo test | more
HELP
Maybe,
look at what your checking:
Code:
double linemax= (double)(w.ws_row);double linepos = 0;
....
if (linepos >= linemax )
I don't fully understand it, but, reading more of your code even though it looks like it will meet that requirement in your if statement.
should it not check for an action instead?
if key press do something
mock code
Code:
while ( wait)
if ( action == desired action / condition )
do it
else
wait for it
something like that perhaps?
or
Code:
while ( doing something && desired action / condition not reached)
{
just keep on doing it, even if the doing something is just waiting.
}
or
Code:
while ( doing something || until desired action / condition is reached)
{
just keep on doing it, even if the doing something is just waiting.
else
break; on condition reached.
}
that last one look funny, don't trust it. until tried.
plus you're using a Pipe so you got to factor that in too. yes?