嵌入式Linux串行终端多路复用器

发布于 2024-10-26 23:17:21 字数 306 浏览 3 评论 0原文

我使用 debian 6.0 构建了一个自定义嵌入式系统。

使用 /etc/inittab 我已经在不同的 /dev/ttyX 终端上运行了几个 (8) 进程,我可以使用 Alt+FX 组合键在它们之间进行切换。问题是使用这个设置我需要将键盘/显示器连接到设备并重新启动它,才能对其进行操作,这是非常不可取的。我知道Linux通过串行端口支持终端,并且我的设备上有几个终端,但我需要在单个串行端口终端中输出所有这些进程。我已经找到了用于终端多路复用的屏幕实用程序,但仍然不确定这是否是可行的方法以及需要完成的实际设置。

任何关于这种情况的经验或最佳实践将受到高度赞赏

I have built a custom embedded system using debian 6.0.

using /etc/inittab i have made several (8) processes running on different /dev/ttyX terminals, which i can switch between using Alt+FX key combination. the thing is using this setup i need to attach a keyboard/monitor to device and reboot it, to be able to operate on it, which is so undesirable. i know linux supports terminals through serial port and i have a couple of them on the device, but i need to have all these processes output in a single serial port terminal. i have found about screen utility for terminal multiplexing, but still not sure if this is the way to go, and the actual setup that needs to be done.

any experience or best practice on this scenario would be highly appreciated

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

是伱的 2024-11-02 23:17:21

我强烈建议使用 screen(1)hardstatus 行;如果没有它,screen(1) 可能会非常令人困惑,至少在您尝试学习时是这样。

一些示例来自 https://serverfault.com/questions/3740/what-are-useful- screenrc-settings

hardstatus lastline                                    
#hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}'
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'

所有这些魔法咒语可能有点难以忍受;我有一套我曾经很喜欢的好套装,但该硬盘目前放在架子上。也许四处寻找一些,收集一些,并寻找它们的描述。 :)

我记得需要 hardstatus lastlinehardstatus string ...,但我不记得省略 lastline 行的后果。

I strongly recommend using screen(1)'s hardstatus line; screen(1) can be pretty confusing without it, at least when you're trying to learn.

Some examples stolen from https://serverfault.com/questions/3740/what-are-useful-screenrc-settings

hardstatus lastline                                    
#hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}'
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'

All those magic incantations might be a bit much to stomach; I had a nice set I used to love, but that hard drive is currently sitting on a shelf. Maybe hunt around a little bit to collect a few, and look for descriptions of them. :)

I recall needing both hardstatus lastline and hardstatus string ..., but I cannot recall the consequences of leaving off the lastline line.

傾城如夢未必闌珊 2024-11-02 23:17:21

可以在 sourceforge 上找到名为 Tmux 的新 Unicode 感知多路复用器怎么样。

请参阅http://tmux.sourceforge.net

What about the new Unicode aware multiplexer called Tmux which can be found on sourceforge.

See http://tmux.sourceforge.net

本宫微胖 2024-11-02 23:17:21

许多年前有“mscreen”,最初来自SCO Unix。不知道现在还可以用吗
今天有一个“GNU Screen”项目:

http://www.gnu.org/software/screen/

Many years ago there was "mscreen", originally from SCO Unix. I don't know if it's still avilable.
Today there is the "GNU Screen" project:

http://www.gnu.org/software/screen/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文