F11 and visible=True on c3270 emulator

33 views
Skip to first unread message

Shining Chen

unread,
Jul 31, 2023, 4:55:26 PM7/31/23
to BlazeLibs
Hi, my team is trying to simulate pressing F11.
We tried the following but none worked, but we didn't get any error message at all:
1. exec_command(b”PF(3)”)
2. em.send_pf(11)
3. adding our own def send_pf11(self):

Besides, we are having trouble with the Emulator variable visible=False.  It runs tests and passes in headless mode, but it doesn't let us set it to True.  It complains about 

Traceback (most recent call last):
  File "/Users/shining.chen/PycharmProjects/scrape3270/main.py", line 21, in <module>
    my3270.connect(myhost)
  File "/Users/shining.chen/PycharmProjects/scrape3270/venv/lib/python3.11/site-packages/py3270/__init__.py", line 358, in connect
    self.exec_command(command)
  File "/Users/shining.chen/PycharmProjects/scrape3270/venv/lib/python3.11/site-packages/py3270/__init__.py", line 308, in exec_command
    c.execute()
  File "/Users/shining.chen/PycharmProjects/scrape3270/venv/lib/python3.11/site-packages/py3270/__init__.py", line 82, in execute
    return self.handle_result(result.decode("ascii"))

This makes our debugging very difficult!
Any ideas?
Reply all
Reply to author
Forward
0 new messages