annacrombie / plot

plot on the command line
MIT License
113 stars 9 forks source link

feat: animate: allow following while stopping at inputs EOF #8

Closed AdrianDC closed 3 years ago

AdrianDC commented 3 years ago
AdrianDC commented 3 years ago

WIP: This handles "animated" --follow for finite data inputs or streams, however it breaks real --follow of unfinished streams. I'd consider an additional flag or --animate alternative to --follow that would handle EOF this way.

AdrianDC commented 3 years ago

Handled separately as "-A" for animate, with related documentation;

Pushed on top of the -b bound feature to avoid conflict resolution for the moment.

annacrombie commented 3 years ago

I'm a little hesitant to add this, since -f already feels a bit hacky, but I'm not totally against it.

annacrombie commented 3 years ago

I will review this after we figure out #11

AdrianDC commented 3 years ago

Follows #11

I fixed an issue in the getopt syntax, a follow-up commit fixes the additional \n output that the normal output with the same input data does not add, and a minor error messages fixes commit.

annacrombie commented 3 years ago

I will go ahead and merge this for now. I think a rewrite of input.c is in order, which will also let us clean up this feature. Until then this is good!