Questions tagged [ansi-escape]

ANSI escape code (or escape sequences) is the method of in-band signaling to control formatting, color, and other output options on video text terminals.

To encode this formatting information, it embeds certain sequences of bytes into the text, which have to be interpreted specially, not as codes of characters. Although hardware text terminals have become increasingly rare in the 21st century, the relevance of this standard persists because most terminal emulators interpret at least some of the ANSI escape sequences in the output text. One notable exception is the win32 console component of Microsoft Windows.

655 questions
-1
votes
1 answer

PhpStorm terminal window formatting/ ANSI color codes

I'm new to PhpStorm and started creating application with Laravel. I have one small difficulty with terminal. I use Windows 10 and the newest PhpStorm (2016.3). And as you can see, format of the artisan commands are highly unreadable. Please help…
wujt
  • 1,278
  • 2
  • 13
  • 21
-1
votes
1 answer

Mapping TERM to supported ANSI color codes?

I'd like to detect whether the system console supports ANSI color codes (and which ones) from a Java application without relying on native code (meaning, I cannot interact with ncurses). Is there an easy and reliable way to map $TERM to the list of…
Gili
  • 86,244
  • 97
  • 390
  • 689
-1
votes
1 answer

Handling colored bash prompt

I have an adapter code which executes some specific commands on a Linux machine via SSH. It executes commands and handles the output of each command in a specified manner. The issue being faced is very straightforward. I am connecting to a Bash…
Monojeet Nayak
  • 721
  • 1
  • 7
  • 13
-1
votes
1 answer

Delphi XE3 - Remove Ansi Code / Color from string

I'm struggling with dealing with Ansi code strings. I'm getting the [32m, [37m, [K etc chars. Is there a quicker way to eliminate/strip the ansi codes from the strings I get rather than doing it with the loop through chars searching for the…
That Marc
  • 1,134
  • 3
  • 19
  • 42
-2
votes
4 answers

Regular expression to find everything except a pattern

I'm pretty new to regular expressions and am looking for one that matches anything except all that matches a given regex. I've found ways to find anything except a specific string, but I need it to not match a regex. Also it has to work in…
RcCookie
  • 59
  • 1
  • 10
-2
votes
1 answer

is there any way to obtain ANSI escape code for users OS?

I am making a project where I use escape codes to style printing, I know my escape key is "\033", however other OS's have different escape codes and I would like my project to be cross-platform and work on any OS. Is there any macro that provides…
MaximV
  • 155
  • 11
-2
votes
1 answer

Internals of ncurses: console input

How exactly does Ncurses capture input into the console? I would like to implement it myself instead of using ncurses due to the overhead that ncurses is causing. Thanks!
Nautilus
  • 105
  • 10
-2
votes
1 answer

How to keep spaces with escape sequences stringbuilder c#

I have a stringbuilder setup with escape sequences to show a ASCII like art to text. I am using ASP.NET Web Forms. Here is my code: sb.AppendLine(@" _____ ______ ___ ___ ________ "); sb.AppendLine(@" |\ …
nate
  • 1,418
  • 5
  • 34
  • 73
-3
votes
1 answer

How to print esc characters as characters in Delphi?

There is a Delphi string #10#13#09. If I print it as a normal string I see result of special chars printing, i.e. carriage return and tab indent. I need to see "◙♪○" like Far Manager does. How to make it in Delphi? chr(), ansichar() are not helped
host.13
  • 108
  • 1
  • 1
  • 11
-4
votes
1 answer

Is there anyway to print italic font on ansi console?

Here's the script to color the text and to give bold, blinking, highlighting effect on ansi console. import ( "fmt" "github.com/mgutz/ansi" ) color1Func := ansi.ColorFunc(fmt.Sprintf("%v+bh:%v", 181, 255)) color2Func :=…
artgb
  • 3,177
  • 6
  • 19
  • 36
1 2 3
43
44