Re: Writing ANSI ESC code 27 to text file?
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))
Original message headers
X-Google-Thread: f996b,6ee7e06738d7e023 X-Google-Attributes: gidf996b,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s51.POSTED!53ab2750!not-for-mail From: Rusty <rus...@netscape.net> User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: alt.ascii-art Subject: Re: Writing ANSI ESC code 27 to text file? References: <WY6...@comcast.com> In-Reply-To: <WY6...@comcast.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Lines: 28 Message-ID: <tRQpd.467408$D%.58328@attbi_s51> NNTP-Posting-Host: 67.166.119.132 X-Complaints-To: abu...@comcast.net X-Trace: attbi_s51 1101519321 67.166.119.132 (Sat, 27 Nov 2004 01:35:21 GMT) NNTP-Posting-Date: Sat, 27 Nov 2004 01:35:21 GMT Organization: Comcast Online Date: Sat, 27 Nov 2004 01:35:21 GMT Xref: g2news1.google.com alt.ascii-art:2106
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 message.
This message was posted publicly to the newsgroup
alt.ascii-art
in 2004 and is 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 the author? 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.