terminal的一些定义

本文详细介绍了计算机终端、终端模拟器的概念及其工作原理,并探讨了伪终端(pseudoterminal)的应用场景和技术细节,包括如何通过终端转义序列控制显示效果及伪终端在telnet中的作用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

什么是terminal?什么是Text terminals?
http://en.wikipedia.org/wiki/Computer_terminal


什么是terminal emulator?
http://en.wikipedia.org/wiki/Terminal_emulator


terminal emulator支持一些escape sequence来控制颜色和鼠标的位置等;
Terminal Control Escape Sequences:
转义字符是在putty中实现的,可参见Terminal.c中的L2378;
http://en.wikipedia.org/wiki/ANSI_escape_code
http://ascii-table.com/ansi-escape-sequences.php
http://www.termsys.demon.co.uk/vtansi.htm
http://invisible-island.net/xterm/ctlseqs/ctlseqs.txt

 

pseudo terminal的作用:

A pseudo-terminal is mainly used to make a process believe that it interacts with a terminal although it actually interacts with one or more processes.

 

telnet和pseudo terminal的关系:
http://rachid.koucha.free.fr/tech_corner/pty_pdip.html
http://learn.akae.cn/media/ch34s01.html

 

telnet的source:
http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.sbin/in.telnetd.c
sun官网对pseudo terminal的解释:
http://docs.sun.com/app/docs/doc/801-6679/6i11pd606?l=en&a=view&q=pseudo+terminal+

 

select调用的解释:
http://linux.die.net/man/2/select
创建pseudo-terminal master and slave:
http://linux.die.net/man/4/ptmx

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值