摘要
在控制台程序远程交互时,使用添加远程通信模块的方法易降低控制台程序的兼容性,而重定向标准输入输出方法易降低系统软件的兼容性。针对以上问题,提出一种控制台远程交互模型。通过模拟键盘将数据输入到控制台窗口输入缓冲区,并从其输出缓冲区得到回显数据。实验结果证明,该模型适用于各种常用控制台程序,不会与系统软件产生冲突,可实现与控制台程序的交互。
A model for remote interaction of user with console program is proposed according to the problems that console program compatibility is reduced by adding remote communication module and system application compatibility is reduced by redirecting standard I/O.This model devises a console program loader which adopts a method of writing commands into the console window input buffer by simulated keyboard input and reading echo data from its output buffer for interaction.Experimental results demonstrate that the model is appropriate for all kinds of normal console program and cannot conflict with system software.It can be adopted for interacting with console program.
出处
《计算机工程》
CAS
CSCD
2013年第1期275-278,共4页
Computer Engineering
基金
国家"863"计划基金资助项目(2009AA01Z427)