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

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

    <bug>
          <bug_id>23927</bug_id>
          
          <creation_ts>2010-08-23 00:05:41 +0400</creation_ts>
          <short_desc>Add rxvt-unicode-256color terminal description</short_desc>
          <delta_ts>2010-08-27 18:57:19 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>terminfo</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>23928</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Sir Raorn">raorn</reporter>
          <assigned_to name="Fr. Br. George">george</assigned_to>
          <cc>evg</cc>
    
    <cc>george</cc>
    
    <cc>ldv</cc>
    
    <cc>legion</cc>
    
    <cc>vsu</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>111377</commentid>
    <comment_count>0</comment_count>
    <who name="Sir Raorn">raorn</who>
    <bug_when>2010-08-23 00:05:41 +0400</bug_when>
    <thetext>У нас rxvt-unicode собран с поддержкой 256 цветов, а в terminfo значится 88.  Обратно оно не совместимо, и с программы, умеющие 88/256-color xterm приобретают довольно забавную расцветку.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111379</commentid>
    <comment_count>1</comment_count>
    <who name="Sergey Vlasov">vsu</who>
    <bug_when>2010-08-23 10:24:29 +0400</bug_when>
    <thetext>Поддержка 256 цветов была включена в rxvt-unicode-9.07-alt1 по запросу https://bugzilla.altlinux.org/show_bug.cgi?id=22664 (и без упоминания в changelog пакета); во всех предыдущих сборках предоставлялись стандартные для rxvt-unicode 88 цветов.

Поиск по другим дистрибутивам показал, что пакеты rxvt-unicode с поддержкой 256 цветов есть, например, в Arch Linux:

http://repos.archlinux.org/wsvn/community/rxvt-unicode-256color/trunk/

(там это отдельный пакет, есть и http://repos.archlinux.org/wsvn/packages/rxvt-unicode/trunk/ - без патча для поддержки 256 цветов).

Также вариант сборки с флагом xterm-color, включающий поддержку 256 цветов, поддерживается в Gentoo:

http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/x11-terms/rxvt-unicode/

При этом в пакете из Arch Linux, помимо применения патча, также меняется тип терминала на rxvt-256color, что устраняет одну проблему (несоответствие числа цветов в terminfo фактическому), но добавляет другие несоответствия в terminfo (infocmp -L -d rxvt-unicode rxvt-256color выдаёт множество различий, в том числе даже key_backspace: &apos;\177&apos;, &apos;^H&apos;).  Т.е., так делать нельзя.

В варианте из Gentoo делается дополнительное описание терминала с именем rxvt-unicode256, отличающееся от rxvt-unicode только значениями colors и pairs:

	if use xterm-color; then
		epatch doc/urxvt-8.2-256color.patch
		sed -e \
			&apos;s/^\(rxvt-unicode\)/\1256/;s/colors#88/colors#256/;s/pairs#256/pairs#32767/&apos; \
			doc/etc/rxvt-unicode.terminfo &gt; doc/etc/rxvt-unicode256.terminfo
		sed -i -e \
			&quot;s~^\(\s\+@TIC@.*\)~\1\n\t@TIC@ -o &quot;${D}&quot;/${tdir} \$(srcdir)/etc/rxvt-unicode256.terminfo~&quot; \
			doc/Makefile.in
	fi

Однако фактическое значение TERM, используемое urxvt, по каким-то причинам не меняется (--with-term=rxvt-unicode256 при сборке не передаётся).

Ну и по аналогии с другими описаниями терминалов тип терминала для rxvt-unicode с поддержкой 256 цветов должен был бы называться rxvt-unicode-256color.

Кстати, описание rxvt-unicode в пакете terminfo устарело - оно соответствует версии rxvt-unicode-7.9, с тех пор в пакете rxvt-unicode в нём были сделаны некоторые изменения.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111382</commentid>
    <comment_count>2</comment_count>
    <who name="Sir Raorn">raorn</who>
    <bug_when>2010-08-23 10:39:46 +0400</bug_when>
    <thetext>(In reply to comment #1)
&gt; Ну и по аналогии с другими описаниями терминалов тип терминала для rxvt-unicode
&gt; с поддержкой 256 цветов должен был бы называться rxvt-unicode-256color.

С какими?

$ ls /lib/terminfo/**/*256*      
zsh: no matches found: /lib/terminfo/**/*256*</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111385</commentid>
    <comment_count>3</comment_count>
    <who name="Sergey Vlasov">vsu</who>
    <bug_when>2010-08-23 11:17:05 +0400</bug_when>
    <thetext>(В ответ на комментарий №2)
&gt; С какими?

$ ls /usr/share/terminfo/**/*256*
/usr/share/terminfo/d/darwin-256x96
/usr/share/terminfo/d/darwin-256x96-m
/usr/share/terminfo/E/Eterm-256color
/usr/share/terminfo/g/gnome-256color
/usr/share/terminfo/k/konsole-256color
/usr/share/terminfo/p/putty-256color
/usr/share/terminfo/r/rxvt-256color
/usr/share/terminfo/s/screen-256color
/usr/share/terminfo/s/screen-256color-bce
/usr/share/terminfo/s/screen-256color-bce-s
/usr/share/terminfo/s/screen-256color-s
/usr/share/terminfo/x/xnuppc-256x96
/usr/share/terminfo/x/xnuppc+256x96
/usr/share/terminfo/x/xnuppc-256x96-m
/usr/share/terminfo/x/xterm-256color
/usr/share/terminfo/x/xterm+256color

(все эти описания вынесены в пакет terminfo-extra).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111414</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2010-08-23 21:02:16 +0400</bug_when>
    <thetext>Собрал снапшот. Апстрим уже сам исправил TERM для 256 цветов:

$ echo $TERM
rxvt-unicode-256color

Теперь осталось обновить terminfo, чтобы можно было выложить эту сборку.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111434</commentid>
    <comment_count>5</comment_count>
    <who name="Sir Raorn">raorn</who>
    <bug_when>2010-08-24 13:55:06 +0400</bug_when>
    <thetext>2010-Aug-24 13:37:47 :: girar-check-perms: access to ncurses DENIED for raorn: does not
belong to approved builders list: ldv inger
2010-Aug-24 13:37:47 :: acl check FAILED
2010-Aug-24 13:37:47 :: task #28023 for sisyphus FAILED</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111435</commentid>
    <comment_count>6</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2010-08-24 14:08:06 +0400</bug_when>
    <thetext>ncurses-5.7-alt3.1 -&gt; sisyphus:

* Tue Aug 24 2010 Alexey I. Froloff &lt;raorn@altlinux&gt; 5.7-alt3.1
- NMU:
  + Updated rxvt-unicode definition (closes: #23927)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>