[Konsole-devel] [Bug 169013] xterm256 color palette not compatible with standard xterm
pan shi zhu
pan.shizhu at gmail.com
Wed Aug 13 03:21:39 UTC 2008
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=169013
------- Additional Comments From pan.shizhu gmail com 2008-08-13 05:21 -------
my patch for KDE3.5.6:
diff -c TECommon.h.orig TECommon.h
*** TECommon.h.orig 2008-08-13 11:18:32.000000000 +0800
--- TECommon.h 2008-08-13 11:18:14.000000000 +0800
***************
*** 153,161 ****
if (u < 8) return base[u+2+BASE_COLORS].color; u -= 8;
// 16..231: 6x6x6 rgb color cube
! if (u < 216) return QColor(255*((u/36)%6)/5,
! 255*((u/ 6)%6)/5,
! 255*((u/ 1)%6)/5); u -= 216;
// 232..255: gray, leaving out black and white
int gray = u*10+8; return QColor(gray,gray,gray);
--- 153,161 ----
if (u < 8) return base[u+2+BASE_COLORS].color; u -= 8;
// 16..231: 6x6x6 rgb color cube
! if (u < 216) return QColor(((u/36)%6) ? (40*((u/36)%6)+55) : 0,
! ((u/ 6)%6) ? (40*((u/ 6)%6)+55) : 0,
! ((u/ 1)%6) ? (40*((u/ 1)%6)+55) : 0); u -= 216;
// 232..255: gray, leaving out black and white
int gray = u*10+8; return QColor(gray,gray,gray);
More information about the konsole-devel
mailing list