Original Usenet thread from alt.ascii-art, started 27 Nov 2004.
_ _ _ _ _ _ | | | |___ ___ _ __ ___| |_ / \ _ __ ___| |__ (_)_ _____ | | | / __|/ _ \ '_ \ / _ \ __| / _ \ | '__/ __| '_ \| \ \ / / _ \ | |_| \__ \ __/ | | | __/ |_ / ___ \| | | (__| | | | |\ V / __/ \___/|___/\___|_| |_|\___|\__| /_/ \_\_| \___|_| |_|_| \_/ \___|
Writing ANSI ESC code 27 to text file?
alt.ascii-art
· 3 messages · 27 Nov 2004 - 27 Nov 2004
I want to store my MUD welcome page in a text file, but when I try to embed the ANSI color codes into the text file, NOTEPAD keeps saying that now it's a Unicode file and won't save it as ANSI without stripping the very character I need. I am using the keys (Alt-keypad-27) to insert the ESC character manually in notepad, but notepad ends up saving that character as "8592" which is the Unicode left arrow character. Theoretically, I am not in Unicode realm by saving this character in the file, but notepad seems to think so. Anyone know how to correctly write this required character to the text file, without code to do it? cheers! Adam
AdamM wrote: > I want to store my MUD welcome page in a text file, but when I try to embed > the ANSI color codes into the text file, NOTEPAD keeps saying that now it's > a Unicode file and won't save it as ANSI without stripping the very > character I need. > > I am using the keys (Alt-keypad-27) to insert the ESC character manually in > notepad, but notepad ends up saving that character as "8592" which is the > Unicode left arrow character. > > Theoretically, I am not in Unicode realm by saving this character in the > file, but notepad seems to think so. Anyone know how to correctly write this > required character to the text file, without code to do it? > > cheers! > > Adam > > Notepad is a very bad program to enter escape sequences into, so I suggest using DOS edit instead (it's still in Windows XP), open up a command prompt window and run edit, or create a new shortcut on the desktop using edit.com as the location. (I also recomend putting edit in the send-to menu as well) As for getting 027-escape in edit, press ctrl+p then press the escape key. You can also get ASCII 0-31 by pressing similar ctrl+p and alt+keypad sequences (or ctrl 2(0),A-Z(1-26),\(28),](29),6(30),-(31))
Thanks for the tips! I solved the problem, so thought folks might be interested in how... I found a program called PabloDraw: http://sourceforge.net/projects/pablodraw/ It is a sweet program that does block editing, coloring, etc. If you save the output as an ANS file, it solved my problem. Plus, it seems to be a much easier way to do what I wanted anyways. cheers! Adam http://tigermud.com "Rusty" <rus...@netscape.net> wrote in message news:tRQpd.467408$D%.58328@attbi_s51... > AdamM wrote: >> I want to store my MUD welcome page in a text file, but when I try to >> embed the ANSI color codes into the text file, NOTEPAD keeps saying that >> now it's a Unicode file and won't save it as ANSI without stripping the >> very character I need. >> >> I am using the keys (Alt-keypad-27) to insert the ESC character manually >> in notepad, but notepad ends up saving that character as "8592" which is >> the Unicode left arrow character. >> >> Theoretically, I am not in Unicode realm by saving this character in the >> file, but notepad seems to think so. Anyone know how to correctly write >> this required character to the text file, without code to do it? >> >> cheers! >> >> Adam >> >> > Notepad is a very bad program to enter escape sequences into, so I suggest > using DOS edit instead (it's still in Windows XP), open up a command > prompt window and run edit, or create a new shortcut on the desktop using > edit.com as the location. (I also recomend putting edit in the send-to > menu as well) > > As for getting 027-escape in edit, press ctrl+p then press the escape key. > You can also get ASCII 0-31 by pressing similar ctrl+p and alt+keypad > sequences (or ctrl 2(0),A-Z(1-26),\(28),](29),6(30),-(31))
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this thread.
These messages were posted publicly to the newsgroup
alt.ascii-art
in 2004 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.
Report this message
Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.