Questions tagged [ansi]

56 questions
63
votes
8 answers

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 ;).
mrzasa
  • 755
  • 2
  • 8
  • 7
34
votes
1 answer

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 subsequently wouldn't have such issues. Is there…
user3658425
  • 345
  • 1
  • 3
  • 8
34
votes
6 answers

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? Can I use color names or must I use their RGB…
Nathan Fellman
  • 9,372
  • 20
  • 62
  • 82
27
votes
4 answers

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 that change based on the output of the function…
23
votes
2 answers

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 provides. For a reason I chose UTF-8 and decoded all…
Emma
  • 231
  • 1
  • 2
  • 3
19
votes
4 answers

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), but this does not work in Gnome Terminal. Is there…
Ton van den Heuvel
  • 3,664
  • 4
  • 27
  • 34
19
votes
8 answers

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 whenever it's displaying a bright color: I hate…
mike
  • 410
  • 1
  • 5
  • 9
16
votes
2 answers

Is it possible to change the default encoding in notepad?

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.
akurtser
  • 765
  • 3
  • 7
  • 18
14
votes
3 answers

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 someone tell me how to do it so that PHPunit will use…
sanders
  • 189
  • 2
  • 10
  • 19
12
votes
4 answers

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 changed from UTF-8 to ANSI when I open the…
Martin Duys
  • 1,201
  • 2
  • 11
  • 12
10
votes
2 answers

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 it. As you can imagine, this gets very tedious…
irikkkkk
  • 103
  • 1
  • 1
  • 4
9
votes
3 answers

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
grep
  • 241
  • 2
  • 5
8
votes
3 answers

How to set Notepad2 to use UTF-8 instead of ANSI

Each time I create a new file in Notepad2, the encoding is ANSI (1252). I'd like instead to have UTF-8 as default. Is there a way to get this ?
asksuperuser
6
votes
2 answers

Maven - ignore ANSI color escaping chars in grep search

I find that sometimes, ANSI escaping chars in mvn output prevents me to do this search with grep: mvn | grep -P "\[INFO\]" I have to use "\[.*INFO.*\]" to get results. How to disable processing the ANSI escaping chars? I think there is some config…
WesternGun
  • 592
  • 3
  • 12
6
votes
5 answers

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 encoding is UTF-8 but if open the Notepad from…
WeLoveLinux
  • 61
  • 1
  • 1
  • 3
1
2 3 4