![](/img/trans.png)
[英]How can I pass arguments in the terminal command line using Javascript?
[英]Can I change the my terminal position by using either the command line or perl?
監視另一個屏幕時,我正在運行多個后台進程。 我通常會為后台進程調整終端窗口的大小,並將其放在屏幕的最右邊,然后運行perl腳本。 我添加了一個系統調用來resize -s ## ##
來自動調整窗口大小,但是有沒有辦法也可以調整窗口位置? 提前致謝
如果
resize -s row col
工作,然后可能執行xterm的轉義序列庫(在本例中為dtterm改編)的其他部分。 在這個部分
CSI Ps ; Ps ; Ps t
Window manipulation (from dtterm, as well as extensions by
xterm). These controls may be disabled using the allowWin-
dowOps resource.
XTerm控制序列列出了以下內容:
Ps = 3 ; x ; y -> Move window to [x, y].
您可以使用
printf '\033[3;%d;%dt' $x $y
在Shell腳本中,其中$x
和$y
是x / y坐標。
這可能無法完全回答您的問題,但是可以使用nohup命令在沒有tty的情況下跳過某些進程,例如后台進程。 但是,當然這取決於該過程是什么,並且可以使用fg恢復該過程。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.