diff --git a/inxi b/inxi index be76da7..96347e5 100755 --- a/inxi +++ b/inxi @@ -331,13 +331,15 @@ script_debugger() # inxi speaks through here. When run by Konversation, uses DCOP # for dcop to work, must use 'say' operator, AND colors must be evaluated by echo -e +# note: dcop does not seem able to handle \n so that's being stripped out and replaced with space. print_screen_output() { #local print_data="$( echo -e "$1" )" - local print_data="$( echo -e "$1" )" + local print_data="$( echo -e "$1" )" no_new_line='' if [[ $DEBUG -gt 5 ]];then if [[ $KONVI -eq 1 ]];then + dcop "$DCPORT" "$DCOPOBJ" say "$DCSERVER" "$DCTARGET" "konvi='$KONVI' saying : '$print_data'" elif [[ $KONVI -eq 2 ]];then echo "konvi='$KONVI' saying : '$print_data'" @@ -347,6 +349,7 @@ print_screen_output() fi if [[ $KONVI -eq 1 ]];then + print_data="$( tr '\n' ' ' <<< "$print_data" )" dcop "$DCPORT" "$DCOPOBJ" say "$DCSERVER" "$DCTARGET" "$print_data" else echo -e "$print_data\n"