primary_font()
Sets primary (default) font
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.
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
@type ansidata() :: ansilist() | ansicode() | binary()
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
@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
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.
iex> IO.ANSI.format(["Hello, ", :red, :bright, "world!"], true)
[[[[[[], "Hello, "] | "\e[31m"] | "\e[1m"], "world!"] | "\e[0m"]
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.
iex> IO.ANSI.format_fragment([:bright, 'Word'], true)
[[[[[[] | "\e[1m"], 87], 111], 114], 100]
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