At the moment, when selecting text that includes ACS
line drawing characters, the characters in the cut
buffer come out as the letters that have the same code
as these symbols, and so they look pretty
indecipherable after pasting into another window. I've
written a patch to allow the symbols to instead be
translated into the ascii characters that most resemble
The array `char acs_ascii' contains the translations
from the letter code to the character that should be
copied into the cut buffer. The values I've used here
were written specifically for nethack screenshots, and
include some characters from iso-8859-15, so they're
probably not the best general-purpose arrangement.
This set of translations should probably be specified
by a resource string instead of being hardcoded at
compile time, but I couldn't work out how to do that.
Here's the patch (assuming Mozilla handles the file
upload better than lynx did), against 2.7.10. I've
hidden all the functionality away inside #ifdef's, so
that the option could be enabled by adding a suitable
option to the ./configure script.
Log in to post a comment.