Original Usenet thread from alt.ascii-art, started 29 Apr 1996.
Question: Hot to view ANSI
alt.ascii-art
· 9 messages · 29 Apr 1996 - 15 May 1996
Hey, folks
I've got some cool .ans files, but I don't know how to view
them. Can somebody help me out?
____________
======\ //================Micah AKA Gambit==============
=======\ //=============von...@freenet.msp.mn.us===========
========\ //======http://www.wavefront.com/~vono/planetv====
=========\ //=================================================
\/
Micah D Vono wrote: > I've got some cool .ans files, but I don't know how to view > them. Can somebody help me out? Hi ansi maniacs! To view your files you need a PC with DOS system. You install ANSI.SYS in your config.sys and... Nothing easier - to see your files you type "TYPE filename". You can expect any colored ascii graphics or animation. I don't know if there is ansi for other systems. If you don't have any PC you can try to write your own "ansi" for your machine. The problem is that I don't have the full ansi syntax. You can find something in help for DOS (type "help ansi.sys"). The syntax is very simple. Every ansi command starts by "Esc[" - similar to printer (Epson) commands. I can give you some examples: (Esc means character #27) Esc[x;yH means: move the cursor to x,y Esc[xA means: move the cursor x characters up Esc[xB down Esc[2J means: clear screen Esc[x1;...;xnm means: change the screen parameters for x1,x2,...,xn where xi are the colors of the background, foreground, blinking, etc. Good luck! Enjoy your ansi. p.s. If your files are realy cool, send me some, please. -- ============================================================================= == Lukasz Kusior ___ / lku...@eurinsa.insa-lyon.fr == == INSA de Lyon |__/| ----------------------------------------- == == res. B, ch. 131 (o o) If the railway station is the place where == == tel:(+33)72.43.72.45 (_) trains stop, what is the workstation? == =======================oOO===OOo=============================================
In article <4m1oqb$ae...@miso.wwa.com>, von...@freenet.msp.mn.us says... > > I've got some cool .ans files, but I don't know how to view >them. Can somebody help me out? If you are using an MS-DOS system, add the following line to your CONFIG.SYS: C:\DOS\ANSI.SYS Then... From the dos prompt type: TYPE filename.ext filename.ext = The filename and extension of the file that you want to view. Most ANSI files are saved as "filename.ANS" If you're not running MS-DOS, I can't help you other than to tell you to switch to MS-DOS if possible on your machine. :) John
it's device=c:\dos\ansi.sys
that gets placed in thre config.sys file.
__ __ __ ___ __ | lyl...@madvax.mo.ti.com
/ / __ __/ /__ / |/ /_ _________ / / __ __ | AGS Midland College
/ /__/ // / / -_) / /|_/ / // / __/ _ \/ _ \/ // / | Phi Theta Kappa
/____/\_, /_/\__/ /_/ /_/\_,_/_/ / .__/_//_/\_, / | Nuclear Trained Navy
/___/ /_/ /___/ | Tread where others fear!
If you're on a unix system, "xterm" usually supports enough of ANSI to suffice. (A VT100 terminal or emulation for it is usually about right too.) If you use linux, the linux console supports ansi colors, and there's a color-xterm that can handle them as well. (And the newest version of "screen" supports ANSI colors... so you can use the color floyd-prism that was posted here last week to brighten your day :-)
> > >it's device=c:\dos\ansi.sys > >that gets placed in thre config.sys file. > Doh! You're right. Damn, it's been SOOOOO long since I've had to do that that I forgot exactly what is to be done. Thanks for clearing that up. John
Good one mate.. what if they have their computer set up differently and
the ansi.sys device driver is stored in a different directory.. youve
just screwed them up...
You want to type in
device=<path_where_ansi.sys_is_stored>\ansi.sys
later all....
On 6 May 1996, John Evans wrote:
>
> >
> >
> >it's device=c:\dos\ansi.sys
> >
> >that gets placed in thre config.sys file.
> >
>
> Doh! You're right. Damn, it's been SOOOOO long since I've had to do
> that that I forgot exactly what is to be done. Thanks for clearing that up.
>
> John
>
>
>
>
-----------------------------------------------
-----------------------------------------------
The circle represents my life and how it has been broken and made
incomplete. The question mark represents all the problems that I have
and the fact that they are what has fucked up my life. The arrow points
to my position within the circle of my life and the confusion that is
the other shapes in teh circle have pushed it off centre, meaning I am no
longer the most important part of my life. The sad thing is that I don't
know what has replaced me in the centre of things. Maybe things will
straighten up soon.
Maybe?
-----------------------------------------------
Harlequin ( n16...@student.fit.qut.edu.au )
-----------------------------------------------
In article <4m1oqb$ae...@miso.wwa.com>
von...@freenet.msp.mn.us "Micah D Vono" writes:
> I've got some cool .ans files, but I don't know how to view
>them. Can somebody help me out?
>
You need a line in your config.sys something like:-
DEVICE=C:\DOS\ANSI.SYS
To view an ansi file... At the DOS prompt type:-
type <filename>
Where file name is the name of the ansi file you want to view.
|===============================================|-
| __________ _____ _________ ____________ -|========================|-
||_______ \ / \/ | \/ ________ _ _ ___ _ _ ___ |
| | |\ \/ | \ : / _)__ [_ [_] [\] | /-\[_ | |
| | | \ \ _ \ / \ UNI...@doc.ntu.ac.uk|
| | _|_/ / : \ / \ VAX...@ntu.ac.uk |
| |___\_____/____|_____/\___/\____________/ KA9...@morr.demon.co.uk|
Here are the colour and the cursor movement codes. If you need the key-redefinition ones as well, just mail me... GrtnX, Erwin Wessels __ __ __ __ __ __ __ __ __ __ __ __ __ | |__| |__| |__| |__| |__| |__| |__| |__| |__| |__| |__| |__| | |__ __| | Well. That's it. I've just made a fancy border, and now i'm out of | __| inspiration. Ideas go to [31;1mw...@cal012042.student.utwente.nl[0m |__ | __ __ __ __ __ __ __ __ __ __ __ __ | |__| |__| |__| |__| |__| |__| |__| |__| |__| |__| |__| |__| |__| -- Parameters that can be uses in ANSI escape-sequences. ===================================================== Pn Numeric parameter. Specifies a decimal number. Ps Selective parameter. Specifies a decimal number, with which you select a function. You can give more function by separating the parameters with a semi-colon. PL Line-parameter. Specifies a decimal number corresponding with one of the lines on the screen or another device. Pc Column-parameter. Is used for a decimal number corresponding with one of the columns on the screen or another device. ANSI escape-sequences for cursormovement and screen display =========================================================== In the next section of ANSI escape sequences the abbreviaton ESC is used for the ASCII escape-character 27 (1Bh) that is used at the beginning of every escape-sequence. ESC[PL;PcH Cursorposition. Moves the cursor to the indicated position (coordinates). If no position is specified, the cursor is moved to the upper-left corner of the screen (row 0, column 0). This sequensec has the same effect as the next one. ESC[PL;Pcf Cursorposition. This sequence has the same effect as the previous one. ESC[PnA Cursor up. Moves the cursor the indicated number of lines up in the same column. If the cursor is already situated on the first line of the screen, this sequence is ignored. ESC[PnB Cursor down. Moves the cursor the indicated number of lines down in the same column. If the cursor is already situated on the last line of the screen, this sequence is ignored. ESC[PnC Cursor forwards. Moves the cursor the indicated number of columns forwards on the same line. If the cursor is already situated on the right-most column, this sequence is ignored. ESC[PnD Cursor backwards. Moves the cursor the indicated number of columns backwards on the same line. If the cursor is already situated on the left-most column, this sequence is ignored. ESC[s Save cursorposition. Saves the current cursorposition. You can move the cursor to the saved cursorposition with the sequence 'restore cursorposition'. ESC[u Restore cursorposition. Moves the cursor back to the position saved by the sequence 'save cursorposition'. ESC[2J Delete reproduction. Clears the screen and moves the cursor to the upper-left corner (line 0, column 0). ESC[K Clear line. Removes all characters from the cursor until the end of the line (the character under the cursor included). ESC[Ps;...;Psm Select graphical mode. Calls graphical functions, which are given the following values. These functions remain active untill this sequence is re-issued. Textattributes -------------- 0 All out. 1 Bold 4 Underline (monochrome screens only) 5 Blink 7 Negative 8 Hidden Foreground colours ------------------ 30 Black 31 Red 32 Green 33 Yellow 34 Blue 35 Magenta 36 Cyan 37 White Background colours ------------------ 40 Black 41 Red 42 Green 43 Yellow 44 Blue 45 Magenta 46 Cyan 47 White The parameters 30 / 47 correspond to the ISO-norm 6429. -- Well, that's it!
About this thread.
These messages were posted publicly to the newsgroup
alt.ascii-art
in 1996 and are mirrored here unchanged as part of the Historic Archives – only email addresses are masked.
The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can.
Are you one of the authors? Contact us to get your posts attributed, connected to your artist profile, or removed.