Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCP Issue 11 - unclear how to get the text seen since the last match #8

Closed
cverges opened this issue Aug 27, 2013 · 0 comments
Closed
Labels

Comments

@cverges
Copy link
Owner

cverges commented Aug 27, 2013

Reported by andre.ho...@gmail.com, Apr 3, 2012
I'm trying to get the text seen since the last match (or the beginning). From experiments, I believe that this can be done as follows:

    child.expect(..., new Closure(){

      public void run(ExpectState es) throws Exception
      {
        System.out.println("GOT " + es.getBuffer());
      }
    });

If that's the recommended way, could you please add a few words to the docstring
of ExpectState.getBuffer() ? (people who never used Tcl don't necessarily know what expect_out(..) is).

Nov 1, 2012 #1 mpa...@ditechnetworks.com
Hi Andre,

I am facing challenges to get the text for the current unmatched output. I mean how to get the all the content from last command. Also how to clear the expect buffer in java?

@cverges cverges added the bug label May 4, 2014
cverges pushed a commit that referenced this issue May 4, 2014
@cverges cverges closed this as completed May 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant