Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [ansi]

The tag has no usage guidance.

0
votes
0answers
21 views

How can I get a WSL window with full colour support in Windows GUI Emacs?

How can I get WSL [Windows Sub-system for Linux] to run in a window on Windows GUI Emacs? The only way I can do it so far is to enter a subshell in either emacs shell or term cmd by entering the wsl ...
0
votes
0answers
20 views

(windows) Remap ANSI keyboard

I own an ANSI QWERTY keyboard that i switched to AZERTY for practictal purposes (I have always used AZERTY keyboards in my life so I am used to the key positionning). Nonetheless, on ANSI keyboards, ...
2
votes
2answers
11k views

Change the default of encoding in Notepad

I wanted to change the default of encoding in Notepad (ANSI) to UTF-8. According to following link went ahead and this work was done. But still remains a problem. If create a text file, the default ...
12
votes
4answers
17k views

How do I get excel to not mess around with the formatting of a .csv file

I have two issues with a csv file that occur when I try and edit it in Excel. I have an ISBN column that gets reformatted to scientific format every time I save the file The encoding for the file is ...
1
vote
1answer
107 views

Is it safe (no data loss) to convert ANSI to UTF-8 and then back to ANSI?

Is it safe (no data loss) to convert ANSI to UTF-8 and then back to ANSI? I have read that you can lose data going from UTF-8 to ANSI. But if the file was changed from ANSI to UTF-8 (and not changed ...
0
votes
0answers
12 views

Support for Terminal Control Sequences

Old terminals like VT-100 actually used control function or control sequences and it is still today much widely supported by terminal emulators like xterm. The Linux console also implements a large ...
0
votes
2answers
3k views

How to convert unicode font to ansi

I am trying to use bengali writing product AVRO but since it uses UNICODE by default so working with ADOBE products like photoshop, pagemaker, etc. are not working at all. When i change the mode to ...
0
votes
1answer
4k views

Is there a way to force Notepad++ Encoding to Windows-1252?

Is there a way to force Notepad++ Encoding to Windows-1252 for files that it doesn't auto-detect the encoding? It seems it defaults to UTF-8 and I want it to default to Windows-1252 instead. Thanks ...
22
votes
4answers
5k views

Escape non-printing characters in a function for a Bash prompt

In a Bash Prompt (PS1 variable), I'm calling a function to potentially add text to the prompt: export PS1="\u@\h \$(my_function) \$ " However, the function in the prompt contains ANSI color codes ...
0
votes
0answers
23 views

How to be sure that a script saved with ANSI is going to work on every client environment?

Long story short. How can I fix users environments, to make them run our scripts using ANSI encode? The problem is, we send them scripts to run on their databases using ANSI encode. But some of ...
2
votes
0answers
96 views

Tools for converting 8-bit C1 control characters to ESC sequences?

The ECMA-48 ("ANSI escape sequences") standard describe two ways of encoding the C1 set of control codes: using 2 character ESC sequences, or alternatively, using 8-bit control characters. Wikipedia ...
6
votes
2answers
49k views

Why does [ALT+224] return Ó instead of alpha?

I'm on WIN 7. I found that windows is using ANSI, not ASCII. So when I type ALT + 224 i get Ó, instead of α. To get α I have to manually copy it from the windows character map every time I want to use ...
0
votes
2answers
13k views

Convert a text file from ansi to UTF-8 in windows batch scripting

We have a text file which is in default ANSI format and that needs to be converted into UTF-8 format. Is there any way we can use the general windows DOS commands to convert the file? We can use the ...
0
votes
0answers
629 views

Using .bat to convert ANSI to UTF-8 in windows [duplicate]

So, I have o convert a .csv file from ANSI encoding to UTF-8 in windows, using a .bat file. Basically a program capable of doing this conversion without needing Notepad++ nor excel and etc. Do you ...
29
votes
4answers
23k views

Windows console with ANSI colors handling

Is there any console emulator for Windows that interprets ANSI coloring? We use rspec and a part of our team use Windows and the special string for coloring are not very useful for them ;).
24
votes
1answer
100k views

