摘要: 在控制台程序远程交互时,使用添加远程通信模块的方法易降低控制台程序的兼容性,而重定向标准输入输出方法易降低系统软件的兼容性。针对以上问题,提出一种控制台远程交互模型。通过模拟键盘将数据输入到控制台窗口输入缓冲区,并从其输出缓冲区得到回显数据。实验结果证明,该模型适用于各种常用控制台程序,不会与系统软件产生冲突,可实现与控制台程序的交互。
关键词:
输入缓冲区,
输出缓冲区,
控制台程序,
远程交互,
加载器,
兼容性
Abstract: 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.
Key words:
input buffer,
output buffer,
console program,
remote interaction,
loader,
compatibility
中图分类号:
唐磊, 宋宇波, 蓝智灵. 基于I/O缓冲区读写的控制台远程交互模型[J]. 计算机工程, 2013, 39(1): 275-278.
TANG Lei, SONG Yu-Bei, LA Zhi-Ling. Console Remote Interaction Model Based on I/O Buffer Read and Write[J]. Computer Engineering, 2013, 39(1): 275-278.