From mboxrd@z Thu Jan 1 00:00:00 1970 From: ef_dva@yahoo.com (Dusan) Date: Tue, 18 Aug 2009 09:42:48 +0200 Subject: [sup-talk] ncurses hack In-Reply-To: <1250563136-sup-432@masanjin.net> References: <1250538875-sup-2195@javelin> <1250563136-sup-432@masanjin.net> Message-ID: <1250580593-sup-1346@archpc> Excerpts from William Morgan's message of Tue Aug 18 04:43:18 +0200 2009: > Reformatted excerpts from Edward Z. Yang's message of 2009-08-17: > > Today, I decided to throw in the towel and patch my copy of ncurses to > > have the appropriate fix for international characters + tabs. Does > > anyone know of a list of instructions for carrying this out? > > Try http://sup.rubyforge.org/wiki/wiki.pl?UTF8. If you're running Sup > git, I've made a nice branch for this: > > $ git branch --track ncursesw origin/ncursesw > $ git checkout ncursesw > $ cd ncurses-0.9.1/ > $ ./run-this-for-sup.sh > > Which will generate an ncurses.so file in lib/. You can then switch back > to master or next and it should pick it up. > > This should fix many wide-character issues but it won't fix all of them, > because there's still no way of determining the display width of a > unicode character (e.g. Chinese characters take two columns to display). > So the display still ends up funny. > > Ruby 1.9 has better encoding support but I don't know if it fixes this. I am new sup user and love it very much. Not being able to fix search/save and other edits is huge show-stopper. I do what I read somewhere: -start search, get garbage results -kill that buffer with 'x' -start another search but instead of typing search term again first repeat: press up, delete search garbage, press up, delete search garbage, repeat until there is nothing to delete -type another search term and search now works 100% This works for searches but edits like save still fail (or save X((%^1X file so if you can find it you can rename it). Looks like fixable bug to simulate what I did for searches? Repeat in code ten times 'up arrow', '50 x delete char'? Sorry if I am wrong. Using sup and not being able to properly search or save is too wrong. If there is any config/version I should report to get this fixed just let me know. Without waiting for new ruby of course -- I do have proper results when I repeat deleting ritual. Thanks