<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: script output in BOLD in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682565#M102897</link>
    <description>Hi Alan:&lt;BR /&gt;&lt;BR /&gt;I agree with Clay regarding the use of double quotes, but bungled my post anyway when pasting it.  I should have written:&lt;BR /&gt;&lt;BR /&gt;# XON=`tput smso`;XOFF=`tput rmso`;printf "%sI said %s %-s %s\n" ${XON} hello ${XOFF} there  &lt;BR /&gt;&lt;BR /&gt;I did *not* encapsulate the arguments in double quotes here or before.&lt;BR /&gt;&lt;BR /&gt;Aside from correcting my bad pasting from the first post, I *do* note that using `tput bold` to turn on "bold" emphasis doesn't get turned off with `tput rmso`, at least under vt220 emulation.  *However* you can see the effect correctly by using `tput smso` as I have in this post to turn on reverse video.&lt;BR /&gt;&lt;BR /&gt;Redirecting any of this to printers won't work, of course.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 01 Dec 2005 16:52:21 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2005-12-01T16:52:21Z</dc:date>
    <item>
      <title>script output in BOLD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682555#M102887</link>
      <description>I should know this, but I don't...  How do I make  portions of the output of a shell script to appear BOLD on the screen as well as print in BOLD when redirected to the printer?&lt;BR /&gt;&lt;BR /&gt;ie... (text shown in CAPS are to be bold)&lt;BR /&gt;&lt;BR /&gt;now is the TIME for all good men&lt;BR /&gt;&lt;BR /&gt;TO COME TO THE AID OF THEIR COUNTRY...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Dec 2005 12:53:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682555#M102887</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-12-01T12:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: script output in BOLD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682556#M102888</link>
      <description>echo "now is the \c"&lt;BR /&gt;tput bold&lt;BR /&gt;echo "TIME\c"&lt;BR /&gt;tput rmso&lt;BR /&gt;echo " for all good men"&lt;BR /&gt;tput bold&lt;BR /&gt;echo "TO COME TO THE AID OF THEIR COUNTRY..."&lt;BR /&gt;tput rmso&lt;BR /&gt;&lt;BR /&gt;Man tput, terminfo for details.</description>
      <pubDate>Thu, 01 Dec 2005 12:57:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682556#M102888</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-12-01T12:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: script output in BOLD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682557#M102889</link>
      <description>Alan,&lt;BR /&gt;&lt;BR /&gt;Try a man on "tput".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Thu, 01 Dec 2005 12:57:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682557#M102889</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-12-01T12:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: script output in BOLD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682558#M102890</link>
      <description>I've set the following in my script-&lt;BR /&gt;export ttybold=`tput bold` ; export ttynorm=`tput rmso`&lt;BR /&gt; &lt;BR /&gt;Then I can do&lt;BR /&gt;echo "now is the ${ttybold}TIME${ttynorm} for all good men"&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Thu, 01 Dec 2005 13:09:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682558#M102890</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2005-12-01T13:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: script output in BOLD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682559#M102891</link>
      <description>how do you incorporate that into a printf statement like:&lt;BR /&gt;&lt;BR /&gt; printf "%-10s: %-10s %-16s %-16s %-s\n" $NODE $LVLNB $PVD1 $PVD2 $NOTE&lt;BR /&gt;&lt;BR /&gt;where the whole line is to be BOLD? but nothing before or nothing after?</description>
      <pubDate>Thu, 01 Dec 2005 13:15:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682559#M102891</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-12-01T13:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: script output in BOLD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682560#M102892</link>
      <description>tput smso&lt;BR /&gt;printf "%-10s: %-10s %-16s %-16s %-s\n" $NODE $LVLNB $PVD1 $PVD2 $NOTE&lt;BR /&gt;tput rmso&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Dec 2005 13:21:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682560#M102892</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-12-01T13:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: script output in BOLD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682561#M102893</link>
      <description>Hi Alan:&lt;BR /&gt;&lt;BR /&gt;How about :&lt;BR /&gt;&lt;BR /&gt;# XON=`tput bold`;XOFF=`tput rmso`;printf "%sI said %s %-s\n" ${XOFF}&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Dec 2005 13:23:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682561#M102893</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-12-01T13:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: script output in BOLD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682562#M102894</link>
      <description>Doing it in echo mode works great, but,...&lt;BR /&gt;&lt;BR /&gt;the suggestions for incorporating it into a printf have not worked.&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Dec 2005 13:50:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682562#M102894</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-12-01T13:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: script output in BOLD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682563#M102895</link>
      <description>Oh, I should have read your post more carefully. The sequences needed to bold output to the terminal have nothing to do with those that are sent to the printer -- or if they do, it's purely accidental.&lt;BR /&gt;&lt;BR /&gt;However, you can create terminfo entries for printers as well and invoke tput with a -T option to indicate the printer type. Note that you will need to know the printer model and have a terminfo entry for each type. The command that converts a text file into a terminfo entry is 'tic'; 'untic' does the reverse. Man tic and untic for details. You are now getting into areas that UNIX ain't real good at doing. The application is supposed to take full control of this kind of printer output.</description>
      <pubDate>Thu, 01 Dec 2005 14:09:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682563#M102895</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-12-01T14:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: script output in BOLD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682564#M102896</link>
      <description>and the key to making your printf's work is them there quotes -- which is always good shell programming practice.&lt;BR /&gt;&lt;BR /&gt;typeset BOLD=$(tput bold)&lt;BR /&gt;typeset NORMAL=$(tput rmso)&lt;BR /&gt;typeset VAR1="This is some text; "&lt;BR /&gt;typeset VAR2="this here is some more text."&lt;BR /&gt;&lt;BR /&gt;printf "%s%s %s%s\n" "${BOLD}" "${VAR1}" "${VAR2}" "${NORMAL}"&lt;BR /&gt;&lt;BR /&gt;printf "(Normal) %s %s\n" "${VAR1}" "${VAR2}"</description>
      <pubDate>Thu, 01 Dec 2005 16:29:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682564#M102896</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-12-01T16:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: script output in BOLD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682565#M102897</link>
      <description>Hi Alan:&lt;BR /&gt;&lt;BR /&gt;I agree with Clay regarding the use of double quotes, but bungled my post anyway when pasting it.  I should have written:&lt;BR /&gt;&lt;BR /&gt;# XON=`tput smso`;XOFF=`tput rmso`;printf "%sI said %s %-s %s\n" ${XON} hello ${XOFF} there  &lt;BR /&gt;&lt;BR /&gt;I did *not* encapsulate the arguments in double quotes here or before.&lt;BR /&gt;&lt;BR /&gt;Aside from correcting my bad pasting from the first post, I *do* note that using `tput bold` to turn on "bold" emphasis doesn't get turned off with `tput rmso`, at least under vt220 emulation.  *However* you can see the effect correctly by using `tput smso` as I have in this post to turn on reverse video.&lt;BR /&gt;&lt;BR /&gt;Redirecting any of this to printers won't work, of course.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 01 Dec 2005 16:52:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682565#M102897</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2005-12-01T16:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: script output in BOLD</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682566#M102898</link>
      <description>That works great thanks guys</description>
      <pubDate>Thu, 01 Dec 2005 18:03:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-output-in-bold/m-p/3682566#M102898</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-12-01T18:03:00Z</dc:date>
    </item>
  </channel>
</rss>

