From c8e4cf23fdf9a4079953965044815bb4fbddf7b3 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Mon, 24 Nov 2008 00:28:39 +0000 Subject: [PATCH] test --- inxi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"