This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Problem with displaying ASCII table in mintty
- From: "Mark J. Reed" <markjreed at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 26 Jun 2009 14:01:17 -0400
- Subject: Re: Problem with displaying ASCII table in mintty
- References: <4A44FC98.2050500@aim.com>
On Fri, Jun 26, 2009 at 12:51 PM, Mark Harig wrote:
> Do you have any recommendations about what the utility program /usr/bin/ascii
> (in the package 'cygutils') should do?
Since the Cygwin version of ascii doesn't appear to have a man page,
I'm not sure what it "should" do. What it appears to do is simply
printout out all possible 8-bit characters so you can see what they
are. Which will fail in any multibyte locale.
You can write your own imitation ascii as a Perl one-liner:
perl -e 'for ($i=0;$i<256;$i+=4) { for ($i..$i+3) { printf "%03d
0x%02x %c\t", ($_)x3 } print "\n"; }'
which can be adjusted for different locale settings:
perl -Mencoding=utf8 -e '...'
adding the control-sequence support (^x) is left as an exercise for
the reader. :)
--
Mark J. Reed <markjreed@gmail.com>
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple