User Tools

Site Tools


other:dialog_terminal_tui

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
other:dialog_terminal_tui [2021/04/06 03:01]
nanodano
other:dialog_terminal_tui [2021/04/06 03:38] (current)
nanodano [.dialogrc file]
Line 154: Line 154:
 Then you'll have an rc file with all the color and options populated for you to modify. Then you'll have an rc file with all the color and options populated for you to modify.
  
-If you want to see some example rc files, check in the [[https://invisible-island.net/dialog/#download|source code]] in a directory called ''samples/''. For example ''whiptail.rc''.+==== Change colors === 
 + 
 +If you want to see some example rc files, check in the [[https://invisible-island.net/dialog/#download|source code]] in a directory called ''samples/''. For example ''whiptail.rc''. Screenshots are available at [[https://invisible-island.net/dialog/dialog-figures.html#list_colors]]. Refer to the file ''dlg_colors.h'' in the source code for a list of available colors. There aren't a ton, but it looks like there is: 
 + 
 +  * ''BLACK'' 
 +  * ''WHITE'' 
 +  * ''CYAN'' 
 +  * ''BLUE'' 
 +  * ''YELLOW'' 
 +  * ''RED'' 
 + 
 +Also make sure ''use_color = ON'' and not OFF.
  
 To override the default rc filename, set a ''DIALOGRC'' environment variable to specify the file you want to use. To override the default rc filename, set a ''DIALOGRC'' environment variable to specify the file you want to use.
 +
 +Here is a sample ''.dialogrc'' file that has DevDungeon-ish themed colors:
 +
 +<code text .dialogrc>
 +#
 +# Run-time configuration file for dialog
 +#
 +# Types of values:
 +#
 +# Number      <number>
 +# String      "string"
 +# Boolean    -  <ON|OFF>
 +# Attribute  -  (foreground,background,highlight?,underline?,reverse?)
 +
 +# Set aspect-ration.
 +aspect = 0
 +# Set separator (for multiple widgets output).
 +separate_widget = ""
 +# Set tab-length (for textbox tab-conversion).
 +tab_len = 0
 +# Make tab-traversal for checklist, etc., include the list.
 +visit_items = OFF
 +# Shadow dialog boxes? This also turns on color.
 +use_shadow = OFF
 +# Turn color support ON or OFF
 +use_colors = ON
 +screen_color = (CYAN,BLACK,ON)
 +shadow_color = (RED,RED,ON)
 +dialog_color = (CYAN,BLACK,OFF)
 +title_color = (CYAN,BLACK,ON)
 +border_color = (CYAN,BLACK,ON)
 +button_active_color = (BLACK,CYAN,ON)
 +button_inactive_color = dialog_color
 +button_key_active_color = button_active_color
 +button_key_inactive_color = (WHITE,BLACK,ON)
 +button_label_active_color = (WHITE,CYAN,ON)
 +button_label_inactive_color = (WHITE,BLACK,ON)
 +inputbox_color = dialog_color
 +inputbox_border_color = dialog_color
 +searchbox_color = dialog_color
 +searchbox_title_color = title_color
 +searchbox_border_color = border_color
 +position_indicator_color = title_color
 +menubox_color = dialog_color
 +menubox_border_color = border_color
 +item_color = dialog_color
 +item_selected_color = button_active_color
 +tag_color = title_color
 +tag_selected_color = button_label_active_color
 +tag_key_color = button_key_inactive_color
 +tag_key_selected_color = (CYAN,BLACK,ON)
 +check_color = dialog_color
 +check_selected_color = button_active_color
 +uarrow_color = (RED,BLACK,ON)
 +darrow_color = uarrow_color
 +itemhelp_color = (WHITE,BLACK,OFF)
 +form_active_text_color = button_active_color
 +form_text_color = (WHITE,CYAN,ON)
 +form_item_readonly_color = (CYAN,WHITE,ON)
 +gauge_color = title_color
 +border2_color = dialog_color
 +inputbox_border2_color = dialog_color
 +searchbox_border2_color = dialog_color
 +menubox_border2_color = dialog_color
 +</code>
other/dialog_terminal_tui.1617678117.txt.gz · Last modified: 2021/04/06 03:01 by nanodano