posts/how-tty-system-works/ #28
Replies: 5 comments 8 replies
-
👍博客很有质感。 文章一旦长了,滚回目录不太容易 |
Beta Was this translation helpful? Give feedback.
-
请问终端改变窗口大小怎么传递给服务端呢 |
Beta Was this translation helpful? Give feedback.
-
嗯, 我单独设计了下数据包,把winsize改变单独通知给服务器,服务器收到这个数据包后设置伪终端的winsize, kernel就会给伪终端的前台程序发WINCH signal, 这样行为就正常了 |
Beta Was this translation helpful? Give feedback.
-
写得很好👍🏻。我有一个问题请教一下作者,如今的 shell 和终端都是软件,因此终端启动可以带着 shell 也启动,这没啥问题。但以前的 shell 和终端是分开的,shell 是不是必须得开机启动,并常驻后台去监听来自终端的输入输出?还是说连接上终端后,系统会自动启动一个 shell 进程去负责读取来自这个终端的输入输出呢? |
Beta Was this translation helpful? Give feedback.
-
内容写的很棒!👍,看到伪终端的时候突然解决了我以前一直没想明白的问题(标准输入在不同进程间怎么区分开的):
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
posts/how-tty-system-works/
长久以来,我们把终端和 shell 视作开发者理所当然的基本工具,但其底层涉及的组件和机制却并不简单。本文将帮助你理清终端、TTY、伪终端、PTY 和 Shell 等概念。
https://waynerv.com/posts/how-tty-system-works/
Beta Was this translation helpful? Give feedback.
All reactions