This commit is contained in:
inxi-svn 2008-11-24 00:39:34 +00:00
parent bb44b53f72
commit a2af542005

8
inxi
View file

@ -30,6 +30,9 @@
#### ####
#### You should have received a copy of the GNU General Public License #### You should have received a copy of the GNU General Public License
#### along with this program. If not, see <http://www.gnu.org/licenses/>. #### along with this program. If not, see <http://www.gnu.org/licenses/>.
####
#### If you don't understand what Free Software is, please read this page:
#### http://www.gnu.org/philosophy/free-sw.html - it's quite clear.
######################################################################## ########################################################################
#### DEPENDENCIES #### DEPENDENCIES
#### bash >=2.05b(bash), df;readlink;stty;tr;uname;wc(coreutils), #### bash >=2.05b(bash), df;readlink;stty;tr;uname;wc(coreutils),
@ -329,12 +332,13 @@ script_debugger()
#### print / output cleaners #### print / output cleaners
#### ------------------------------------------------------------------- #### -------------------------------------------------------------------
# inxi speaks through here. When run by Konversation, uses DCOP # inxi speaks through here. When run by Konversation script alias mode, 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. # 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" )" no_new_line='' # the double quotes are needed to avoid losing whitespace in data when certain output types are used
local print_data="$( echo -e "$1" )"
if [[ $DEBUG -gt 5 ]];then if [[ $DEBUG -gt 5 ]];then
if [[ $KONVI -eq 1 ]];then if [[ $KONVI -eq 1 ]];then