小编Bri*_*ick的帖子

什么设置控制我的 .dialogrc 文件中的此功能?

我正在编写一个 bash 脚本供个人使用,它使用dialog。我的脚本是:

#!/bin/bash                                                              
DIALOG=${DIALOG=dialog}

$DIALOG --title "Title" --clear \
    --msgbox "hello world" 18 64
clear
Run Code Online (Sandbox Code Playgroud)

运行脚本会生成一个如下所示的菜单:

在此处输入图片说明

我想改变OK突出显示选择的方式。理想情况下,我希望整个OK“按钮”轮廓或文本在选择时改变颜色,但我会满足于突出显示为O不同的颜色。设置由我的.dialogrc文件控制,如下所示。

#
# Run-time configuration file for dialog
#
# Automatically generated by "dialog --create-rc <file>"
#
#
# Types of values:
#
# Number     -  <number>
# String     -  "string"
# Boolean    -  <ON|OFF>
# Attribute  -  (foreground,background,highlight?)

# Set aspect-ration.
aspect = 0

# Set separator (for multiple widgets output).
separate_widget …
Run Code Online (Sandbox Code Playgroud)

bash dialog

3
推荐指数
1
解决办法
2348
查看次数

标签 统计

bash ×1

dialog ×1