summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 24-bit direct color support (patch by Fengguang Wu)sf-exg2016-06-211-0/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support directly setting RGB fg/bg colors via ISO-8613-3 24-bit ANSI color escapes: ESC[38;2;<r>;<g>;<b>m Select RGB foreground color ESC[48;2;<r>;<g>;<b>m Select RGB background color The killer applications for me are vim in tmux. It'll not only modernize their look and feeling, but also bring more eye friendly color schemes. Very helpful for long time programmers. To avoid memory overheads and keep the patch non-intrusive, it takes the approach to adapt the nearest color in an hidden 6x6x4 (88-color mode) or 7x7x5 (256-color mode) color cube to the new 24-bit RGB color. The pros/cons are: +) least memory footprint (close to 0) comparing to konsole, gnome-terminal etc. real 24-bit arrays +) exact colors and excellent user feelings comparing to xterm, mlterm, etc. approximating to 256 palette +) usable in both the existing 88/256-color modes Most vim GUI color schemes show up the same as gvim in rxvt-unicode's 88-color mode, not to mention the 256-color mode. Typical applications only use one or two dozens of colors at the same time. -) may not be able to show 2+ close 24-bit colors RGB colors close to each other will likely fall into the same slot in the 6x6x4 or 7x7x5 color cube. If necessary, it could be improved effectively by implementing some collision avoidance logic, trying to find empty/eldest slot in the +1/-1 r/g/b indices (ie. 3-8 neighbors). The CPU overheads of map_rgb24_color() look ignorable: I feel no perceptible slow down when doing vim operations in 24-bit color mode. A micro benchmark running a test script from [1]: % time (for i in {1..100}; do 24-bit-color.sh; done) vanilla rxvt-unicode ==================== 2.42s user 1.88s system 31% cpu 13.555 total 2.59s user 1.74s system 31% cpu 13.615 total 2.46s user 1.85s system 31% cpu 13.631 total THIS PATCH (adapt hidden color cube to 24-bit) ============================================== 2.33s user 1.97s system 31% cpu 13.598 total 2.46s user 1.89s system 31% cpu 13.613 total 2.51s user 1.82s system 31% cpu 13.556 total https://github.com/spudowiar/rxvt-unicode (real 24-bit array) ============================================================= 2.61s user 1.75s system 31% cpu 13.721 total 2.48s user 1.82s system 31% cpu 13.566 total 2.60s user 1.76s system 31% cpu 13.631 total USE_256_COLORS is defined in all the above rxvt-unicode builds. References: [1] True Colour (16 million colours) support in various terminal applications and terminals https://gist.github.com/XVilka/8346728 [2] https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
* 9.22-mayberoot2016-05-141-0/+3
|
* Update copyright years.sf-exg2015-10-131-0/+301
|
* Fix a crash when parsing an invalid color sequence (reported by Kuang-che Wu).sf-exg2015-09-121-0/+1279
|
* *** empty log message ***root2015-04-116-0/+8517
|
* Add support in matcher to cycle through the matches with a key combination ↵sf-exg2015-03-171-0/+506
| | | | bound to 'matcher:select'.
* Add perl method to lookup the action bound to a key combination.sf-exg2015-03-171-0/+87
|
* ughroot2014-12-141-0/+92
|
* Make new/delete compatible with C++11 and change new to use rxvt_malloc.sf-exg2014-11-122-0/+431
|
* Replace auto_ptr with estl::scoped_array.sf-exg2014-11-101-0/+128
|
* *** empty log message ***root2014-10-301-0/+148
|
* Destroy overlay timer on terminal destruction in ↵sf-exg2014-10-302-0/+248
| | | | selection-{autotransform,popup}.
* Restore keysym-list extension.sf-exg2014-10-132-0/+99
|
* Add -k option to urxvtc for killing the daemon process.sf-exg2014-10-062-0/+476
|
* Add -mc option and multiClickTime resource, patch by Joe Peterson.sf-exg2014-08-162-0/+135
|
* Restore on_user_command hooks for backward compatibility.sf-exg2014-06-092-0/+332
|
* Fix height and position of the stippled area in next scrollbar, patch by totto.sf-exg2014-05-302-0/+527
|
* Add eval extension.sf-exg2014-05-231-0/+119
|
* GPLv3root2014-05-2210-0/+2291
|
* X_RESOURCE => RESOURCEroot2014-05-171-0/+132
|
* Fix typos.sf-exg2014-04-131-0/+27
|
* Revert last change.sf-exg2013-12-311-0/+11
| | | | | ptytty::create now uses the helper regardless of the pid of the running process.
* *** empty log message ***root2012-09-211-0/+30
|
* *** empty log message ***root2012-09-048-0/+519
|
* add emman.h/c and use it for scrollbackroot2012-06-281-0/+21
|
* *** empty log message ***root2012-06-141-0/+57
|
* *** empty log message ***root2012-06-121-0/+82
|
* Fix typos.sf-exg2012-06-111-0/+139
|
* Use the correct macro to detect linux.sf-exg2011-12-211-0/+92
|
* *** empty log message ***root2011-07-291-0/+235
|
* Fix urxvtc build.sf-exg2011-05-301-0/+1
|
* Fix compilation on systems that do not provide a definition forsf-exg2011-05-011-0/+27
| | | | PATH_MAX, such as GNU/Hurd.
* *** empty log message ***root2011-01-101-0/+22
|
* minor warn cleanuproot2011-01-071-0/+128
|
* Cleanup cvsignore files.sf-exg2010-07-161-0/+6
|
* compose tables to 5.2.0root2009-12-301-0/+1156
|
* minor overlay refactoring, syntax changesroot2008-11-051-0/+92
|
* *** empty log message ***root2007-11-241-0/+3
|
* Remove trailing whitespace.ayin2007-10-311-0/+350
|
* *** empty log message ***root2006-12-141-0/+36
|
* *** empty log message ***root2006-01-231-0/+63
|
* *** empty log message ***root2005-12-261-0/+38
|
* *** empty log message ***root2004-12-101-0/+2671
|
* *** empty log message ***root2004-09-0510-0/+15605
|
* *** empty log message ***root2004-08-0420-0/+9997
|
* *** empty log message ***pcg2004-04-041-0/+26
|
* *** empty log message ***pcg2004-03-161-0/+198