This commit is contained in:
inxi-svn 2008-11-24 00:28:39 +00:00
parent 5ea15dda31
commit c8e4cf23fd

5
inxi
View file

@ -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"