Bash - 多行 Whiptail 背景

Bash - multiline Whiptail backtitle

我正在尝试向 Whiptail 对话框的背景字幕中添加多行。

我试过了:

whiptail --clear --backtitle "asdf \n asdf \n asdf" \
         --title test --yesno test \
         0 0 "test" 3>&1 1>&2 2>&3
whiptail --clear --backtitle "asdf
asdf
asdf" \
         --title test --yesno test \
         0 0 "test" 3>&1 1>&2 2>&3
whiptail --clear --backtitle "$(printf '%s\n' asdf asdf asdf)" \
         --title test --yesno test \
         0 0 "test" 3>&1 1>&2 2>&3

有没有多行背景的方法?

没有

查看托管的来源 here you can see that the backtitle 文本始终绘制在第一列和第一行中。

但是任何位置都可以放在那里。 This 是该函数的来源。 我克隆了 repo 并验证了在解析后缀选项的位置 (0,0) 之外放置其他内容将使文本从您想要的任何位置开始。