Re: CP437 Output
Phil!Gregory <[email protected]>
| Newsgroups | gmane.comp.gnu.screen |
|---|---|
| Message-ID | <[email protected]> |
* Dan Nelson <[email protected]> [2003-12-28 12:55 -0600]: > screen doesn't use iconv; it looks like everything is manually handled > in encodings.c I looked in encodings.c and it looked all very hairy. I would have to actually delve into the code to understand what it's doing (I was hoping for a nice table I could modify). OTOH, I was skimming through the man page and found the XC terminfo directive, so I hacked up something through that. For the sake of the archives, here's what I came up with. It corrects the display of characters that are in both ISO-8859-1 and CP437. termcapinfo ibm3151 XC=B%,\307\200,\374\201,\351\202,\342\203,\344\204,\340\205,\345\206,\347\207,\352\210,\353\211,\350\212,\357\213,\356\214,\354\215,\304\216,\305\217,\311\220,\346\221,\306\222,\364\223,\366\224,\362\225,\373\226,\371\227,\377\230,\326\231,\334\232,\242\233,\243\234,\245\235,\341\240,\355\241,\363\242,\372\243,\361\244,\321\245,\252\246,\272\247,\277\250,\254\252,\275\253,\274\254,\241\255,\253\256,\273\257,\337\341,\265\346,\261\361,\367\366,\260\370,\267\372,\262\375,\240\377,\244?,\246?,\247?,\250?,\251?,\255?,\256?,\257?,\263?,\264?,\266?,\270?,\271?,\276?,\300?,\301?,\302?,\303?,\310?,\312?,\313?,\314?,\315?,\316?,\317?,\320?,\322?,\323?,\324?,\325?,\327?,\330?,\331?,\332?,\333?,\335?,\336?,\343?,\360?,\365?,\370?,\375?,\376? There are some characters in CP437 that are present in Unicode, but not in ISO-8859-1. I haven't figured out a way to cause those to appear on the terminal; I suspect that doing so would require actually adding CP437 to encodings.c. -- ...computer contrarian of the first order... / http://aperiodic.net/phil/ PGP: 026A27F2 print: D200 5BDB FC4B B24A 9248 9F7A 4322 2D22 026A 27F2 --- -- If an advisor says to you, "My liege, he is but one man. What can one man possibly do?", reply, "This," and kill the advisor. -- Evil Overlord's Handbook, entry 46 ---- --- -- Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/gnu-screen/ To unsubscribe from this group, send an email to: [email protected] Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/