<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>31098</bug_id>
          
          <creation_ts>2015-06-24 20:38:33 +0300</creation_ts>
          <short_desc>ANSI rendering buglet</short_desc>
          <delta_ts>2016-03-09 11:57:53 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>xterm</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Shigorin">mike</reporter>
          <assigned_to name="Fr. Br. George">george</assigned_to>
          <cc>george</cc>
    
    <cc>glebfm</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>151911</commentid>
    <comment_count>0</comment_count>
      <attachid>6309</attachid>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2015-06-24 20:38:33 +0300</bug_when>
    <thetext>Created attachment 6309
the output with ANSI sequences

$ fgrep test *
apt.conf.p7.i586+test:Dir::Etc::sourcelist &quot;/home/mike/apt/sources.list.p7.i586test&quot;;
$ tail -1 apt.conf.p7.i586+test
Dir::Etc::sourcelist &quot;/home/mike/apt/sources.list.p7.i586+test&quot;;
$ set | grep -a ^GREP
GREP_COLOR=&apos;1;32&apos;
GREP_OPTIONS=&apos;--color=auto&apos;
$ _

The &quot;+&quot; between &quot;i586&quot; and &quot;test&quot; disappears exactly when the line is wrapped around 80th column where the first &quot;t&quot; of &quot;test&quot; sits (with &quot;est&quot; on the next line):

apt.conf.p7.i586+test:Dir::Etc::sourcelist &quot;/home/mike/apt/sources.list.p7.i586t
est&quot;;

If this very terminal window is resized by e.g. one column wider/narrower then the bug is not observed; cat(1)ting the attached example might help see this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>155567</commentid>
    <comment_count>1</comment_count>
    <who name="Fr. Br. George">george</who>
    <bug_when>2016-03-09 11:57:53 +0300</bug_when>
    <thetext>В самом деле. Получается, что при выводе ESC-последовательности в последней позиции autowrap отключается, или какой-то off by one. Жалко, ошибка не приоритетная, интересно было бы поразбираться.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>6309</attachid>
            <date>2015-06-24 20:38:33 +0300</date>
            <delta_ts>2015-06-24 20:38:33 +0300</delta_ts>
            <desc>the output with ANSI sequences</desc>
            <filename>fgrep.out</filename>
            <type>text/plain</type>
            <size>131</size>
            <attacher name="Michael Shigorin">mike</attacher>
            
              <data encoding="base64">G1szNW0bW0thcHQuY29uZi5wNy5pNTg2K3Rlc3QbW20bW0sbWzM2bRtbSzobW20bW0tEaXI6OkV0
Yzo6c291cmNlbGlzdCAiL2hvbWUvbWlrZS9hcHQvc291cmNlcy5saXN0LnA3Lmk1ODYrG1sxOzMy
bRtbS3Rlc3QbW20bW0siOwo=
</data>

          </attachment>
      

    </bug>

</bugzilla>