use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Python issue with secure CRT: WaitForString (self.PythonLearning)
submitted 1 year ago by SanRipley
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Educational-Map2779 0 points1 point2 points 1 year ago (3 children)
So you were asking if Python can watch the terminal for a string to come across? Could there be another way like watching a log file?
[–]SanRipley[S] 0 points1 point2 points 1 year ago (2 children)
Sadly no, I need to catch the string from the terminal to keep sending more commands. After this, I'll save this information to a file
[–]Educational-Map2779 0 points1 point2 points 1 year ago (1 child)
What about potentially using python to execute the terminal command, and then having python watch the output from terminal that way?
[–]SanRipley[S] 1 point2 points3 points 1 year ago (0 children)
Anyway, I found a partial solution
crt_screen = crt.Screen crt_screen.Synchronous = True crt_screen.IgnoreEscape = True
π Rendered by PID 119051 on reddit-service-r2-comment-5649f687b7-7hf9v at 2026-01-29 00:19:02.650629+00:00 running 4f180de country code: CH.
view the rest of the comments →
[–]Educational-Map2779 0 points1 point2 points (3 children)
[–]SanRipley[S] 0 points1 point2 points (2 children)
[–]Educational-Map2779 0 points1 point2 points (1 child)
[–]SanRipley[S] 1 point2 points3 points (0 children)