在哪里可以找到 Unix 的 TTY 和curses 文档?
我正在为在 SCO Unix 上运行的 ERP 程序开发自动化工具。
请参阅我关于 Expect 的问题:
- (Tcl/Expect) 退出后清屏
- < a href="https://stackoverflow.com/questions/1988811/expect-get-variable-from-screen-region-based-on-row-and-column">期望 - 根据行和从屏幕区域获取变量 ?
我在哪里可以找到(本地或网络上)资源来了解会话中使用的控制字符,更具体地说,在与 ERP 程序交互期间确定屏幕上的字段位置
I'm working on automation tools for an ERP program running on SCO Unix.
See my questions on Expect:
- (Tcl/Expect) clear screen after exit
- Expect - get variable from screen region based on row and column
Where can I find (either locally or on the web) resources for understanding what control characters are used in a session, and more specifically, determining a field location on the screen during an interaction with the ERP program?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
给定终端类型的特定控制字符存储在
terminfo
数据库中。 curses 在初始化时读取$TERM
的值,并使用它来查找和提取各种终端操作的相关序列。The specific control characters for a given terminal type are stored in the
terminfo
database. curses reads the value of$TERM
when initializing and uses it to find and extract the relevant sequences for the various terminal operations.我不太清楚你在问什么,但关于curses的文档来源之一是GNU实现,位于http ://www.gnu.org/software/ncurses。至于“控制字符”,这取决于您使用的终端 - 您的终端可能理解 ANSI 代码 - 请参阅 http://en.wikipedia.org/wiki/ANSI_escape_code。
I'm not really clear what you are asking, but one source of documentation on curses is the GNU implementation at http://www.gnu.org/software/ncurses. As far as 'control characters' go, well that depends on what terminal you use - yours probably understands ANSI codes - see http://en.wikipedia.org/wiki/ANSI_escape_code.
我刚刚发现 X/Open Group 于 2009 年 11 月发布了其标准的新版本(上一版本于 1996 年发布),并且可以从其书店作为技术标准在网络上免费获取 - X/Open Curses,第 7 期。您必须注册,但访问是免费的(并且注册不会导致电子邮件泛滥等)。
X/Open 不再提供以前的版本,即第 4 期第 2 版(从 1996 年 7 月起)。鉴于第 7 期的新颖性,新功能不太可能广泛实施,但预计会在未来几年内发生变化。
I just found out that the X/Open Group released a new version of their standard in November 2009 (previous version was released in 1996), and it is available free on the web from their bookstore as Technical Standard - X/Open Curses, Issue 7. You have to register, but access is free (and registration does not lead to an inundation of email, etc).
The previous version, Issue 4, Version 2 (from July 1996), is no longer available from X/Open. Given the newness of Issue 7, the new features are unlikely to be widely implemented yet, but look for changes in the next few years.