0

I would like to know if similar/equivalent expect_background option is there in pexpect.

  • Can some one let me know?
AlvaroAV
  • 10,335
  • 12
  • 60
  • 91
  • Please provide some more context. – Meghdeep Ray May 29 '15 at 06:38
  • HI....TCL expect_background runs continuously in the background, it matches every character that comes in. Please find the small description here: https://www.safaribooksonline.com/library/view/exploring-expect/9781565920903/ch19s06.html. I am trying to create tkinter terminal where I need to use this option, but havent found similar option in python. Basically, it matches everything on the console and sends it to GUI. – Balajee Muggalla May 29 '15 at 07:42
  • you could try: `root.createfilehandler(sys.stdin.fileno(), READABLE, your_callback)`. Here's [`createfilehandler()` helps to read output from a subprocess](http://stackoverflow.com/a/22118914/4279) – jfs May 29 '15 at 08:15

0 Answers0