[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: viewing ansi graphics



In article <[🔎] Pine.LNX.3.96.980928153313.21214C-100000@shell.nacs.net>,
Michael Stutz <stutz@dsl.org> wrote:
>On Mon, 28 Sep 1998, Matt Garman wrote:
>
>> 
>> Does anyone know of a way (or a utility) to view ansi graphics under
>> Linux?
>
>"cat" will do this after changing the console font to a font that will
>properly display all of the extended ASCII characters. "alt-8x16" is one
>such font, but there may be many more (check /usr/share/consolefonts/ for a
>lit).

Not needed; you can switch the console to DOS/ANSI mode with
a simple escape sequence:

== dcat: DOS cat ==
#! /bin/sh
echo -n 'ESC[11m'
cat "$@"
echo -n 'ESC[10m'

Enter the ESC as Control-V Escape

Mike.
-- 
  "Did I ever tell you about the illusion of free will?"
    -- Sheriff Lucas Buck, ultimate BOFH.


Reply to: