Bunt.ANSI (Bunt v1.0.0)

Functionality to render ANSI escape sequences.

ANSI escape sequences are characters embedded in text used to control formatting, color, and other output options on video text terminals.

Summary

Functions

Sets foreground color to aqua

Sets background color to aqua

Sets foreground color to aquamarine

Sets background color to aquamarine

Sets foreground color to beige

Sets background color to beige

Sets foreground color to black

Sets background color to black

Blink: off

Blink: Rapid. MS-DOS ANSI.SYS; 150 per minute or more; not widely supported

Blink: Slow. Less than 150 per minute

Sets foreground color to blue

Sets background color to blue

Bright (increased intensity) or Bold

Sets foreground color to chartreuse

Sets background color to chartreuse

Sets foreground color to chocolate

Sets background color to chocolate

Clears screen

Clears line

Sets foreground color to color16

Sets background color to color16

Sets foreground color to color17

Sets background color to color17

Sets foreground color to color18

Sets background color to color18

Sets foreground color to color19

Sets background color to color19

Sets foreground color to color20

Sets background color to color20

Sets foreground color to color21

Sets background color to color21

Sets foreground color to color22

Sets background color to color22

Sets foreground color to color23

Sets background color to color23

Sets foreground color to color24

Sets background color to color24

Sets foreground color to color25

Sets background color to color25

Sets foreground color to color26

Sets background color to color26

Sets foreground color to color27

Sets background color to color27

Sets foreground color to color28

Sets background color to color28

Sets foreground color to color29

Sets background color to color29

Sets foreground color to color30

Sets background color to color30

Sets foreground color to color31

Sets background color to color31

Sets foreground color to color32

Sets background color to color32

Sets foreground color to color33

Sets background color to color33

Sets foreground color to color34

Sets background color to color34

Sets foreground color to color35

Sets background color to color35

Sets foreground color to color36

Sets background color to color36

Sets foreground color to color37

Sets background color to color37

Sets foreground color to color38

Sets background color to color38

Sets foreground color to color39

Sets background color to color39

Sets foreground color to color40

Sets background color to color40

Sets foreground color to color41

Sets background color to color41

Sets foreground color to color42

Sets background color to color42

Sets foreground color to color43

Sets background color to color43

Sets foreground color to color44

Sets background color to color44

Sets foreground color to color45

Sets background color to color45

Sets foreground color to color46

Sets background color to color46

Sets foreground color to color47

Sets background color to color47

Sets foreground color to color48

Sets background color to color48

Sets foreground color to color49

Sets background color to color49

Sets foreground color to color50

Sets background color to color50

Sets foreground color to color51

Sets background color to color51

Sets foreground color to color52

Sets background color to color52

Sets foreground color to color53

Sets background color to color53

Sets foreground color to color54

Sets background color to color54

Sets foreground color to color55

Sets background color to color55

Sets foreground color to color56

Sets background color to color56

Sets foreground color to color57

Sets background color to color57

Sets foreground color to color58

Sets background color to color58

Sets foreground color to color59

Sets background color to color59

Sets foreground color to color60

Sets background color to color60

Sets foreground color to color61

Sets background color to color61

Sets foreground color to color62

Sets background color to color62

Sets foreground color to color63

Sets background color to color63

Sets foreground color to color64

Sets background color to color64

Sets foreground color to color65

Sets background color to color65

Sets foreground color to color66

Sets background color to color66

Sets foreground color to color67

Sets background color to color67

Sets foreground color to color68

Sets background color to color68

Sets foreground color to color69

Sets background color to color69

Sets foreground color to color70

Sets background color to color70

Sets foreground color to color71

Sets background color to color71

Sets foreground color to color72

Sets background color to color72

Sets foreground color to color73

Sets background color to color73

Sets foreground color to color74

Sets background color to color74

Sets foreground color to color75

Sets background color to color75

Sets foreground color to color76

Sets background color to color76

Sets foreground color to color77

Sets background color to color77

Sets foreground color to color78

Sets background color to color78

Sets foreground color to color79

Sets background color to color79

Sets foreground color to color80

Sets background color to color80

Sets foreground color to color81

Sets background color to color81

Sets foreground color to color82

Sets background color to color82

Sets foreground color to color83

Sets background color to color83

Sets foreground color to color84

Sets background color to color84

Sets foreground color to color85

Sets background color to color85

Sets foreground color to color86

Sets background color to color86

Sets foreground color to color87

Sets background color to color87

Sets foreground color to color88

Sets background color to color88

Sets foreground color to color89

Sets background color to color89

Sets foreground color to color90

Sets background color to color90

Sets foreground color to color91

Sets background color to color91

Sets foreground color to color92

Sets background color to color92

Sets foreground color to color93

Sets background color to color93

Sets foreground color to color94

Sets background color to color94

Sets foreground color to color95

Sets background color to color95

Sets foreground color to color96

Sets background color to color96

Sets foreground color to color97

Sets background color to color97

Sets foreground color to color98

Sets background color to color98

Sets foreground color to color99

Sets background color to color99

Sets foreground color to color100

Sets background color to color100

Sets foreground color to color101

Sets background color to color101

Sets foreground color to color102

Sets background color to color102

Sets foreground color to color103

Sets background color to color103

Sets foreground color to color104

Sets background color to color104

Sets foreground color to color105

Sets background color to color105

Sets foreground color to color106

Sets background color to color106

Sets foreground color to color107

Sets background color to color107

Sets foreground color to color108

Sets background color to color108

Sets foreground color to color109

Sets background color to color109

Sets foreground color to color110

Sets background color to color110

Sets foreground color to color111

Sets background color to color111

Sets foreground color to color112

Sets background color to color112

Sets foreground color to color113

Sets background color to color113

Sets foreground color to color114

Sets background color to color114

Sets foreground color to color115

Sets background color to color115

Sets foreground color to color116

Sets background color to color116

Sets foreground color to color117

Sets background color to color117

Sets foreground color to color118

Sets background color to color118

Sets foreground color to color119

Sets background color to color119

Sets foreground color to color120

Sets background color to color120

Sets foreground color to color121

Sets background color to color121

Sets foreground color to color122

Sets background color to color122

Sets foreground color to color123

Sets background color to color123

Sets foreground color to color124

Sets background color to color124

Sets foreground color to color125

Sets background color to color125

Sets foreground color to color126

Sets background color to color126

Sets foreground color to color127

Sets background color to color127

Sets foreground color to color128

Sets background color to color128

Sets foreground color to color129

Sets background color to color129

Sets foreground color to color130

Sets background color to color130

Sets foreground color to color131

Sets background color to color131

Sets foreground color to color132

Sets background color to color132

Sets foreground color to color133

Sets background color to color133

Sets foreground color to color134

Sets background color to color134

Sets foreground color to color135

Sets background color to color135

Sets foreground color to color136

Sets background color to color136

Sets foreground color to color137

Sets background color to color137

Sets foreground color to color138

Sets background color to color138

Sets foreground color to color139

Sets background color to color139

Sets foreground color to color140

Sets background color to color140

Sets foreground color to color141

Sets background color to color141

Sets foreground color to color142

Sets background color to color142

Sets foreground color to color143

Sets background color to color143

Sets foreground color to color144

Sets background color to color144

Sets foreground color to color145

Sets background color to color145

Sets foreground color to color146

Sets background color to color146

Sets foreground color to color147

Sets background color to color147

Sets foreground color to color148

Sets background color to color148

Sets foreground color to color149

Sets background color to color149

Sets foreground color to color150

Sets background color to color150

Sets foreground color to color151

Sets background color to color151

Sets foreground color to color152

Sets background color to color152

Sets foreground color to color153

Sets background color to color153

Sets foreground color to color154

Sets background color to color154

Sets foreground color to color155

Sets background color to color155

Sets foreground color to color156

Sets background color to color156

Sets foreground color to color157

Sets background color to color157

Sets foreground color to color158

Sets background color to color158

Sets foreground color to color159

Sets background color to color159

Sets foreground color to color160

Sets background color to color160

Sets foreground color to color161

Sets background color to color161

Sets foreground color to color162

Sets background color to color162

Sets foreground color to color163

Sets background color to color163

Sets foreground color to color164

Sets background color to color164

Sets foreground color to color165

Sets background color to color165

Sets foreground color to color166

Sets background color to color166

Sets foreground color to color167

Sets background color to color167

Sets foreground color to color168

Sets background color to color168

Sets foreground color to color169

Sets background color to color169

Sets foreground color to color170

Sets background color to color170

Sets foreground color to color171

Sets background color to color171

Sets foreground color to color172

Sets background color to color172

Sets foreground color to color173

Sets background color to color173

Sets foreground color to color174

Sets background color to color174

Sets foreground color to color175

Sets background color to color175

Sets foreground color to color176

Sets background color to color176

Sets foreground color to color177

Sets background color to color177

Sets foreground color to color178

Sets background color to color178

Sets foreground color to color179

Sets background color to color179

Sets foreground color to color180

Sets background color to color180

Sets foreground color to color181

Sets background color to color181

Sets foreground color to color182

Sets background color to color182

Sets foreground color to color183

Sets background color to color183

Sets foreground color to color184

Sets background color to color184

Sets foreground color to color185

Sets background color to color185

Sets foreground color to color186

Sets background color to color186

Sets foreground color to color187

Sets background color to color187

Sets foreground color to color188

Sets background color to color188

Sets foreground color to color189

Sets background color to color189

Sets foreground color to color190

Sets background color to color190

Sets foreground color to color191

Sets background color to color191

Sets foreground color to color192

Sets background color to color192

Sets foreground color to color193

Sets background color to color193

Sets foreground color to color194

Sets background color to color194

Sets foreground color to color195

Sets background color to color195

Sets foreground color to color196

Sets background color to color196

Sets foreground color to color197

Sets background color to color197

Sets foreground color to color198

Sets background color to color198

Sets foreground color to color199

Sets background color to color199

Sets foreground color to color200

Sets background color to color200

Sets foreground color to color201

Sets background color to color201

Sets foreground color to color202

Sets background color to color202

Sets foreground color to color203

Sets background color to color203

Sets foreground color to color204

Sets background color to color204

Sets foreground color to color205

Sets background color to color205

Sets foreground color to color206

Sets background color to color206

Sets foreground color to color207

Sets background color to color207

Sets foreground color to color208

Sets background color to color208

Sets foreground color to color209

Sets background color to color209

Sets foreground color to color210

Sets background color to color210

Sets foreground color to color211

Sets background color to color211

Sets foreground color to color212

Sets background color to color212

Sets foreground color to color213

Sets background color to color213

Sets foreground color to color214

Sets background color to color214

Sets foreground color to color215

Sets background color to color215

Sets foreground color to color216

Sets background color to color216

Sets foreground color to color217

Sets background color to color217

Sets foreground color to color218

Sets background color to color218

Sets foreground color to color219

Sets background color to color219

Sets foreground color to color220

Sets background color to color220

Sets foreground color to color221

Sets background color to color221

Sets foreground color to color222

Sets background color to color222

Sets foreground color to color223

Sets background color to color223

Sets foreground color to color224

Sets background color to color224

Sets foreground color to color225

Sets background color to color225

Sets foreground color to color226

Sets background color to color226

Sets foreground color to color227

Sets background color to color227

Sets foreground color to color228

Sets background color to color228

Sets foreground color to color229

Sets background color to color229

Sets foreground color to color230

Sets background color to color230

Sets foreground color to color231

Sets background color to color231

Sets foreground color to color232

Sets background color to color232

Sets foreground color to color233

Sets background color to color233

Sets foreground color to color234

Sets background color to color234

Sets foreground color to color235

Sets background color to color235

Sets foreground color to color236

Sets background color to color236

Sets foreground color to color237

Sets background color to color237

Sets foreground color to color238

Sets background color to color238

Sets foreground color to color239

Sets background color to color239

Sets foreground color to color240

Sets background color to color240

Sets foreground color to color241

Sets background color to color241

Sets foreground color to color242

Sets background color to color242

Sets foreground color to color243

Sets background color to color243

Sets foreground color to color244

Sets background color to color244

Sets foreground color to color245

Sets background color to color245

Sets foreground color to color246

Sets background color to color246

Sets foreground color to color247

Sets background color to color247

Sets foreground color to color248

Sets background color to color248

Sets foreground color to color249

Sets background color to color249

Sets foreground color to color250

Sets background color to color250

Sets foreground color to color251

Sets background color to color251

Sets foreground color to color252

Sets background color to color252

Sets foreground color to color253

Sets background color to color253

Sets foreground color to color254

Sets background color to color254

Sets foreground color to color255

Sets background color to color255

Conceal. Not widely supported

Sets foreground color to coral

Sets background color to coral

Crossed-out. Characters legible, but marked for deletion. Not widely supported

Sets foreground color to cyan

Sets background color to cyan

Sets foreground color to darkblue

Sets background color to darkblue

Sets foreground color to darkcyan

Sets background color to darkcyan

Sets foreground color to darkgreen

Sets background color to darkgreen

Sets foreground color to darkmagenta

Sets background color to darkmagenta

Sets foreground color to darkorange

Sets background color to darkorange

Sets foreground color to darkred

Sets background color to darkred

Sets foreground color to darkslategray

Sets background color to darkslategray

Sets foreground color to deepskyblue

Sets background color to deepskyblue

Default background color

Default text color

Sets foreground color to dimgray

Sets background color to dimgray

Checks if ANSI coloring is supported and enabled on this machine.

Encircled

Faint (decreased intensity), not widely supported

Sets alternative font 1

Sets alternative font 2

Sets alternative font 3

Sets alternative font 4

Sets alternative font 5

Sets alternative font 6

Sets alternative font 7

Sets alternative font 8

Sets alternative font 9

Formats a chardata-like argument by converting named ANSI sequences into actual ANSI codes.

Formats a chardata-like argument by converting named ANSI sequences into actual ANSI codes.

Framed

Sets foreground color to fuchsia

Sets background color to fuchsia

Sets foreground color to gold

Sets background color to gold

Sets foreground color to goldenrod

Sets background color to goldenrod

Sets foreground color to green

Sets background color to green

Sets foreground color to greenyellow

Sets background color to greenyellow

Sends cursor home

Sets foreground color to hotpink

Sets background color to hotpink

Image: Negative. Swap foreground and background

Italic: on. Not widely supported. Sometimes treated as inverse

Sets foreground color to khaki

Sets background color to khaki

Sets foreground color to lightcyan

Sets background color to lightcyan

Sets foreground color to lightgray

Sets background color to lightgray

Sets foreground color to lightyellow

Sets background color to lightyellow

Sets foreground color to magenta

Sets background color to magenta

Sets foreground color to mediumblue

Sets background color to mediumblue

Sets foreground color to mistyrose

Sets background color to mistyrose

Sets foreground color to moccasin

Sets background color to moccasin

Underline: None

Normal color or intensity

Not framed or encircled

Not italic

Not overlined

Sets foreground color to olive

Sets background color to olive

Sets foreground color to orange

Sets background color to orange

Sets foreground color to orangered

Sets background color to orangered

Overlined

Sets primary (default) font

Sets foreground color to red

Sets background color to red

Resets all attributes

Image: Negative. Swap foreground and background

Sets foreground color to springgreen

Sets background color to springgreen

Sets foreground color to steelblue

Sets background color to steelblue

Underline: Single

Sets foreground color to white

Sets background color to white

Sets foreground color to yellow

Sets background color to yellow

Types

@type ansidata() :: ansilist() | ansicode() | binary()

Functions

Sets foreground color to aqua

Link to this function

aqua_background()

Sets background color to aqua

Sets foreground color to aquamarine

Link to this function

aquamarine_background()

Sets background color to aquamarine

Sets foreground color to beige

Link to this function

beige_background()

Sets background color to beige

Sets foreground color to black

Link to this function

black_background()

Sets background color to black

Sets foreground color to blue

Link to this function

blue_background()

Sets background color to blue

Bright (increased intensity) or Bold

Sets foreground color to chartreuse

Link to this function

chartreuse_background()

Sets background color to chartreuse

Sets foreground color to chocolate

Link to this function

chocolate_background()

Sets background color to chocolate

Clears screen

Clears line

Sets foreground color to color16

Link to this function

color16_background()

Sets background color to color16

Sets foreground color to color17

Link to this function

color17_background()

Sets background color to color17

Sets foreground color to color18

Link to this function

color18_background()

Sets background color to color18

Sets foreground color to color19

Link to this function

color19_background()

Sets background color to color19

Sets foreground color to color20

Link to this function

color20_background()

Sets background color to color20

Sets foreground color to color21

Link to this function

color21_background()

Sets background color to color21

Sets foreground color to color22

Link to this function

color22_background()

Sets background color to color22

Sets foreground color to color23

Link to this function

color23_background()

Sets background color to color23

Sets foreground color to color24

Link to this function

color24_background()

Sets background color to color24

Sets foreground color to color25

Link to this function

color25_background()

Sets background color to color25

Sets foreground color to color26

Link to this function

color26_background()

Sets background color to color26

Sets foreground color to color27

Link to this function

color27_background()

Sets background color to color27

Sets foreground color to color28

Link to this function

color28_background()

Sets background color to color28

Sets foreground color to color29

Link to this function

color29_background()

Sets background color to color29

Sets foreground color to color30

Link to this function

color30_background()

Sets background color to color30

Sets foreground color to color31

Link to this function

color31_background()

Sets background color to color31

Sets foreground color to color32

Link to this function

color32_background()

Sets background color to color32

Sets foreground color to color33

Link to this function

color33_background()

Sets background color to color33

Sets foreground color to color34

Link to this function

color34_background()

Sets background color to color34

Sets foreground color to color35

Link to this function

color35_background()

Sets background color to color35

Sets foreground color to color36

Link to this function

color36_background()

Sets background color to color36

Sets foreground color to color37

Link to this function

color37_background()

Sets background color to color37

Sets foreground color to color38

Link to this function

color38_background()

Sets background color to color38

Sets foreground color to color39

Link to this function

color39_background()

Sets background color to color39

Sets foreground color to color40

Link to this function

color40_background()

Sets background color to color40

Sets foreground color to color41

Link to this function

color41_background()

Sets background color to color41

Sets foreground color to color42

Link to this function

color42_background()

Sets background color to color42

Sets foreground color to color43

Link to this function

color43_background()

Sets background color to color43

Sets foreground color to color44

Link to this function

color44_background()

Sets background color to color44

Sets foreground color to color45

Link to this function

color45_background()

Sets background color to color45

Sets foreground color to color46

Link to this function

color46_background()

Sets background color to color46

Sets foreground color to color47

Link to this function

color47_background()

Sets background color to color47

Sets foreground color to color48

Link to this function

color48_background()

Sets background color to color48

Sets foreground color to color49

Link to this function

color49_background()

Sets background color to color49

Sets foreground color to color50

Link to this function

color50_background()

Sets background color to color50

Sets foreground color to color51

Link to this function

color51_background()

Sets background color to color51

Sets foreground color to color52

Link to this function

color52_background()

Sets background color to color52

Sets foreground color to color53

Link to this function

color53_background()

Sets background color to color53

Sets foreground color to color54

Link to this function

color54_background()

Sets background color to color54

Sets foreground color to color55

Link to this function

color55_background()

Sets background color to color55

Sets foreground color to color56

Link to this function

color56_background()

Sets background color to color56

Sets foreground color to color57

Link to this function

color57_background()

Sets background color to color57

Sets foreground color to color58

Link to this function

color58_background()

Sets background color to color58

Sets foreground color to color59

Link to this function

color59_background()

Sets background color to color59

Sets foreground color to color60

Link to this function

color60_background()

Sets background color to color60

Sets foreground color to color61

Link to this function

color61_background()

Sets background color to color61

Sets foreground color to color62

Link to this function

color62_background()

Sets background color to color62

Sets foreground color to color63

Link to this function

color63_background()

Sets background color to color63

Sets foreground color to color64

Link to this function

color64_background()

Sets background color to color64

Sets foreground color to color65

Link to this function

color65_background()

Sets background color to color65

Sets foreground color to color66

Link to this function

color66_background()

Sets background color to color66

Sets foreground color to color67

Link to this function

color67_background()

Sets background color to color67

Sets foreground color to color68

Link to this function

color68_background()

Sets background color to color68

Sets foreground color to color69

Link to this function

color69_background()

Sets background color to color69

Sets foreground color to color70

Link to this function

color70_background()

Sets background color to color70

Sets foreground color to color71

Link to this function

color71_background()

Sets background color to color71

Sets foreground color to color72

Link to this function

color72_background()

Sets background color to color72

Sets foreground color to color73

Link to this function

color73_background()

Sets background color to color73

Sets foreground color to color74

Link to this function

color74_background()

Sets background color to color74

Sets foreground color to color75

Link to this function

color75_background()

Sets background color to color75

Sets foreground color to color76

Link to this function

color76_background()

Sets background color to color76

Sets foreground color to color77

Link to this function

color77_background()

Sets background color to color77

Sets foreground color to color78

Link to this function

color78_background()

Sets background color to color78

Sets foreground color to color79

Link to this function

color79_background()

Sets background color to color79

Sets foreground color to color80

Link to this function

color80_background()

Sets background color to color80

Sets foreground color to color81

Link to this function

color81_background()

Sets background color to color81

Sets foreground color to color82

Link to this function

color82_background()

Sets background color to color82

Sets foreground color to color83

Link to this function

color83_background()

Sets background color to color83

Sets foreground color to color84

Link to this function

color84_background()

Sets background color to color84

Sets foreground color to color85

Link to this function

color85_background()

Sets background color to color85

Sets foreground color to color86

Link to this function

color86_background()

Sets background color to color86

Sets foreground color to color87

Link to this function

color87_background()

Sets background color to color87

Sets foreground color to color88

Link to this function

color88_background()

Sets background color to color88

Sets foreground color to color89

Link to this function

color89_background()

Sets background color to color89

Sets foreground color to color90

Link to this function

color90_background()

Sets background color to color90

Sets foreground color to color91

Link to this function

color91_background()

Sets background color to color91

Sets foreground color to color92

Link to this function

color92_background()

Sets background color to color92

Sets foreground color to color93

Link to this function

color93_background()

Sets background color to color93

Sets foreground color to color94

Link to this function

color94_background()

Sets background color to color94

Sets foreground color to color95

Link to this function

color95_background()

Sets background color to color95

Sets foreground color to color96

Link to this function

color96_background()

Sets background color to color96

Sets foreground color to color97

Link to this function

color97_background()

Sets background color to color97

Sets foreground color to color98

Link to this function

color98_background()

Sets background color to color98

Sets foreground color to color99

Link to this function

color99_background()

Sets background color to color99

Sets foreground color to color100

Link to this function

color100_background()

Sets background color to color100

Sets foreground color to color101

Link to this function

color101_background()

Sets background color to color101

Sets foreground color to color102

Link to this function

color102_background()

Sets background color to color102

Sets foreground color to color103

Link to this function

color103_background()

Sets background color to color103

Sets foreground color to color104

Link to this function

color104_background()

Sets background color to color104

Sets foreground color to color105

Link to this function

color105_background()

Sets background color to color105

Sets foreground color to color106

Link to this function

color106_background()

Sets background color to color106

Sets foreground color to color107

Link to this function

color107_background()

Sets background color to color107

Sets foreground color to color108

Link to this function

color108_background()

Sets background color to color108

Sets foreground color to color109

Link to this function

color109_background()

Sets background color to color109

Sets foreground color to color110

Link to this function

color110_background()

Sets background color to color110

Sets foreground color to color111

Link to this function

color111_background()

Sets background color to color111

Sets foreground color to color112

Link to this function

color112_background()

Sets background color to color112

Sets foreground color to color113

Link to this function

color113_background()

Sets background color to color113

Sets foreground color to color114

Link to this function

color114_background()

Sets background color to color114

Sets foreground color to color115

Link to this function

color115_background()

Sets background color to color115

Sets foreground color to color116

Link to this function

color116_background()

Sets background color to color116

Sets foreground color to color117

Link to this function

color117_background()

Sets background color to color117

Sets foreground color to color118

Link to this function

color118_background()

Sets background color to color118

Sets foreground color to color119

Link to this function

color119_background()

Sets background color to color119

Sets foreground color to color120

Link to this function

color120_background()

Sets background color to color120

Sets foreground color to color121

Link to this function

color121_background()

Sets background color to color121

Sets foreground color to color122

Link to this function

color122_background()

Sets background color to color122

Sets foreground color to color123

Link to this function

color123_background()

Sets background color to color123

Sets foreground color to color124

Link to this function

color124_background()

Sets background color to color124

Sets foreground color to color125

Link to this function

color125_background()

Sets background color to color125

Sets foreground color to color126

Link to this function

color126_background()

Sets background color to color126

Sets foreground color to color127

Link to this function

color127_background()

Sets background color to color127

Sets foreground color to color128

Link to this function

color128_background()

Sets background color to color128

Sets foreground color to color129

Link to this function

color129_background()

Sets background color to color129

Sets foreground color to color130

Link to this function

color130_background()

Sets background color to color130

Sets foreground color to color131

Link to this function

color131_background()

Sets background color to color131

Sets foreground color to color132

Link to this function

color132_background()

Sets background color to color132

Sets foreground color to color133

Link to this function

color133_background()

Sets background color to color133

Sets foreground color to color134

Link to this function

color134_background()

Sets background color to color134

Sets foreground color to color135

Link to this function

color135_background()

Sets background color to color135

Sets foreground color to color136

Link to this function

color136_background()

Sets background color to color136

Sets foreground color to color137

Link to this function

color137_background()

Sets background color to color137

Sets foreground color to color138

Link to this function

color138_background()

Sets background color to color138

Sets foreground color to color139

Link to this function

color139_background()

Sets background color to color139

Sets foreground color to color140

Link to this function

color140_background()

Sets background color to color140

Sets foreground color to color141

Link to this function

color141_background()

Sets background color to color141

Sets foreground color to color142

Link to this function

color142_background()

Sets background color to color142

Sets foreground color to color143

Link to this function

color143_background()

Sets background color to color143

Sets foreground color to color144

Link to this function

color144_background()

Sets background color to color144

Sets foreground color to color145

Link to this function

color145_background()

Sets background color to color145

Sets foreground color to color146

Link to this function

color146_background()

Sets background color to color146

Sets foreground color to color147

Link to this function

color147_background()

Sets background color to color147

Sets foreground color to color148

Link to this function

color148_background()

Sets background color to color148

Sets foreground color to color149

Link to this function

color149_background()

Sets background color to color149

Sets foreground color to color150

Link to this function

color150_background()

Sets background color to color150

Sets foreground color to color151

Link to this function

color151_background()

Sets background color to color151

Sets foreground color to color152

Link to this function

color152_background()

Sets background color to color152

Sets foreground color to color153

Link to this function

color153_background()

Sets background color to color153

Sets foreground color to color154

Link to this function

color154_background()

Sets background color to color154

Sets foreground color to color155

Link to this function

color155_background()

Sets background color to color155

Sets foreground color to color156

Link to this function

color156_background()

Sets background color to color156

Sets foreground color to color157

Link to this function

color157_background()

Sets background color to color157

Sets foreground color to color158

Link to this function

color158_background()

Sets background color to color158

Sets foreground color to color159

Link to this function

color159_background()

Sets background color to color159

Sets foreground color to color160

Link to this function

color160_background()

Sets background color to color160

Sets foreground color to color161

Link to this function

color161_background()

Sets background color to color161

Sets foreground color to color162

Link to this function

color162_background()

Sets background color to color162

Sets foreground color to color163

Link to this function

color163_background()

Sets background color to color163

Sets foreground color to color164

Link to this function

color164_background()

Sets background color to color164

Sets foreground color to color165

Link to this function

color165_background()

Sets background color to color165

Sets foreground color to color166

Link to this function

color166_background()

Sets background color to color166

Sets foreground color to color167

Link to this function

color167_background()

Sets background color to color167

Sets foreground color to color168

Link to this function

color168_background()

Sets background color to color168

Sets foreground color to color169

Link to this function

color169_background()

Sets background color to color169

Sets foreground color to color170

Link to this function

color170_background()

Sets background color to color170

Sets foreground color to color171

Link to this function

color171_background()

Sets background color to color171

Sets foreground color to color172

Link to this function

color172_background()

Sets background color to color172

Sets foreground color to color173

Link to this function

color173_background()

Sets background color to color173

Sets foreground color to color174

Link to this function

color174_background()

Sets background color to color174

Sets foreground color to color175

Link to this function

color175_background()

Sets background color to color175

Sets foreground color to color176

Link to this function

color176_background()

Sets background color to color176

Sets foreground color to color177

Link to this function

color177_background()

Sets background color to color177

Sets foreground color to color178

Link to this function

color178_background()

Sets background color to color178

Sets foreground color to color179

Link to this function

color179_background()

Sets background color to color179

Sets foreground color to color180

Link to this function

color180_background()

Sets background color to color180

Sets foreground color to color181

Link to this function

color181_background()

Sets background color to color181

Sets foreground color to color182

Link to this function

color182_background()

Sets background color to color182

Sets foreground color to color183

Link to this function

color183_background()

Sets background color to color183

Sets foreground color to color184

Link to this function

color184_background()

Sets background color to color184

Sets foreground color to color185

Link to this function

color185_background()

Sets background color to color185

Sets foreground color to color186

Link to this function

color186_background()

Sets background color to color186

Sets foreground color to color187

Link to this function

color187_background()

Sets background color to color187

Sets foreground color to color188

Link to this function

color188_background()

Sets background color to color188

Sets foreground color to color189

Link to this function

color189_background()

Sets background color to color189

Sets foreground color to color190

Link to this function

color190_background()

Sets background color to color190

Sets foreground color to color191

Link to this function

color191_background()

Sets background color to color191

Sets foreground color to color192

Link to this function

color192_background()

Sets background color to color192

Sets foreground color to color193

Link to this function

color193_background()

Sets background color to color193

Sets foreground color to color194

Link to this function

color194_background()

Sets background color to color194

Sets foreground color to color195

Link to this function

color195_background()

Sets background color to color195

Sets foreground color to color196

Link to this function

color196_background()

Sets background color to color196

Sets foreground color to color197

Link to this function

color197_background()

Sets background color to color197

Sets foreground color to color198

Link to this function

color198_background()

Sets background color to color198

Sets foreground color to color199

Link to this function

color199_background()

Sets background color to color199

Sets foreground color to color200

Link to this function

color200_background()

Sets background color to color200

Sets foreground color to color201

Link to this function

color201_background()

Sets background color to color201

Sets foreground color to color202

Link to this function

color202_background()

Sets background color to color202

Sets foreground color to color203

Link to this function

color203_background()

Sets background color to color203

Sets foreground color to color204

Link to this function

color204_background()

Sets background color to color204

Sets foreground color to color205

Link to this function

color205_background()

Sets background color to color205

Sets foreground color to color206

Link to this function

color206_background()

Sets background color to color206

Sets foreground color to color207

Link to this function

color207_background()

Sets background color to color207

Sets foreground color to color208

Link to this function

color208_background()

Sets background color to color208

Sets foreground color to color209

Link to this function

color209_background()

Sets background color to color209

Sets foreground color to color210

Link to this function

color210_background()

Sets background color to color210

Sets foreground color to color211

Link to this function

color211_background()

Sets background color to color211

Sets foreground color to color212

Link to this function

color212_background()

Sets background color to color212

Sets foreground color to color213

Link to this function

color213_background()

Sets background color to color213

Sets foreground color to color214

Link to this function

color214_background()

Sets background color to color214

Sets foreground color to color215

Link to this function

color215_background()

Sets background color to color215

Sets foreground color to color216

Link to this function

color216_background()

Sets background color to color216

Sets foreground color to color217

Link to this function

color217_background()

Sets background color to color217

Sets foreground color to color218

Link to this function

color218_background()

Sets background color to color218

Sets foreground color to color219

Link to this function

color219_background()

Sets background color to color219

Sets foreground color to color220

Link to this function

color220_background()

Sets background color to color220

Sets foreground color to color221

Link to this function

color221_background()

Sets background color to color221

Sets foreground color to color222

Link to this function

color222_background()

Sets background color to color222

Sets foreground color to color223

Link to this function

color223_background()

Sets background color to color223

Sets foreground color to color224

Link to this function

color224_background()

Sets background color to color224

Sets foreground color to color225

Link to this function

color225_background()

Sets background color to color225

Sets foreground color to color226

Link to this function

color226_background()

Sets background color to color226

Sets foreground color to color227

Link to this function

color227_background()

Sets background color to color227

Sets foreground color to color228

Link to this function

color228_background()

Sets background color to color228

Sets foreground color to color229

Link to this function

color229_background()

Sets background color to color229

Sets foreground color to color230

Link to this function

color230_background()

Sets background color to color230

Sets foreground color to color231

Link to this function

color231_background()

Sets background color to color231

Sets foreground color to color232

Link to this function

color232_background()

Sets background color to color232

Sets foreground color to color233

Link to this function

color233_background()

Sets background color to color233

Sets foreground color to color234

Link to this function

color234_background()

Sets background color to color234

Sets foreground color to color235

Link to this function

color235_background()

Sets background color to color235

Sets foreground color to color236

Link to this function

color236_background()

Sets background color to color236

Sets foreground color to color237

Link to this function

color237_background()

Sets background color to color237

Sets foreground color to color238

Link to this function

color238_background()

Sets background color to color238

Sets foreground color to color239

Link to this function

color239_background()

Sets background color to color239

Sets foreground color to color240

Link to this function

color240_background()

Sets background color to color240

Sets foreground color to color241

Link to this function

color241_background()

Sets background color to color241

Sets foreground color to color242

Link to this function

color242_background()

Sets background color to color242

Sets foreground color to color243

Link to this function

color243_background()

Sets background color to color243

Sets foreground color to color244

Link to this function

color244_background()

Sets background color to color244

Sets foreground color to color245

Link to this function

color245_background()

Sets background color to color245

Sets foreground color to color246

Link to this function

color246_background()

Sets background color to color246

Sets foreground color to color247

Link to this function

color247_background()

Sets background color to color247

Sets foreground color to color248

Link to this function

color248_background()

Sets background color to color248

Sets foreground color to color249

Link to this function

color249_background()

Sets background color to color249

Sets foreground color to color250

Link to this function

color250_background()

Sets background color to color250

Sets foreground color to color251

Link to this function

color251_background()

Sets background color to color251

Sets foreground color to color252

Link to this function

color252_background()

Sets background color to color252

Sets foreground color to color253

Link to this function

color253_background()

Sets background color to color253

Sets foreground color to color254

Link to this function

color254_background()

Sets background color to color254

Sets foreground color to color255

Link to this function

color255_background()

Sets background color to color255

Link to this function

color_aliases()

Conceal. Not widely supported

Sets foreground color to coral

Link to this function

coral_background()

Sets background color to coral

Crossed-out. Characters legible, but marked for deletion. Not widely supported

Sets foreground color to cyan

Link to this function

cyan_background()

Sets background color to cyan

Sets foreground color to darkblue

Link to this function

darkblue_background()

Sets background color to darkblue

Sets foreground color to darkcyan

Link to this function

darkcyan_background()

Sets background color to darkcyan

Sets foreground color to darkgreen

Link to this function

darkgreen_background()

Sets background color to darkgreen

Sets foreground color to darkmagenta

Link to this function

darkmagenta_background()

Sets background color to darkmagenta

Sets foreground color to darkorange

Link to this function

darkorange_background()

Sets background color to darkorange

Sets foreground color to darkred

Link to this function

darkred_background()

Sets background color to darkred

Link to this function

darkslategray()

Sets foreground color to darkslategray

Link to this function

darkslategray_background()

Sets background color to darkslategray

Sets foreground color to deepskyblue

Link to this function

deepskyblue_background()

Sets background color to deepskyblue

Link to this function

default_background()

Default background color

Link to this function

default_color()

Default text color

Sets foreground color to dimgray

Link to this function

dimgray_background()

Sets background color to dimgray

@spec enabled?() :: boolean()

Checks if ANSI coloring is supported and enabled on this machine.

This function simply reads the configuration value for :ansi_enabled in the :elixir application. The value is by default false unless Elixir can detect during startup that both stdout and stderr are terminals.

Encircled

Faint (decreased intensity), not widely supported

Sets alternative font 1

Sets alternative font 2

Sets alternative font 3

Sets alternative font 4

Sets alternative font 5

Sets alternative font 6

Sets alternative font 7

Sets alternative font 8

Sets alternative font 9

Link to this function

format(chardata, emit \\ enabled?())

Formats a chardata-like argument by converting named ANSI sequences into actual ANSI codes.

The named sequences are represented by atoms.

It will also append an IO.ANSI.reset/0 to the chardata when a conversion is performed. If you don't want this behaviour, use format_fragment/2.

An optional boolean parameter can be passed to enable or disable emitting actual ANSI codes. When false, no ANSI codes will emitted. By default checks if ANSI is enabled using the enabled?/0 function.

Examples

iex> IO.ANSI.format(["Hello, ", :red, :bright, "world!"], true)
[[[[[[], "Hello, "] | "\e[31m"] | "\e[1m"], "world!"] | "\e[0m"]
Link to this function

format_fragment(chardata, emit \\ enabled?())

Formats a chardata-like argument by converting named ANSI sequences into actual ANSI codes.

The named sequences are represented by atoms.

An optional boolean parameter can be passed to enable or disable emitting actual ANSI codes. When false, no ANSI codes will emitted. By default checks if ANSI is enabled using the enabled?/0 function.

Examples

iex> IO.ANSI.format_fragment([:bright, 'Word'], true)
[[[[[[] | "\e[1m"], 87], 111], 114], 100]

Framed

Sets foreground color to fuchsia

Link to this function

fuchsia_background()

Sets background color to fuchsia

Sets foreground color to gold

Link to this function

gold_background()

Sets background color to gold

Sets foreground color to goldenrod

Link to this function

goldenrod_background()

Sets background color to goldenrod

Sets foreground color to green

Link to this function

green_background()

Sets background color to green

Sets foreground color to greenyellow

Link to this function

greenyellow_background()

Sets background color to greenyellow

Sends cursor home

Sets foreground color to hotpink

Link to this function

hotpink_background()

Sets background color to hotpink

Image: Negative. Swap foreground and background

Italic: on. Not widely supported. Sometimes treated as inverse

Sets foreground color to khaki

Link to this function

khaki_background()

Sets background color to khaki

Sets foreground color to lightcyan

Link to this function

lightcyan_background()

Sets background color to lightcyan

Sets foreground color to lightgray

Link to this function

lightgray_background()

Sets background color to lightgray

Sets foreground color to lightyellow

Link to this function

lightyellow_background()

Sets background color to lightyellow

Sets foreground color to magenta

Link to this function

magenta_background()

Sets background color to magenta

Sets foreground color to mediumblue

Link to this function

mediumblue_background()

Sets background color to mediumblue

Sets foreground color to mistyrose

Link to this function

mistyrose_background()

Sets background color to mistyrose

Sets foreground color to moccasin

Link to this function

moccasin_background()

Sets background color to moccasin

Underline: None

Normal color or intensity

Link to this function

not_framed_encircled()

Not framed or encircled

Not italic

Link to this function

not_overlined()

Not overlined

Sets foreground color to olive

Link to this function

olive_background()

Sets background color to olive

Sets foreground color to orange

Link to this function

orange_background()

Sets background color to orange

Sets foreground color to orangered

Link to this function

orangered_background()

Sets background color to orangered

Overlined

Sets primary (default) font

Sets foreground color to red

Link to this function

red_background()

Sets background color to red

Resets all attributes

Image: Negative. Swap foreground and background

Sets foreground color to springgreen

Link to this function

springgreen_background()

Sets background color to springgreen

Sets foreground color to steelblue

Link to this function

steelblue_background()

Sets background color to steelblue

Underline: Single

Sets foreground color to white

Link to this function

white_background()

Sets background color to white

Sets foreground color to yellow

Link to this function

yellow_background()

Sets background color to yellow