<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 18, 2018 at 1:01 AM, Konrad J Hambrick <span dir="ltr"><<a href="mailto:kjhambrick@gmail.com" target="_blank">kjhambrick@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="gmail-h5">On Mon, Sep 17, 2018 at 7:06 PM, Christoph Willing <span dir="ltr"><<a href="mailto:chris.willing@iinet.net.au" target="_blank">chris.willing@iinet.net.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><span class="gmail-m_-4535469214758515049gmail-">On 17/9/18 9:11 pm, Konrad J Hambrick wrote:<br>
> <br>
> On Mon, Sep 17, 2018 at 12:46 AM, Christoph Willing<br>
</span><span class="gmail-m_-4535469214758515049gmail-">> <<a href="mailto:chris.willing@iinet.net.au" target="_blank">chris.willing@iinet.net.au</a> <mailto:<a href="mailto:chris.willing@iinet.net.au" target="_blank">chris.willing@iinet.ne<wbr>t.au</a>>> wrote:<br>
> <br>
>     On 17/9/18 8:42 am, Christoph Willing wrote:<br>
>     > On 16/9/18 8:10 pm, Konrad J Hambrick wrote:<br>
>     [snip]<br>
>     > <br>
>     > A problem I will have with the python curses solution is how to test. Is<br>
>     > your problem due to a physical device you're using, or is it to do with<br>
>     > how you're using hoorex in your update scripts i.e. something I could<br>
>     > replicate sufficiently to test any fix?<br>
>     > <br>
>     Hi Konrad,<br>
> <br>
>     I just discovered something which I hope is relevant - I can see the<br>
>     escape sequences when I pipe or redirect hoorex output anywhere. That<br>
>     breaks a use case described in the man page - not good - so I've<br>
>     committed a fix for this situation (by first testing whether output<br>
>     device is a tty).<br>
> <br>
>     Is your case similar to that (a script piping or redirecting hoorex<br>
>     output somewhere)? If so, the attached patch should fix it. Could you<br>
>     test it (against 0.6.4) if you have time?<br>
> <br>
>     Thanks,<br>
>     chris<br>
> <br>
> Chris --<br>
> <br>
> Yes, I am invoking something like the code below my sig.<br>
> <br>
<br>
</span>Thanks Konrad,<br>
</div><div><span class="gmail_default" style="font-family:courier new,monospace"></span><br></div><div>
I've confirmed that your sample code works correctly with the fix I made<br>
to hoorex. That fix is included in hoorex-0.6.5, for which I've pushed<br>
an updated SlackBuild to SBo, so should be available in next round of<br>
updates at the weekend. If you're in a hurry, it's also available now at:<br>
<br>
<a href="https://git.slackbuilds.org/slackbuilds/tree/misc/hoorex?h=user/chris.willing/updates" rel="noreferrer" target="_blank">https://git.slackbuilds.org/sl<wbr>ackbuilds/tree/misc/hoorex?h=<wbr>user/chris.willing/updates</a><br>
although, for your use case, there's no particular advantage over v0.6.2<br>
that you reverted to.<br>
</div><span class="gmail_default" style="font-family:courier new,monospace"></span></blockquote></div></div><div><span class="gmail_default" style="font-family:courier new,monospace">Thanks C</span><span class="gmail_default" style="font-family:courier new,monospace">hris<br><br></span></div><div><span class="gmail_default" style="font-family:courier new,monospace">It'll be nice to have hoorex off my ever-growing weekly `.find-SB-updates` listing :)<br><br></span></div><div><span class="gmail_default" style="font-family:courier new,monospace">It is one of the SBo Packages that I always update first :)<br><br></span></div><div><span class="gmail_default" style="font-family:courier new,monospace">Thank a ton for hoorex !<br><br></span></div><div><span class="gmail_default" style="font-family:courier new,monospace">-- kjh<br></span></div><div><span class="gmail_default" style="font-family:courier new,monospace"></span></div></div><span style="font-family:monospace,monospace"><span class="gmail_default" style="font-family:courier new,monospace"># </span>./.find-SB-updates<br><br># AppName                     |OldVer        |NewVer        |Installed PkgFile<br>  arp-scan                    |1.9.2         |1.9           |arp-scan-1.9.2-x86_64-1_SBo<br>  psqlodbc                    |10.3.0        |10.2.0        |psqlodbc-10.3.0-x86_64-1_SBo_<wbr>kjh<br>  CGAL                        |4.11.1        |4.12.1        |CGAL-4.11.1-x86_64-1_SBo_kjh_<wbr>B80529_test<br>  hdf5                        |1.8.17        |1.8.15_patch1 |hdf5-1.8.17-x86_64-1_SBo<br>  rabbitmq-server             |3.7.7         |3.6.10        |rabbitmq-server-3.7.7-x86_64-<wbr>1_SBo_kjh<br>  intel-microcode             |20180807a     |20180807      |intel-microcode-20180807a-<wbr>noarch-1_SBo_kjh<br>  postgresql                  |9.6.10        |10.2          |postgresql-9.6.10-x86_64-1_<wbr>SBo_kjh<br>  hoorex                      |0.6.2         |0.6.4         |hoorex-0.6.2-noarch-1_SBo<br>  adobe-reader                |9.5.5_enu     |9.5.5         |adobe-reader-9.5.5_enu-i486-<wbr>1_SBo<br>  gdal                        |2.3.1         |2.2.4         |gdal-2.3.1-x86_64-1_SBo_kjh<br>  opencl-headers              |2.2           |1.1           |opencl-headers-2.2-noarch-1_<wbr>SBo<br></span><br></div></div></div>
</blockquote></div><br><div style="font-family:courier new,monospace" class="gmail_default">Thank you Chris !<br><br></div><div style="font-family:courier new,monospace" class="gmail_default">hoorex version 0.6.5 works great in my scripts !<br><br></div><div style="font-family:courier new,monospace" class="gmail_default">Simple Test Script:<br><br># for i in `hoorex -r gdal` ; do echo -e "$i\c" |hd -h ; done<br><br>00000000   67 65 6f 73                                       geos<br>00000000   70 72 6f 6a                                       proj<br>00000000   67 64 61 6c                                       gdal<br><br></div><div style="font-family:courier new,monospace" class="gmail_default">No more pesky 0x1b char strings now :)<br><br></div><div style="font-family:courier new,monospace" class="gmail_default">Thanks again !!<br><br></div>--<span class="gmail_default" style="font-family:courier new,monospace"> kjh<br><br></span></div><div class="gmail_extra"><span class="gmail_default" style="font-family:courier new,monospace">This is the /home/local/bin/hd script from the test script:<br></span></div><div class="gmail_extra"><span class="gmail_default" style="font-family:courier new,monospace"><br>[cut </span><span class="gmail_default" style="font-family:courier new,monospace"> here]-------------------------------------------------------<br></span><font face="monospace,monospace">#!/bin/sh<br><br>PrgNam=`basename $0`<br>DirNam=`dirname $0`<br>Flags=""<br>Head=1<br><br>if [ "$1" = "-v" ] <br>then<br>   Flags="-v" <br>   shift<br>fi<br>if [ "$1" = "-h" ] <br>then<br>   Head="0" <br>   shift<br>fi<br><br>if [ "$Head" != "0" ]<br>then<br>   echo "# Offset   00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F   Text"<br>   echo "# ======   == == == == == == == == == == == == == == == ==   ================"<br>fi<br><br>if [ $# -gt 0 ]<br>then<br>   hexdump $Flags -f ${DirNam}/${PrgNam}.fmt "$@"  2>/dev/null<br>else<br>   hexdump $Flags -f ${DirNam}/${PrgNam}.fmt 2>/dev/null<br>fi 2>/dev/null<br></font><span class="gmail_default" style="font-family:courier new,monospace"><span class="gmail_default" style="font-family:courier new,monospace">[cut </span><span class="gmail_default" style="font-family:courier new,monospace">there]-------------------------------------------------------<br></span></span></div></div></div></div></div>