From 847553c217ab38386d8e000cf177e9cdc2fcca96 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 26 Apr 2011 18:53:57 +0000 Subject: [PATCH] final output tweaks --- inxi | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/inxi b/inxi index 17cb199..0bb8796 100755 --- a/inxi +++ b/inxi @@ -510,13 +510,11 @@ main() ## Konversation 1.2 apparently does not like the $PPID test in get_start_client ## So far there is no known way to detect if qt4_konvi is the parent process ## this method will infer qt4_konvi as parent - get_start_client # note: this only works if it's run from inside konversation as a script builtin or something # only do this if inxi has been started as a konversation script, otherwise bypass this # KONVI=3 ## for testing puroses - ## if [[ $KONVI -eq 1 || $KONVI -eq 3 ]];then if [[ $KONVI -eq 1 ]]; then ## dcop Konversation (ie 1.x < 1.2(qt3)) @@ -844,18 +842,23 @@ select_default_color_scheme() local config_file="$HOME/.$SCRIPT_NAME/$SCRIPT_NAME.conf" local irc_clear="" + # don't want these printing in irc since they show literally if [[ $B_RUNNING_IN_SHELL != 'true' ]];then irc_clear='' fi # first make output neutral so it's just plain default for console client set_color_scheme "0" - print_screen_output "Welcome to $SCRIPT_NAME! Please select the default $COLOR_SELECTION color scheme." - # print_screen_output "You will see this message only one time per user account, unless you set preferences in: /etc/$SCRIPT_NAME.conf" - print_screen_output " " + if [[ $B_RUNNING_IN_SHELL == 'true' ]];then + print_screen_output "Welcome to $SCRIPT_NAME! Please select the default $COLOR_SELECTION color scheme." + # print_screen_output "You will see this message only one time per user account, unless you set preferences in: /etc/$SCRIPT_NAME.conf" + print_screen_output " " + fi print_screen_output "Because there is no way to know your $COLOR_SELECTION foreground/background colors, you can" print_screen_output "set your color preferences from color scheme option list below. 0 is no colors, 1 neutral." print_screen_output "After these, there are 3 sets: 1-dark or light backgrounds; 2-light backgrounds; 3-dark backgrounds." - print_screen_output "Please note that this will set the $COLOR_SELECTION preferences only for user: $(whoami)" + if [[ $B_RUNNING_IN_SHELL == 'true' ]];then + print_screen_output "Please note that this will set the $COLOR_SELECTION preferences only for user: $(whoami)" + fi print_screen_output "------------------------------------------------------------------------------" for (( i=0; i < ${#A_COLOR_SCHEMES[@]}; i++ )) do