Showing posts with label copy. Show all posts
Showing posts with label copy. Show all posts

Tuesday, 3 July 2007

My mrxvt modification

From the original mrxvt, I've kept and am currently working on what I believe to be important. Noticeably, support for scalable fonts (in particular Microsoft True Type fonts) which is provided by the Xft library and full support for UTF-8. Drawing UTF-8 encoded strings is not hard as it simply involves calling XftDrawStringUtf8. What is harder is to make sure that internally, strings are processed as potentially multi-byte per character strings at all times.

What is broken for now is

1) selection in mrxvt of utf-8 data, the glyphs just disappear once selected. Well actually only the first one seems to be copied and can only be pasted once in mrxvt
2) backspace doesn't work properly

For example in python I do:
print u"\u0540\u0539\u0538"
which prints out 3 characters:
ՀԹԸ
but when I select those 3 chars all that remains is:
Հ
and when I paste it in the terminal then it is not possible to delete the first character

I'll complete this post as I go along...