X3270 连接和编程 [英] X3270 Connection and Programming

查看:82
本文介绍了X3270 连接和编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑使用 X3270 终端模拟器.我已经 http://x3270.bgp.nu/ 查看了这个源材料,但仍然不明白如何开始使用该工具或对其进行配置.

I'm looking at using a X3270 terminal emulator. I have http://x3270.bgp.nu/ looked over this source material and still don't see how to start using the tool or configure it.

我想知道如何打开终端并连接.另一个问题是如何将其集成到 python 程序中?

I'm wonder how I can open a terminal and connect. Another question is how could I integrate this into a python program?

这是一个片段:

em = Emulator()     
em.connect(ip)
em.send_string('*user name*')
em.exec_command('Tab')
em.send_string('*user password*')
em.send_enter()
em.send_enter()
em.wait_for_field()
em.save_screen("{0}screenshot".format(*path*))

查看保存屏幕时,我发现光标没有移动?我可以使用

looking at the save screen i see that the cursor hasn't moved? I can move the cursor using

em.move_to(7,53)

但在那之后我没有收到任何短信.有什么想法吗?

but after that i don't get any text sent through. Any Ideas?

推荐答案

请先阅读我上面的评论 - 详细了解您需要做什么会很有帮助.

Please read my comment above first - it would be helpful to have more detail as to what you need to do.

考虑到这一点之后……您是否查看过 https://pypi 上的 py3270 包.python.org/pypi/py3270/0.1.5 ?摘要说它与 x3270 通信.

After considering that…have you looked at the py3270 package at https://pypi.python.org/pypi/py3270/0.1.5 ? The summary says it talks to x3270.

这篇关于X3270 连接和编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