ANSI to UTF-8 in Notepad++

I have a text encoded in ANSI: When I tried to convert it into UTF-8 (using the Notepad++ menu Encoding > UTF-8), I get some weird characters: I thought that UTF-8 was a superset of ANSI and that I ...
2
votes
2answers
934 views

What's the deal with terminal colors?

There are 256 terminal color escapes available: 8 "system" colors (0 - 7) 8 "bright" system colors (8 - 15) 216, or 6*6*6 "RGB" colors (16 - 231) 24 "grayscale" colors (232 - 255) The "RGB" colors ...
15
votes
3answers
4k views

Terminal that supports the ANSI italic escape code?

I would like to replace GVim with Vim in the terminal. One of the nice things about GVim is that it is able to display text using italics. Vim allows setting an ANSI escape code for italics (\e[3m), ...
2
votes
3answers
13k views

Unicode text lost when saved as ANSI

When I saved a text file using a notepad with ANSI, I lost all of the information since it became all question marks. Is there a way to convert it back to Unicode to retrieve the text?
8
votes
3answers
2k views

How to convert ANSI colored text to PDF

I have a program that generates console output colored with ANSI codes. How to convert it to PDF keeping the colours? I need a unixish command line solution
2
votes
1answer
5k views

Whats is the different beween Western European (Windows)-1252 and ANSI encoding?

I'm trying to convert UTF-8 to ANSI encoding through a tool but it doesn't show the name of ANSI but Western European (Windows)-1252 instead. Are they both same thing? Should I go ahead with this?
22
votes
6answers
27k views

How can I change the colors of my xterm using Ansi escape sequences?

I would like to change the colors (background, font, foreground) of my xterm from the commandline. I've heard that this can be done using ANSI escape sequences. If this is possible: How is it done? ...
19
votes
2answers
78k views

Changing the default ANSI to UTF-8 in Notepad

I got an e-book reader a few months ago, and I finally figured out why it doesn't display .txt files correctly. It doesn't like ANSI. It has no problem with the other 3 types of coding notepad ...
1
vote
0answers
21 views

OS X: Trying to run an application in terminal and create an image of it

I am trying to run a program such as tload or slurm which graphs a system metric over time, and make its input into an image that has ANSI color support. The best I can think of is using ...
3
votes
1answer
919 views

Process ANSI escape codes before piping

I'm trying to pipe the output of a script (Mocha) to another script. However there is one problem: Mocha generates quite a few ansi escape characters to update the screen on the fly. These characters ...
-1
votes
1answer
565 views

Unicode and ASCII backward compatibility

If first 127 characters are same then why are we still using ASCII and is there backward compatibility issue when using Unicode instead of ASCII
2
votes
2answers
1k views

Create new file in WinSCP with UTF-8 without BOM encoding

I'm using WinSCP in order to work via SFTP with a remote server running a Linux distro. I'm also using Notepad++ (latest version) as my text editor (when editing a remote file). When I use WinSCP to ...
2
votes
1answer
8k views

Convert ANSI text file(s) to UTF8 on Windows command line

I would like to convert (an) ANSI-encoded text file(s) (Win 1252) to UTF8 without BOM, ideally via a command-line call. My use-case: I export .tex files from Stata which I want to compile with ...
1
vote
1answer
2k views

How do I change the color palette of Windows command prompt? [duplicate]

First, I don't want this: How to change the default color of the Command Prompt? When I say color palette, I mean the real scheme/palette, not just foreground+background. I want to change the ...
14
votes
3answers
6k views

PHPUnit Windows command box nice colors

I have PHPunit installed on a Windows machine. But I don't get nice output on my command line. With the green colours. Someone on the PHPunit mailing list told me I need the ansi.sys driver. Can ...
3
votes
3answers
1k views

Xterm control sequence to get RGB value for ANSI color

The meat In (some) terminals you can use a sequence like this; printf "\e]4;3;rgb:cc/78/33\e\\" to set the third color in the ANSI color palette to the RGB values represented by #CC7833. Can you do ...
16
votes
2answers
55k views

Is it possible to change the default encoding in notepad? [duplicate]

On windows 7 (x64), the default option, for saving text files in notepad is ANSI. One can select other encoding from the combo box, however, I'd like this option to be the default.
14
votes
8answers
12k views

How do I make XTerm not use bold?

I like using XTerm, I like its default "fixed" font, and I like using terminal colors rather than having a monochromatic terminal. However, XTerm seems to insist on using a bold version of the font ...
1
vote
0answers
69 views

Ruby ri output not coloured in iTerm 2

When I run Ruby ri in an iTerm 2 terminal window, the output is not coloured and I don't know why. Other programs such as Vim work with colour properly. Running ri -f ansi Array.sort results in ...
0
votes
1answer
223 views

ANSI Colors & Syntax

Is there a mapping of ANSI colors to their syntax in a given shell? For example, in BASH, Blue seems to be Folders and Green seems to be executable files. Does a list exist for what ANSI colors mean ...
3
votes
1answer
570 views

Handling black text in a dark terminal colour scheme

I tweaked my colours in iTerm (though the specific terminal application I use is not relevant). I chose a dark background colour, and defined red, green, yellow, etc. All was well until I ran npm ...
2
votes
2answers
727 views

Ansicon vs. Batch File

I am attempting to make a colored command prompt in Windows 7. Using ansicon, I have successfully managed to create the prompt. However, when I put the commands into a batch file, I receive an error....
3
votes
2answers
6k views

How to pipe Windows “dir” in ANSI codepage

This applies to both Windows XP and Windows 7. Some of my files have names with European characters, for example the German a-umlaut, also known as a-diaeresis. These are displayed correctly in ...
0
votes
1answer
234 views

How those undocumented ANSI codes work

I found gnu head ANSI art (that show up in alsmot grayscale on Cygwin terminal) and it have undocumented ANSI CSI SGR numbers like: [38;5;243m Wikipedia say that the numbers are up to 109. What ...
1
vote
1answer
200 views

Where can I find documentation about GNU/Linux TTY formatting

On gnu.org site there is GNU Head that can be display on terminal it have XTerm compatible (Normal documented ANSI Codes) but it also contain TTY version (it work on Cygwin, didn't test in XTerm or ...
0
votes
1answer
1k views

How does excel manage to correctly decode this file contents?

I start with an excel file with the contents in each row: TEST çığ öğö çüş Then I export this file as a CSV file and save it as ANSI format (which from what I have read is same as US-ASCII). When I ...
1
vote
0answers
846 views

ANSI Russian docx to unicode

I've a big ms-word doc file which contains ANSI encoded russian texts and some fomula's with special formatting. I would like to know is there any tool using which I convert the "ANSI" encoded doc ...
0
votes
2answers
1k views

ANSI file with charSet with latin character

I´m with a doubt about encoding/charset. I make a test. Typing the string "TEST Á" without the quotes in Notepad++ with encode in ANSI. "The ANSI charsets are all the same for ASCII characters such ...
1
vote
1answer
711 views

ANSI prompts messed in Ubuntu 10.04 terminal window (Unicode 0002), but ok in Putty

My bash prompt is: PS1='\e[1;31m\]\[\u\e[0m\]@\h [\e[1;33m\]\w\[\e[0m\]]\$ ' (reddish username, yellowish current directory). If I connect with Putty from a Windows machine, everything is fine. If ...
2
votes
1answer
1k views

Bash color prompt and long commands

I'm colorizing parts of my bash prompt using ANSI escape sequences. This works great, until the command I'm currently typing in is long enough that it has to wrap. Instead of the rest of the command ...
1
vote
1answer
12k views

Free ANSI to UTF8 Multiple Files converter [duplicate]

Possible Duplicates: Batch-convert files for encoding or line ending under Windows App to convert from ANSI to UTF8 on windows Hi, currently i'm in need of a way to convert loads of .txt files ...
1
vote
1answer
79 views

good utility for viewing ANSI animations?

I've got a bunch of ANSI animations left over from my BBS days that were designed to animate correctly over 2400baud. Does anyone know of a good windows utility that would let me view these while ...