tputコマンド+ダイアログウィンドウを画面上部に配置する方法

tputコマンド+ダイアログウィンドウを画面上部に配置する方法

tputコマンドを使用してダイアログウィンドウを画面上部に配置できますか?

たとえば、次のダイアログ コマンドは、ログが tail コマンドで実行されていることを示しています。

     dialog --tailbox file.log 10 100

デフォルトでは、ダイアログウィンドウは画面の中央にあります。

しかし、ダイアログを中央ではなく上に置きたいです。

何をすべきかアドバイスしてください。

tputコマンド情報:

   DESCRIPTION
   The  tput utility uses the terminfo database to make the values of terminal- dependent capabilities and informa-
   tion available to the shell (see sh(1)), to initialize or reset the terminal, or  return the long  name  of  the
   requested terminal type.  The result depends upon the capabilityâs type:

ベストアンサー1

tputこの目的には役に立たない。ダイアログボックスの--beginオプションを使用して、feは--begin 0 0端末の左上にウィンドウを配置します。

おすすめ記事