mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
test
This commit is contained in:
parent
5ea15dda31
commit
c8e4cf23fd
5
inxi
5
inxi
|
@ -331,13 +331,15 @@ script_debugger()
|
||||||
|
|
||||||
# inxi speaks through here. When run by Konversation, uses DCOP
|
# 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
|
# 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()
|
print_screen_output()
|
||||||
{
|
{
|
||||||
#local print_data="$( echo -e "$1" )"
|
#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 [[ $DEBUG -gt 5 ]];then
|
||||||
if [[ $KONVI -eq 1 ]];then
|
if [[ $KONVI -eq 1 ]];then
|
||||||
|
|
||||||
dcop "$DCPORT" "$DCOPOBJ" say "$DCSERVER" "$DCTARGET" "konvi='$KONVI' saying : '$print_data'"
|
dcop "$DCPORT" "$DCOPOBJ" say "$DCSERVER" "$DCTARGET" "konvi='$KONVI' saying : '$print_data'"
|
||||||
elif [[ $KONVI -eq 2 ]];then
|
elif [[ $KONVI -eq 2 ]];then
|
||||||
echo "konvi='$KONVI' saying : '$print_data'"
|
echo "konvi='$KONVI' saying : '$print_data'"
|
||||||
|
@ -347,6 +349,7 @@ print_screen_output()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $KONVI -eq 1 ]];then
|
if [[ $KONVI -eq 1 ]];then
|
||||||
|
print_data="$( tr '\n' ' ' <<< "$print_data" )"
|
||||||
dcop "$DCPORT" "$DCOPOBJ" say "$DCSERVER" "$DCTARGET" "$print_data"
|
dcop "$DCPORT" "$DCOPOBJ" say "$DCSERVER" "$DCTARGET" "$print_data"
|
||||||
else
|
else
|
||||||
echo -e "$print_data\n"
|
echo -e "$print_data\n"
|
||||||
|
|
Loading…
Reference in a new issue