ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/block-graphics-to-ascii
(Generate patch)

Comparing rxvt-unicode/src/perl/block-graphics-to-ascii (file contents):
Revision 1.3 by root, Tue Jan 10 04:51:14 2006 UTC vs.
Revision 1.4 by root, Sun Jun 10 17:31:53 2012 UTC

1#! perl 1#! perl
2
3=head1 NAME
4
5 block-graphics-to-ascii - map block graphics to ascii characters
6
7=head1 DESCRPTION
8
9A not very useful example of filtering all text output to the terminal
10by replacing all line-drawing characters (U+2500 .. U+259F) by a
11similar-looking ascii character.
12
13=cut
2 14
3# simple example that uses the add_lines hook to filter unicode and vt100 line/box graphics 15# simple example that uses the add_lines hook to filter unicode and vt100 line/box graphics
4 16
5# ─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋╌╍╎╏ 17# ─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋╌╍╎╏
6my $rep_unicode = "--||--||--||++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--||" 18my $rep_unicode = "--||--||--||++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--||"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines