@shell-shock/plugin-theme 0.3.28 → 0.3.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/dist/types/command.d.cts +14 -0
- package/dist/core/dist/types/command.d.cts.map +1 -1
- package/dist/core/dist/types/command.d.mts +14 -0
- package/dist/core/dist/types/command.d.mts.map +1 -1
- package/dist/helpers/ansi-utils.cjs +665 -133
- package/dist/helpers/ansi-utils.d.cts +1 -0
- package/dist/helpers/ansi-utils.d.cts.map +1 -1
- package/dist/helpers/ansi-utils.d.mts +1 -0
- package/dist/helpers/ansi-utils.d.mts.map +1 -1
- package/dist/helpers/ansi-utils.mjs +665 -133
- package/dist/helpers/ansi-utils.mjs.map +1 -1
- package/dist/themes/default.cjs +43 -43
- package/dist/themes/default.mjs +43 -43
- package/dist/themes/default.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -119,383 +119,727 @@ function buildThemeAnsiStyles(theme, wrapFn, convertFn) {
|
|
|
119
119
|
title: {
|
|
120
120
|
primary: {
|
|
121
121
|
open: wrapFn()(convertFn(theme.text.banner.title.primary)),
|
|
122
|
-
close: wrapAnsi16()(39)
|
|
122
|
+
close: wrapAnsi16()(39),
|
|
123
|
+
background: {
|
|
124
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.banner.title.primary)),
|
|
125
|
+
close: wrapAnsi16()(49)
|
|
126
|
+
}
|
|
123
127
|
},
|
|
124
128
|
secondary: {
|
|
125
129
|
open: wrapFn()(convertFn(theme.text.banner.title.secondary)),
|
|
126
|
-
close: wrapAnsi16()(39)
|
|
130
|
+
close: wrapAnsi16()(39),
|
|
131
|
+
background: {
|
|
132
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.banner.title.secondary)),
|
|
133
|
+
close: wrapAnsi16()(49)
|
|
134
|
+
}
|
|
127
135
|
},
|
|
128
136
|
tertiary: {
|
|
129
137
|
open: wrapFn()(convertFn(theme.text.banner.title.tertiary)),
|
|
130
|
-
close: wrapAnsi16()(39)
|
|
138
|
+
close: wrapAnsi16()(39),
|
|
139
|
+
background: {
|
|
140
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.banner.title.tertiary)),
|
|
141
|
+
close: wrapAnsi16()(49)
|
|
142
|
+
}
|
|
131
143
|
}
|
|
132
144
|
},
|
|
133
145
|
command: {
|
|
134
146
|
primary: {
|
|
135
147
|
open: wrapFn()(convertFn(theme.text.banner.command.primary)),
|
|
136
|
-
close: wrapAnsi16()(39)
|
|
148
|
+
close: wrapAnsi16()(39),
|
|
149
|
+
background: {
|
|
150
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.banner.command.primary)),
|
|
151
|
+
close: wrapAnsi16()(49)
|
|
152
|
+
}
|
|
137
153
|
},
|
|
138
154
|
secondary: {
|
|
139
155
|
open: wrapFn()(convertFn(theme.text.banner.command.secondary)),
|
|
140
|
-
close: wrapAnsi16()(39)
|
|
156
|
+
close: wrapAnsi16()(39),
|
|
157
|
+
background: {
|
|
158
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.banner.command.secondary)),
|
|
159
|
+
close: wrapAnsi16()(49)
|
|
160
|
+
}
|
|
141
161
|
},
|
|
142
162
|
tertiary: {
|
|
143
163
|
open: wrapFn()(convertFn(theme.text.banner.command.tertiary)),
|
|
144
|
-
close: wrapAnsi16()(39)
|
|
164
|
+
close: wrapAnsi16()(39),
|
|
165
|
+
background: {
|
|
166
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.banner.command.tertiary)),
|
|
167
|
+
close: wrapAnsi16()(49)
|
|
168
|
+
}
|
|
145
169
|
}
|
|
146
170
|
},
|
|
147
171
|
description: {
|
|
148
172
|
primary: {
|
|
149
173
|
open: wrapFn()(convertFn(theme.text.banner.description.primary)),
|
|
150
|
-
close: wrapAnsi16()(39)
|
|
174
|
+
close: wrapAnsi16()(39),
|
|
175
|
+
background: {
|
|
176
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.banner.description.primary)),
|
|
177
|
+
close: wrapAnsi16()(49)
|
|
178
|
+
}
|
|
151
179
|
},
|
|
152
180
|
secondary: {
|
|
153
181
|
open: wrapFn()(convertFn(theme.text.banner.description.secondary)),
|
|
154
|
-
close: wrapAnsi16()(39)
|
|
182
|
+
close: wrapAnsi16()(39),
|
|
183
|
+
background: {
|
|
184
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.banner.description.secondary)),
|
|
185
|
+
close: wrapAnsi16()(49)
|
|
186
|
+
}
|
|
155
187
|
},
|
|
156
188
|
tertiary: {
|
|
157
189
|
open: wrapFn()(convertFn(theme.text.banner.description.tertiary)),
|
|
158
|
-
close: wrapAnsi16()(39)
|
|
190
|
+
close: wrapAnsi16()(39),
|
|
191
|
+
background: {
|
|
192
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.banner.description.tertiary)),
|
|
193
|
+
close: wrapAnsi16()(49)
|
|
194
|
+
}
|
|
159
195
|
}
|
|
160
196
|
},
|
|
161
197
|
header: {
|
|
162
198
|
primary: {
|
|
163
199
|
open: wrapFn()(convertFn(theme.text.banner.header.primary)),
|
|
164
|
-
close: wrapAnsi16()(39)
|
|
200
|
+
close: wrapAnsi16()(39),
|
|
201
|
+
background: {
|
|
202
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.banner.header.primary)),
|
|
203
|
+
close: wrapAnsi16()(49)
|
|
204
|
+
}
|
|
165
205
|
},
|
|
166
206
|
secondary: {
|
|
167
207
|
open: wrapFn()(convertFn(theme.text.banner.header.secondary)),
|
|
168
|
-
close: wrapAnsi16()(39)
|
|
208
|
+
close: wrapAnsi16()(39),
|
|
209
|
+
background: {
|
|
210
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.banner.header.secondary)),
|
|
211
|
+
close: wrapAnsi16()(49)
|
|
212
|
+
}
|
|
169
213
|
},
|
|
170
214
|
tertiary: {
|
|
171
215
|
open: wrapFn()(convertFn(theme.text.banner.header.tertiary)),
|
|
172
|
-
close: wrapAnsi16()(39)
|
|
216
|
+
close: wrapAnsi16()(39),
|
|
217
|
+
background: {
|
|
218
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.banner.header.tertiary)),
|
|
219
|
+
close: wrapAnsi16()(49)
|
|
220
|
+
}
|
|
173
221
|
}
|
|
174
222
|
},
|
|
175
223
|
footer: {
|
|
176
224
|
primary: {
|
|
177
225
|
open: wrapFn()(convertFn(theme.text.banner.footer.primary)),
|
|
178
|
-
close: wrapAnsi16()(39)
|
|
226
|
+
close: wrapAnsi16()(39),
|
|
227
|
+
background: {
|
|
228
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.banner.footer.primary)),
|
|
229
|
+
close: wrapAnsi16()(49)
|
|
230
|
+
}
|
|
179
231
|
},
|
|
180
232
|
secondary: {
|
|
181
233
|
open: wrapFn()(convertFn(theme.text.banner.footer.secondary)),
|
|
182
|
-
close: wrapAnsi16()(39)
|
|
234
|
+
close: wrapAnsi16()(39),
|
|
235
|
+
background: {
|
|
236
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.banner.footer.secondary)),
|
|
237
|
+
close: wrapAnsi16()(49)
|
|
238
|
+
}
|
|
183
239
|
},
|
|
184
240
|
tertiary: {
|
|
185
241
|
open: wrapFn()(convertFn(theme.text.banner.footer.tertiary)),
|
|
186
|
-
close: wrapAnsi16()(39)
|
|
242
|
+
close: wrapAnsi16()(39),
|
|
243
|
+
background: {
|
|
244
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.banner.footer.tertiary)),
|
|
245
|
+
close: wrapAnsi16()(49)
|
|
246
|
+
}
|
|
187
247
|
}
|
|
188
248
|
},
|
|
189
249
|
link: {
|
|
190
250
|
primary: {
|
|
191
251
|
open: wrapFn()(convertFn(theme.text.banner.link.primary)),
|
|
192
|
-
close: wrapAnsi16()(39)
|
|
252
|
+
close: wrapAnsi16()(39),
|
|
253
|
+
background: {
|
|
254
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.banner.link.primary)),
|
|
255
|
+
close: wrapAnsi16()(49)
|
|
256
|
+
}
|
|
193
257
|
},
|
|
194
258
|
secondary: {
|
|
195
259
|
open: wrapFn()(convertFn(theme.text.banner.link.secondary)),
|
|
196
|
-
close: wrapAnsi16()(39)
|
|
260
|
+
close: wrapAnsi16()(39),
|
|
261
|
+
background: {
|
|
262
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.banner.link.secondary)),
|
|
263
|
+
close: wrapAnsi16()(49)
|
|
264
|
+
}
|
|
197
265
|
},
|
|
198
266
|
tertiary: {
|
|
199
267
|
open: wrapFn()(convertFn(theme.text.banner.link.tertiary)),
|
|
200
|
-
close: wrapAnsi16()(39)
|
|
268
|
+
close: wrapAnsi16()(39),
|
|
269
|
+
background: {
|
|
270
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.banner.link.tertiary)),
|
|
271
|
+
close: wrapAnsi16()(49)
|
|
272
|
+
}
|
|
201
273
|
}
|
|
202
274
|
}
|
|
203
275
|
},
|
|
204
276
|
heading: {
|
|
205
277
|
primary: {
|
|
206
278
|
open: wrapFn()(convertFn(theme.text.heading.primary)),
|
|
207
|
-
close: wrapAnsi16()(39)
|
|
279
|
+
close: wrapAnsi16()(39),
|
|
280
|
+
background: {
|
|
281
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.heading.primary)),
|
|
282
|
+
close: wrapAnsi16()(49)
|
|
283
|
+
}
|
|
208
284
|
},
|
|
209
285
|
secondary: {
|
|
210
286
|
open: wrapFn()(convertFn(theme.text.heading.secondary)),
|
|
211
|
-
close: wrapAnsi16()(39)
|
|
287
|
+
close: wrapAnsi16()(39),
|
|
288
|
+
background: {
|
|
289
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.heading.secondary)),
|
|
290
|
+
close: wrapAnsi16()(49)
|
|
291
|
+
}
|
|
212
292
|
},
|
|
213
293
|
tertiary: {
|
|
214
294
|
open: wrapFn()(convertFn(theme.text.heading.tertiary)),
|
|
215
|
-
close: wrapAnsi16()(39)
|
|
295
|
+
close: wrapAnsi16()(39),
|
|
296
|
+
background: {
|
|
297
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.heading.tertiary)),
|
|
298
|
+
close: wrapAnsi16()(49)
|
|
299
|
+
}
|
|
216
300
|
}
|
|
217
301
|
},
|
|
218
302
|
body: {
|
|
219
303
|
primary: {
|
|
220
304
|
open: wrapFn()(convertFn(theme.text.body.primary)),
|
|
221
|
-
close: wrapAnsi16()(39)
|
|
305
|
+
close: wrapAnsi16()(39),
|
|
306
|
+
background: {
|
|
307
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.body.primary)),
|
|
308
|
+
close: wrapAnsi16()(49)
|
|
309
|
+
}
|
|
222
310
|
},
|
|
223
311
|
secondary: {
|
|
224
312
|
open: wrapFn()(convertFn(theme.text.body.secondary)),
|
|
225
|
-
close: wrapAnsi16()(39)
|
|
313
|
+
close: wrapAnsi16()(39),
|
|
314
|
+
background: {
|
|
315
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.body.secondary)),
|
|
316
|
+
close: wrapAnsi16()(49)
|
|
317
|
+
}
|
|
226
318
|
},
|
|
227
319
|
tertiary: {
|
|
228
320
|
open: wrapFn()(convertFn(theme.text.body.tertiary)),
|
|
229
|
-
close: wrapAnsi16()(39)
|
|
321
|
+
close: wrapAnsi16()(39),
|
|
322
|
+
background: {
|
|
323
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.body.tertiary)),
|
|
324
|
+
close: wrapAnsi16()(49)
|
|
325
|
+
}
|
|
230
326
|
},
|
|
231
327
|
link: {
|
|
232
328
|
open: wrapFn()(convertFn(theme.text.body.link)),
|
|
233
|
-
close: wrapAnsi16()(39)
|
|
329
|
+
close: wrapAnsi16()(39),
|
|
330
|
+
background: {
|
|
331
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.body.link)),
|
|
332
|
+
close: wrapAnsi16()(49)
|
|
333
|
+
}
|
|
234
334
|
}
|
|
235
335
|
},
|
|
236
336
|
message: {
|
|
237
337
|
description: {
|
|
238
338
|
help: {
|
|
239
339
|
open: wrapFn()(convertFn(theme.text.message.description.help)),
|
|
240
|
-
close: wrapAnsi16()(39)
|
|
340
|
+
close: wrapAnsi16()(39),
|
|
341
|
+
background: {
|
|
342
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.description.help)),
|
|
343
|
+
close: wrapAnsi16()(49)
|
|
344
|
+
}
|
|
241
345
|
},
|
|
242
346
|
success: {
|
|
243
347
|
open: wrapFn()(convertFn(theme.text.message.description.success)),
|
|
244
|
-
close: wrapAnsi16()(39)
|
|
348
|
+
close: wrapAnsi16()(39),
|
|
349
|
+
background: {
|
|
350
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.description.success)),
|
|
351
|
+
close: wrapAnsi16()(49)
|
|
352
|
+
}
|
|
245
353
|
},
|
|
246
354
|
info: {
|
|
247
355
|
open: wrapFn()(convertFn(theme.text.message.description.info)),
|
|
248
|
-
close: wrapAnsi16()(39)
|
|
356
|
+
close: wrapAnsi16()(39),
|
|
357
|
+
background: {
|
|
358
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.description.info)),
|
|
359
|
+
close: wrapAnsi16()(49)
|
|
360
|
+
}
|
|
249
361
|
},
|
|
250
362
|
debug: {
|
|
251
363
|
open: wrapFn()(convertFn(theme.text.message.description.debug)),
|
|
252
|
-
close: wrapAnsi16()(39)
|
|
364
|
+
close: wrapAnsi16()(39),
|
|
365
|
+
background: {
|
|
366
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.description.debug)),
|
|
367
|
+
close: wrapAnsi16()(49)
|
|
368
|
+
}
|
|
253
369
|
},
|
|
254
370
|
warning: {
|
|
255
371
|
open: wrapFn()(convertFn(theme.text.message.description.warning)),
|
|
256
|
-
close: wrapAnsi16()(39)
|
|
372
|
+
close: wrapAnsi16()(39),
|
|
373
|
+
background: {
|
|
374
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.description.warning)),
|
|
375
|
+
close: wrapAnsi16()(49)
|
|
376
|
+
}
|
|
257
377
|
},
|
|
258
378
|
danger: {
|
|
259
379
|
open: wrapFn()(convertFn(theme.text.message.description.danger)),
|
|
260
|
-
close: wrapAnsi16()(39)
|
|
380
|
+
close: wrapAnsi16()(39),
|
|
381
|
+
background: {
|
|
382
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.description.danger)),
|
|
383
|
+
close: wrapAnsi16()(49)
|
|
384
|
+
}
|
|
261
385
|
},
|
|
262
386
|
error: {
|
|
263
387
|
open: wrapFn()(convertFn(theme.text.message.description.error)),
|
|
264
|
-
close: wrapAnsi16()(39)
|
|
388
|
+
close: wrapAnsi16()(39),
|
|
389
|
+
background: {
|
|
390
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.description.error)),
|
|
391
|
+
close: wrapAnsi16()(49)
|
|
392
|
+
}
|
|
265
393
|
}
|
|
266
394
|
},
|
|
267
395
|
link: {
|
|
268
396
|
help: {
|
|
269
397
|
open: wrapFn()(convertFn(theme.text.message.link.help)),
|
|
270
|
-
close: wrapAnsi16()(39)
|
|
398
|
+
close: wrapAnsi16()(39),
|
|
399
|
+
background: {
|
|
400
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.link.help)),
|
|
401
|
+
close: wrapAnsi16()(49)
|
|
402
|
+
}
|
|
271
403
|
},
|
|
272
404
|
success: {
|
|
273
405
|
open: wrapFn()(convertFn(theme.text.message.link.success)),
|
|
274
|
-
close: wrapAnsi16()(39)
|
|
406
|
+
close: wrapAnsi16()(39),
|
|
407
|
+
background: {
|
|
408
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.link.success)),
|
|
409
|
+
close: wrapAnsi16()(49)
|
|
410
|
+
}
|
|
275
411
|
},
|
|
276
412
|
info: {
|
|
277
413
|
open: wrapFn()(convertFn(theme.text.message.link.info)),
|
|
278
|
-
close: wrapAnsi16()(39)
|
|
414
|
+
close: wrapAnsi16()(39),
|
|
415
|
+
background: {
|
|
416
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.link.info)),
|
|
417
|
+
close: wrapAnsi16()(49)
|
|
418
|
+
}
|
|
279
419
|
},
|
|
280
420
|
debug: {
|
|
281
421
|
open: wrapFn()(convertFn(theme.text.message.link.debug)),
|
|
282
|
-
close: wrapAnsi16()(39)
|
|
422
|
+
close: wrapAnsi16()(39),
|
|
423
|
+
background: {
|
|
424
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.link.debug)),
|
|
425
|
+
close: wrapAnsi16()(49)
|
|
426
|
+
}
|
|
283
427
|
},
|
|
284
428
|
warning: {
|
|
285
429
|
open: wrapFn()(convertFn(theme.text.message.link.warning)),
|
|
286
|
-
close: wrapAnsi16()(39)
|
|
430
|
+
close: wrapAnsi16()(39),
|
|
431
|
+
background: {
|
|
432
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.link.warning)),
|
|
433
|
+
close: wrapAnsi16()(49)
|
|
434
|
+
}
|
|
287
435
|
},
|
|
288
436
|
danger: {
|
|
289
437
|
open: wrapFn()(convertFn(theme.text.message.link.danger)),
|
|
290
|
-
close: wrapAnsi16()(39)
|
|
438
|
+
close: wrapAnsi16()(39),
|
|
439
|
+
background: {
|
|
440
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.link.danger)),
|
|
441
|
+
close: wrapAnsi16()(49)
|
|
442
|
+
}
|
|
291
443
|
},
|
|
292
444
|
error: {
|
|
293
445
|
open: wrapFn()(convertFn(theme.text.message.link.error)),
|
|
294
|
-
close: wrapAnsi16()(39)
|
|
446
|
+
close: wrapAnsi16()(39),
|
|
447
|
+
background: {
|
|
448
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.link.error)),
|
|
449
|
+
close: wrapAnsi16()(49)
|
|
450
|
+
}
|
|
295
451
|
}
|
|
296
452
|
},
|
|
297
453
|
header: {
|
|
298
454
|
help: {
|
|
299
455
|
open: wrapFn()(convertFn(theme.text.message.header.help)),
|
|
300
|
-
close: wrapAnsi16()(39)
|
|
456
|
+
close: wrapAnsi16()(39),
|
|
457
|
+
background: {
|
|
458
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.header.help)),
|
|
459
|
+
close: wrapAnsi16()(49)
|
|
460
|
+
}
|
|
301
461
|
},
|
|
302
462
|
success: {
|
|
303
463
|
open: wrapFn()(convertFn(theme.text.message.header.success)),
|
|
304
|
-
close: wrapAnsi16()(39)
|
|
464
|
+
close: wrapAnsi16()(39),
|
|
465
|
+
background: {
|
|
466
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.header.success)),
|
|
467
|
+
close: wrapAnsi16()(49)
|
|
468
|
+
}
|
|
305
469
|
},
|
|
306
470
|
info: {
|
|
307
471
|
open: wrapFn()(convertFn(theme.text.message.header.info)),
|
|
308
|
-
close: wrapAnsi16()(39)
|
|
472
|
+
close: wrapAnsi16()(39),
|
|
473
|
+
background: {
|
|
474
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.header.info)),
|
|
475
|
+
close: wrapAnsi16()(49)
|
|
476
|
+
}
|
|
309
477
|
},
|
|
310
478
|
debug: {
|
|
311
479
|
open: wrapFn()(convertFn(theme.text.message.header.debug)),
|
|
312
|
-
close: wrapAnsi16()(39)
|
|
480
|
+
close: wrapAnsi16()(39),
|
|
481
|
+
background: {
|
|
482
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.header.debug)),
|
|
483
|
+
close: wrapAnsi16()(49)
|
|
484
|
+
}
|
|
313
485
|
},
|
|
314
486
|
warning: {
|
|
315
487
|
open: wrapFn()(convertFn(theme.text.message.header.warning)),
|
|
316
|
-
close: wrapAnsi16()(39)
|
|
488
|
+
close: wrapAnsi16()(39),
|
|
489
|
+
background: {
|
|
490
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.header.warning)),
|
|
491
|
+
close: wrapAnsi16()(49)
|
|
492
|
+
}
|
|
317
493
|
},
|
|
318
494
|
danger: {
|
|
319
495
|
open: wrapFn()(convertFn(theme.text.message.header.danger)),
|
|
320
|
-
close: wrapAnsi16()(39)
|
|
496
|
+
close: wrapAnsi16()(39),
|
|
497
|
+
background: {
|
|
498
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.header.danger)),
|
|
499
|
+
close: wrapAnsi16()(49)
|
|
500
|
+
}
|
|
321
501
|
},
|
|
322
502
|
error: {
|
|
323
503
|
open: wrapFn()(convertFn(theme.text.message.header.error)),
|
|
324
|
-
close: wrapAnsi16()(39)
|
|
504
|
+
close: wrapAnsi16()(39),
|
|
505
|
+
background: {
|
|
506
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.header.error)),
|
|
507
|
+
close: wrapAnsi16()(49)
|
|
508
|
+
}
|
|
325
509
|
}
|
|
326
510
|
},
|
|
327
511
|
footer: {
|
|
328
512
|
help: {
|
|
329
513
|
open: wrapFn()(convertFn(theme.text.message.footer.help)),
|
|
330
|
-
close: wrapAnsi16()(39)
|
|
514
|
+
close: wrapAnsi16()(39),
|
|
515
|
+
background: {
|
|
516
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.footer.help)),
|
|
517
|
+
close: wrapAnsi16()(49)
|
|
518
|
+
}
|
|
331
519
|
},
|
|
332
520
|
success: {
|
|
333
521
|
open: wrapFn()(convertFn(theme.text.message.footer.success)),
|
|
334
|
-
close: wrapAnsi16()(39)
|
|
522
|
+
close: wrapAnsi16()(39),
|
|
523
|
+
background: {
|
|
524
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.footer.success)),
|
|
525
|
+
close: wrapAnsi16()(49)
|
|
526
|
+
}
|
|
335
527
|
},
|
|
336
528
|
info: {
|
|
337
529
|
open: wrapFn()(convertFn(theme.text.message.footer.info)),
|
|
338
|
-
close: wrapAnsi16()(39)
|
|
530
|
+
close: wrapAnsi16()(39),
|
|
531
|
+
background: {
|
|
532
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.footer.info)),
|
|
533
|
+
close: wrapAnsi16()(49)
|
|
534
|
+
}
|
|
339
535
|
},
|
|
340
536
|
debug: {
|
|
341
537
|
open: wrapFn()(convertFn(theme.text.message.footer.debug)),
|
|
342
|
-
close: wrapAnsi16()(39)
|
|
538
|
+
close: wrapAnsi16()(39),
|
|
539
|
+
background: {
|
|
540
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.footer.debug)),
|
|
541
|
+
close: wrapAnsi16()(49)
|
|
542
|
+
}
|
|
343
543
|
},
|
|
344
544
|
warning: {
|
|
345
545
|
open: wrapFn()(convertFn(theme.text.message.footer.warning)),
|
|
346
|
-
close: wrapAnsi16()(39)
|
|
546
|
+
close: wrapAnsi16()(39),
|
|
547
|
+
background: {
|
|
548
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.footer.warning)),
|
|
549
|
+
close: wrapAnsi16()(49)
|
|
550
|
+
}
|
|
347
551
|
},
|
|
348
552
|
danger: {
|
|
349
553
|
open: wrapFn()(convertFn(theme.text.message.footer.danger)),
|
|
350
|
-
close: wrapAnsi16()(39)
|
|
554
|
+
close: wrapAnsi16()(39),
|
|
555
|
+
background: {
|
|
556
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.footer.danger)),
|
|
557
|
+
close: wrapAnsi16()(49)
|
|
558
|
+
}
|
|
351
559
|
},
|
|
352
560
|
error: {
|
|
353
561
|
open: wrapFn()(convertFn(theme.text.message.footer.error)),
|
|
354
|
-
close: wrapAnsi16()(39)
|
|
562
|
+
close: wrapAnsi16()(39),
|
|
563
|
+
background: {
|
|
564
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.message.footer.error)),
|
|
565
|
+
close: wrapAnsi16()(49)
|
|
566
|
+
}
|
|
355
567
|
}
|
|
356
568
|
}
|
|
357
569
|
},
|
|
358
570
|
usage: {
|
|
359
571
|
bin: {
|
|
360
572
|
open: wrapFn()(convertFn(theme.text.usage.bin)),
|
|
361
|
-
close: wrapAnsi16()(39)
|
|
573
|
+
close: wrapAnsi16()(39),
|
|
574
|
+
background: {
|
|
575
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.usage.bin)),
|
|
576
|
+
close: wrapAnsi16()(49)
|
|
577
|
+
}
|
|
362
578
|
},
|
|
363
579
|
command: {
|
|
364
580
|
open: wrapFn()(convertFn(theme.text.usage.command)),
|
|
365
|
-
close: wrapAnsi16()(39)
|
|
581
|
+
close: wrapAnsi16()(39),
|
|
582
|
+
background: {
|
|
583
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.usage.command)),
|
|
584
|
+
close: wrapAnsi16()(49)
|
|
585
|
+
}
|
|
366
586
|
},
|
|
367
587
|
dynamic: {
|
|
368
588
|
open: wrapFn()(convertFn(theme.text.usage.dynamic)),
|
|
369
|
-
close: wrapAnsi16()(39)
|
|
589
|
+
close: wrapAnsi16()(39),
|
|
590
|
+
background: {
|
|
591
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.usage.dynamic)),
|
|
592
|
+
close: wrapAnsi16()(49)
|
|
593
|
+
}
|
|
370
594
|
},
|
|
371
595
|
options: {
|
|
372
596
|
open: wrapFn()(convertFn(theme.text.usage.options)),
|
|
373
|
-
close: wrapAnsi16()(39)
|
|
597
|
+
close: wrapAnsi16()(39),
|
|
598
|
+
background: {
|
|
599
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.usage.options)),
|
|
600
|
+
close: wrapAnsi16()(49)
|
|
601
|
+
}
|
|
374
602
|
},
|
|
375
603
|
args: {
|
|
376
604
|
open: wrapFn()(convertFn(theme.text.usage.args)),
|
|
377
|
-
close: wrapAnsi16()(39)
|
|
605
|
+
close: wrapAnsi16()(39),
|
|
606
|
+
background: {
|
|
607
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.usage.args)),
|
|
608
|
+
close: wrapAnsi16()(49)
|
|
609
|
+
}
|
|
378
610
|
},
|
|
379
611
|
description: {
|
|
380
612
|
open: wrapFn()(convertFn(theme.text.usage.description)),
|
|
381
|
-
close: wrapAnsi16()(39)
|
|
613
|
+
close: wrapAnsi16()(39),
|
|
614
|
+
background: {
|
|
615
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.usage.description)),
|
|
616
|
+
close: wrapAnsi16()(49)
|
|
617
|
+
}
|
|
382
618
|
}
|
|
383
619
|
},
|
|
384
620
|
prompt: {
|
|
385
621
|
icon: {
|
|
386
622
|
active: {
|
|
387
623
|
open: wrapFn()(convertFn(theme.text.prompt.icon.active)),
|
|
388
|
-
close: wrapAnsi16()(39)
|
|
624
|
+
close: wrapAnsi16()(39),
|
|
625
|
+
background: {
|
|
626
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.icon.active)),
|
|
627
|
+
close: wrapAnsi16()(49)
|
|
628
|
+
}
|
|
389
629
|
},
|
|
390
630
|
warning: {
|
|
391
631
|
open: wrapFn()(convertFn(theme.text.prompt.icon.warning)),
|
|
392
|
-
close: wrapAnsi16()(39)
|
|
632
|
+
close: wrapAnsi16()(39),
|
|
633
|
+
background: {
|
|
634
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.icon.warning)),
|
|
635
|
+
close: wrapAnsi16()(49)
|
|
636
|
+
}
|
|
393
637
|
},
|
|
394
638
|
error: {
|
|
395
639
|
open: wrapFn()(convertFn(theme.text.prompt.icon.error)),
|
|
396
|
-
close: wrapAnsi16()(39)
|
|
640
|
+
close: wrapAnsi16()(39),
|
|
641
|
+
background: {
|
|
642
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.icon.error)),
|
|
643
|
+
close: wrapAnsi16()(49)
|
|
644
|
+
}
|
|
397
645
|
},
|
|
398
646
|
submitted: {
|
|
399
647
|
open: wrapFn()(convertFn(theme.text.prompt.icon.submitted)),
|
|
400
|
-
close: wrapAnsi16()(39)
|
|
648
|
+
close: wrapAnsi16()(39),
|
|
649
|
+
background: {
|
|
650
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.icon.submitted)),
|
|
651
|
+
close: wrapAnsi16()(49)
|
|
652
|
+
}
|
|
401
653
|
},
|
|
402
654
|
cancelled: {
|
|
403
655
|
open: wrapFn()(convertFn(theme.text.prompt.icon.cancelled)),
|
|
404
|
-
close: wrapAnsi16()(39)
|
|
656
|
+
close: wrapAnsi16()(39),
|
|
657
|
+
background: {
|
|
658
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.icon.cancelled)),
|
|
659
|
+
close: wrapAnsi16()(49)
|
|
660
|
+
}
|
|
405
661
|
},
|
|
406
662
|
disabled: {
|
|
407
663
|
open: wrapFn()(convertFn(theme.text.prompt.icon.disabled)),
|
|
408
|
-
close: wrapAnsi16()(39)
|
|
664
|
+
close: wrapAnsi16()(39),
|
|
665
|
+
background: {
|
|
666
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.icon.disabled)),
|
|
667
|
+
close: wrapAnsi16()(49)
|
|
668
|
+
}
|
|
409
669
|
}
|
|
410
670
|
},
|
|
411
671
|
message: {
|
|
412
672
|
active: {
|
|
413
673
|
open: wrapFn()(convertFn(theme.text.prompt.message.active)),
|
|
414
|
-
close: wrapAnsi16()(39)
|
|
674
|
+
close: wrapAnsi16()(39),
|
|
675
|
+
background: {
|
|
676
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.message.active)),
|
|
677
|
+
close: wrapAnsi16()(49)
|
|
678
|
+
}
|
|
415
679
|
},
|
|
416
680
|
warning: {
|
|
417
681
|
open: wrapFn()(convertFn(theme.text.prompt.message.warning)),
|
|
418
|
-
close: wrapAnsi16()(39)
|
|
682
|
+
close: wrapAnsi16()(39),
|
|
683
|
+
background: {
|
|
684
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.message.warning)),
|
|
685
|
+
close: wrapAnsi16()(49)
|
|
686
|
+
}
|
|
419
687
|
},
|
|
420
688
|
error: {
|
|
421
689
|
open: wrapFn()(convertFn(theme.text.prompt.message.error)),
|
|
422
|
-
close: wrapAnsi16()(39)
|
|
690
|
+
close: wrapAnsi16()(39),
|
|
691
|
+
background: {
|
|
692
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.message.error)),
|
|
693
|
+
close: wrapAnsi16()(49)
|
|
694
|
+
}
|
|
423
695
|
},
|
|
424
696
|
submitted: {
|
|
425
697
|
open: wrapFn()(convertFn(theme.text.prompt.message.submitted)),
|
|
426
|
-
close: wrapAnsi16()(39)
|
|
698
|
+
close: wrapAnsi16()(39),
|
|
699
|
+
background: {
|
|
700
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.message.submitted)),
|
|
701
|
+
close: wrapAnsi16()(49)
|
|
702
|
+
}
|
|
427
703
|
},
|
|
428
704
|
cancelled: {
|
|
429
705
|
open: wrapFn()(convertFn(theme.text.prompt.message.cancelled)),
|
|
430
|
-
close: wrapAnsi16()(39)
|
|
706
|
+
close: wrapAnsi16()(39),
|
|
707
|
+
background: {
|
|
708
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.message.cancelled)),
|
|
709
|
+
close: wrapAnsi16()(49)
|
|
710
|
+
}
|
|
431
711
|
},
|
|
432
712
|
disabled: {
|
|
433
713
|
open: wrapFn()(convertFn(theme.text.prompt.message.disabled)),
|
|
434
|
-
close: wrapAnsi16()(39)
|
|
714
|
+
close: wrapAnsi16()(39),
|
|
715
|
+
background: {
|
|
716
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.message.disabled)),
|
|
717
|
+
close: wrapAnsi16()(49)
|
|
718
|
+
}
|
|
435
719
|
}
|
|
436
720
|
},
|
|
437
721
|
input: {
|
|
438
722
|
active: {
|
|
439
723
|
open: wrapFn()(convertFn(theme.text.prompt.input.active)),
|
|
440
|
-
close: wrapAnsi16()(39)
|
|
724
|
+
close: wrapAnsi16()(39),
|
|
725
|
+
background: {
|
|
726
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.input.active)),
|
|
727
|
+
close: wrapAnsi16()(49)
|
|
728
|
+
}
|
|
441
729
|
},
|
|
442
730
|
inactive: {
|
|
443
731
|
open: wrapFn()(convertFn(theme.text.prompt.input.inactive)),
|
|
444
|
-
close: wrapAnsi16()(39)
|
|
732
|
+
close: wrapAnsi16()(39),
|
|
733
|
+
background: {
|
|
734
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.input.inactive)),
|
|
735
|
+
close: wrapAnsi16()(49)
|
|
736
|
+
}
|
|
445
737
|
},
|
|
446
738
|
warning: {
|
|
447
739
|
open: wrapFn()(convertFn(theme.text.prompt.input.warning)),
|
|
448
|
-
close: wrapAnsi16()(39)
|
|
740
|
+
close: wrapAnsi16()(39),
|
|
741
|
+
background: {
|
|
742
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.input.warning)),
|
|
743
|
+
close: wrapAnsi16()(49)
|
|
744
|
+
}
|
|
449
745
|
},
|
|
450
746
|
error: {
|
|
451
747
|
open: wrapFn()(convertFn(theme.text.prompt.input.error)),
|
|
452
|
-
close: wrapAnsi16()(39)
|
|
748
|
+
close: wrapAnsi16()(39),
|
|
749
|
+
background: {
|
|
750
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.input.error)),
|
|
751
|
+
close: wrapAnsi16()(49)
|
|
752
|
+
}
|
|
453
753
|
},
|
|
454
754
|
submitted: {
|
|
455
755
|
open: wrapFn()(convertFn(theme.text.prompt.input.submitted)),
|
|
456
|
-
close: wrapAnsi16()(39)
|
|
756
|
+
close: wrapAnsi16()(39),
|
|
757
|
+
background: {
|
|
758
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.input.submitted)),
|
|
759
|
+
close: wrapAnsi16()(49)
|
|
760
|
+
}
|
|
457
761
|
},
|
|
458
762
|
cancelled: {
|
|
459
763
|
open: wrapFn()(convertFn(theme.text.prompt.input.cancelled)),
|
|
460
|
-
close: wrapAnsi16()(39)
|
|
764
|
+
close: wrapAnsi16()(39),
|
|
765
|
+
background: {
|
|
766
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.input.cancelled)),
|
|
767
|
+
close: wrapAnsi16()(49)
|
|
768
|
+
}
|
|
461
769
|
},
|
|
462
770
|
disabled: {
|
|
463
771
|
open: wrapFn()(convertFn(theme.text.prompt.input.disabled)),
|
|
464
|
-
close: wrapAnsi16()(39)
|
|
772
|
+
close: wrapAnsi16()(39),
|
|
773
|
+
background: {
|
|
774
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.input.disabled)),
|
|
775
|
+
close: wrapAnsi16()(49)
|
|
776
|
+
}
|
|
465
777
|
},
|
|
466
778
|
placeholder: {
|
|
467
779
|
open: wrapFn()(convertFn(theme.text.prompt.input.placeholder)),
|
|
468
|
-
close: wrapAnsi16()(39)
|
|
780
|
+
close: wrapAnsi16()(39),
|
|
781
|
+
background: {
|
|
782
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.input.placeholder)),
|
|
783
|
+
close: wrapAnsi16()(49)
|
|
784
|
+
}
|
|
469
785
|
}
|
|
470
786
|
},
|
|
471
787
|
description: {
|
|
472
788
|
active: {
|
|
473
789
|
open: wrapFn()(convertFn(theme.text.prompt.description.active)),
|
|
474
|
-
close: wrapAnsi16()(39)
|
|
790
|
+
close: wrapAnsi16()(39),
|
|
791
|
+
background: {
|
|
792
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.description.active)),
|
|
793
|
+
close: wrapAnsi16()(49)
|
|
794
|
+
}
|
|
475
795
|
},
|
|
476
796
|
inactive: {
|
|
477
797
|
open: wrapFn()(convertFn(theme.text.prompt.description.inactive)),
|
|
478
|
-
close: wrapAnsi16()(39)
|
|
798
|
+
close: wrapAnsi16()(39),
|
|
799
|
+
background: {
|
|
800
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.description.inactive)),
|
|
801
|
+
close: wrapAnsi16()(49)
|
|
802
|
+
}
|
|
479
803
|
},
|
|
480
804
|
warning: {
|
|
481
805
|
open: wrapFn()(convertFn(theme.text.prompt.description.warning)),
|
|
482
|
-
close: wrapAnsi16()(39)
|
|
806
|
+
close: wrapAnsi16()(39),
|
|
807
|
+
background: {
|
|
808
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.description.warning)),
|
|
809
|
+
close: wrapAnsi16()(49)
|
|
810
|
+
}
|
|
483
811
|
},
|
|
484
812
|
error: {
|
|
485
813
|
open: wrapFn()(convertFn(theme.text.prompt.description.error)),
|
|
486
|
-
close: wrapAnsi16()(39)
|
|
814
|
+
close: wrapAnsi16()(39),
|
|
815
|
+
background: {
|
|
816
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.description.error)),
|
|
817
|
+
close: wrapAnsi16()(49)
|
|
818
|
+
}
|
|
487
819
|
},
|
|
488
820
|
submitted: {
|
|
489
821
|
open: wrapFn()(convertFn(theme.text.prompt.description.submitted)),
|
|
490
|
-
close: wrapAnsi16()(39)
|
|
822
|
+
close: wrapAnsi16()(39),
|
|
823
|
+
background: {
|
|
824
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.description.submitted)),
|
|
825
|
+
close: wrapAnsi16()(49)
|
|
826
|
+
}
|
|
491
827
|
},
|
|
492
828
|
cancelled: {
|
|
493
829
|
open: wrapFn()(convertFn(theme.text.prompt.description.cancelled)),
|
|
494
|
-
close: wrapAnsi16()(39)
|
|
830
|
+
close: wrapAnsi16()(39),
|
|
831
|
+
background: {
|
|
832
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.description.cancelled)),
|
|
833
|
+
close: wrapAnsi16()(49)
|
|
834
|
+
}
|
|
495
835
|
},
|
|
496
836
|
disabled: {
|
|
497
837
|
open: wrapFn()(convertFn(theme.text.prompt.description.disabled)),
|
|
498
|
-
close: wrapAnsi16()(39)
|
|
838
|
+
close: wrapAnsi16()(39),
|
|
839
|
+
background: {
|
|
840
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.prompt.description.disabled)),
|
|
841
|
+
close: wrapAnsi16()(49)
|
|
842
|
+
}
|
|
499
843
|
}
|
|
500
844
|
}
|
|
501
845
|
},
|
|
@@ -503,53 +847,101 @@ function buildThemeAnsiStyles(theme, wrapFn, convertFn) {
|
|
|
503
847
|
icon: {
|
|
504
848
|
active: {
|
|
505
849
|
open: wrapFn()(convertFn(theme.text.spinner.icon.active)),
|
|
506
|
-
close: wrapAnsi16()(39)
|
|
850
|
+
close: wrapAnsi16()(39),
|
|
851
|
+
background: {
|
|
852
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.spinner.icon.active)),
|
|
853
|
+
close: wrapAnsi16()(49)
|
|
854
|
+
}
|
|
507
855
|
},
|
|
508
856
|
warning: {
|
|
509
857
|
open: wrapFn()(convertFn(theme.text.spinner.icon.warning)),
|
|
510
|
-
close: wrapAnsi16()(39)
|
|
858
|
+
close: wrapAnsi16()(39),
|
|
859
|
+
background: {
|
|
860
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.spinner.icon.warning)),
|
|
861
|
+
close: wrapAnsi16()(49)
|
|
862
|
+
}
|
|
511
863
|
},
|
|
512
864
|
error: {
|
|
513
865
|
open: wrapFn()(convertFn(theme.text.spinner.icon.error)),
|
|
514
|
-
close: wrapAnsi16()(39)
|
|
866
|
+
close: wrapAnsi16()(39),
|
|
867
|
+
background: {
|
|
868
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.spinner.icon.error)),
|
|
869
|
+
close: wrapAnsi16()(49)
|
|
870
|
+
}
|
|
515
871
|
},
|
|
516
872
|
success: {
|
|
517
873
|
open: wrapFn()(convertFn(theme.text.spinner.icon.success)),
|
|
518
|
-
close: wrapAnsi16()(39)
|
|
874
|
+
close: wrapAnsi16()(39),
|
|
875
|
+
background: {
|
|
876
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.spinner.icon.success)),
|
|
877
|
+
close: wrapAnsi16()(49)
|
|
878
|
+
}
|
|
519
879
|
},
|
|
520
880
|
info: {
|
|
521
881
|
open: wrapFn()(convertFn(theme.text.spinner.icon.info)),
|
|
522
|
-
close: wrapAnsi16()(39)
|
|
882
|
+
close: wrapAnsi16()(39),
|
|
883
|
+
background: {
|
|
884
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.spinner.icon.info)),
|
|
885
|
+
close: wrapAnsi16()(49)
|
|
886
|
+
}
|
|
523
887
|
},
|
|
524
888
|
help: {
|
|
525
889
|
open: wrapFn()(convertFn(theme.text.spinner.icon.help)),
|
|
526
|
-
close: wrapAnsi16()(39)
|
|
890
|
+
close: wrapAnsi16()(39),
|
|
891
|
+
background: {
|
|
892
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.spinner.icon.help)),
|
|
893
|
+
close: wrapAnsi16()(49)
|
|
894
|
+
}
|
|
527
895
|
}
|
|
528
896
|
},
|
|
529
897
|
message: {
|
|
530
898
|
active: {
|
|
531
899
|
open: wrapFn()(convertFn(theme.text.spinner.message.active)),
|
|
532
|
-
close: wrapAnsi16()(39)
|
|
900
|
+
close: wrapAnsi16()(39),
|
|
901
|
+
background: {
|
|
902
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.spinner.message.active)),
|
|
903
|
+
close: wrapAnsi16()(49)
|
|
904
|
+
}
|
|
533
905
|
},
|
|
534
906
|
warning: {
|
|
535
907
|
open: wrapFn()(convertFn(theme.text.spinner.message.warning)),
|
|
536
|
-
close: wrapAnsi16()(39)
|
|
908
|
+
close: wrapAnsi16()(39),
|
|
909
|
+
background: {
|
|
910
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.spinner.message.warning)),
|
|
911
|
+
close: wrapAnsi16()(49)
|
|
912
|
+
}
|
|
537
913
|
},
|
|
538
914
|
error: {
|
|
539
915
|
open: wrapFn()(convertFn(theme.text.spinner.message.error)),
|
|
540
|
-
close: wrapAnsi16()(39)
|
|
916
|
+
close: wrapAnsi16()(39),
|
|
917
|
+
background: {
|
|
918
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.spinner.message.error)),
|
|
919
|
+
close: wrapAnsi16()(49)
|
|
920
|
+
}
|
|
541
921
|
},
|
|
542
922
|
success: {
|
|
543
923
|
open: wrapFn()(convertFn(theme.text.spinner.message.success)),
|
|
544
|
-
close: wrapAnsi16()(39)
|
|
924
|
+
close: wrapAnsi16()(39),
|
|
925
|
+
background: {
|
|
926
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.spinner.message.success)),
|
|
927
|
+
close: wrapAnsi16()(49)
|
|
928
|
+
}
|
|
545
929
|
},
|
|
546
930
|
info: {
|
|
547
931
|
open: wrapFn()(convertFn(theme.text.spinner.message.info)),
|
|
548
|
-
close: wrapAnsi16()(39)
|
|
932
|
+
close: wrapAnsi16()(39),
|
|
933
|
+
background: {
|
|
934
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.spinner.message.info)),
|
|
935
|
+
close: wrapAnsi16()(49)
|
|
936
|
+
}
|
|
549
937
|
},
|
|
550
938
|
help: {
|
|
551
939
|
open: wrapFn()(convertFn(theme.text.spinner.message.help)),
|
|
552
|
-
close: wrapAnsi16()(39)
|
|
940
|
+
close: wrapAnsi16()(39),
|
|
941
|
+
background: {
|
|
942
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.text.spinner.message.help)),
|
|
943
|
+
close: wrapAnsi16()(49)
|
|
944
|
+
}
|
|
553
945
|
}
|
|
554
946
|
}
|
|
555
947
|
}
|
|
@@ -559,29 +951,53 @@ function buildThemeAnsiStyles(theme, wrapFn, convertFn) {
|
|
|
559
951
|
divider: {
|
|
560
952
|
primary: {
|
|
561
953
|
open: wrapFn()(convertFn(theme.border.banner.divider.primary)),
|
|
562
|
-
close: wrapAnsi16()(39)
|
|
954
|
+
close: wrapAnsi16()(39),
|
|
955
|
+
background: {
|
|
956
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.banner.divider.primary)),
|
|
957
|
+
close: wrapAnsi16()(49)
|
|
958
|
+
}
|
|
563
959
|
},
|
|
564
960
|
secondary: {
|
|
565
961
|
open: wrapFn()(convertFn(theme.border.banner.divider.secondary)),
|
|
566
|
-
close: wrapAnsi16()(39)
|
|
962
|
+
close: wrapAnsi16()(39),
|
|
963
|
+
background: {
|
|
964
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.banner.divider.secondary)),
|
|
965
|
+
close: wrapAnsi16()(49)
|
|
966
|
+
}
|
|
567
967
|
},
|
|
568
968
|
tertiary: {
|
|
569
969
|
open: wrapFn()(convertFn(theme.border.banner.divider.tertiary)),
|
|
570
|
-
close: wrapAnsi16()(39)
|
|
970
|
+
close: wrapAnsi16()(39),
|
|
971
|
+
background: {
|
|
972
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.banner.divider.tertiary)),
|
|
973
|
+
close: wrapAnsi16()(49)
|
|
974
|
+
}
|
|
571
975
|
}
|
|
572
976
|
},
|
|
573
977
|
outline: {
|
|
574
978
|
primary: {
|
|
575
979
|
open: wrapFn()(convertFn(theme.border.banner.outline.primary)),
|
|
576
|
-
close: wrapAnsi16()(39)
|
|
980
|
+
close: wrapAnsi16()(39),
|
|
981
|
+
background: {
|
|
982
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.banner.outline.primary)),
|
|
983
|
+
close: wrapAnsi16()(49)
|
|
984
|
+
}
|
|
577
985
|
},
|
|
578
986
|
secondary: {
|
|
579
987
|
open: wrapFn()(convertFn(theme.border.banner.outline.secondary)),
|
|
580
|
-
close: wrapAnsi16()(39)
|
|
988
|
+
close: wrapAnsi16()(39),
|
|
989
|
+
background: {
|
|
990
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.banner.outline.secondary)),
|
|
991
|
+
close: wrapAnsi16()(49)
|
|
992
|
+
}
|
|
581
993
|
},
|
|
582
994
|
tertiary: {
|
|
583
995
|
open: wrapFn()(convertFn(theme.border.banner.outline.tertiary)),
|
|
584
|
-
close: wrapAnsi16()(39)
|
|
996
|
+
close: wrapAnsi16()(39),
|
|
997
|
+
background: {
|
|
998
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.banner.outline.tertiary)),
|
|
999
|
+
close: wrapAnsi16()(49)
|
|
1000
|
+
}
|
|
585
1001
|
}
|
|
586
1002
|
}
|
|
587
1003
|
},
|
|
@@ -589,29 +1005,53 @@ function buildThemeAnsiStyles(theme, wrapFn, convertFn) {
|
|
|
589
1005
|
divider: {
|
|
590
1006
|
primary: {
|
|
591
1007
|
open: wrapFn()(convertFn(theme.border.app.divider.primary)),
|
|
592
|
-
close: wrapAnsi16()(39)
|
|
1008
|
+
close: wrapAnsi16()(39),
|
|
1009
|
+
background: {
|
|
1010
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.app.divider.primary)),
|
|
1011
|
+
close: wrapAnsi16()(49)
|
|
1012
|
+
}
|
|
593
1013
|
},
|
|
594
1014
|
secondary: {
|
|
595
1015
|
open: wrapFn()(convertFn(theme.border.app.divider.secondary)),
|
|
596
|
-
close: wrapAnsi16()(39)
|
|
1016
|
+
close: wrapAnsi16()(39),
|
|
1017
|
+
background: {
|
|
1018
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.app.divider.secondary)),
|
|
1019
|
+
close: wrapAnsi16()(49)
|
|
1020
|
+
}
|
|
597
1021
|
},
|
|
598
1022
|
tertiary: {
|
|
599
1023
|
open: wrapFn()(convertFn(theme.border.app.divider.tertiary)),
|
|
600
|
-
close: wrapAnsi16()(39)
|
|
1024
|
+
close: wrapAnsi16()(39),
|
|
1025
|
+
background: {
|
|
1026
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.app.divider.tertiary)),
|
|
1027
|
+
close: wrapAnsi16()(49)
|
|
1028
|
+
}
|
|
601
1029
|
}
|
|
602
1030
|
},
|
|
603
1031
|
table: {
|
|
604
1032
|
primary: {
|
|
605
1033
|
open: wrapFn()(convertFn(theme.border.app.table.primary)),
|
|
606
|
-
close: wrapAnsi16()(39)
|
|
1034
|
+
close: wrapAnsi16()(39),
|
|
1035
|
+
background: {
|
|
1036
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.app.table.primary)),
|
|
1037
|
+
close: wrapAnsi16()(49)
|
|
1038
|
+
}
|
|
607
1039
|
},
|
|
608
1040
|
secondary: {
|
|
609
1041
|
open: wrapFn()(convertFn(theme.border.app.table.secondary)),
|
|
610
|
-
close: wrapAnsi16()(39)
|
|
1042
|
+
close: wrapAnsi16()(39),
|
|
1043
|
+
background: {
|
|
1044
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.app.table.secondary)),
|
|
1045
|
+
close: wrapAnsi16()(49)
|
|
1046
|
+
}
|
|
611
1047
|
},
|
|
612
1048
|
tertiary: {
|
|
613
1049
|
open: wrapFn()(convertFn(theme.border.app.table.tertiary)),
|
|
614
|
-
close: wrapAnsi16()(39)
|
|
1050
|
+
close: wrapAnsi16()(39),
|
|
1051
|
+
background: {
|
|
1052
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.app.table.tertiary)),
|
|
1053
|
+
close: wrapAnsi16()(49)
|
|
1054
|
+
}
|
|
615
1055
|
}
|
|
616
1056
|
}
|
|
617
1057
|
},
|
|
@@ -619,61 +1059,117 @@ function buildThemeAnsiStyles(theme, wrapFn, convertFn) {
|
|
|
619
1059
|
divider: {
|
|
620
1060
|
help: {
|
|
621
1061
|
open: wrapFn()(convertFn(theme.border.message.divider.help)),
|
|
622
|
-
close: wrapAnsi16()(39)
|
|
1062
|
+
close: wrapAnsi16()(39),
|
|
1063
|
+
background: {
|
|
1064
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.message.divider.help)),
|
|
1065
|
+
close: wrapAnsi16()(49)
|
|
1066
|
+
}
|
|
623
1067
|
},
|
|
624
1068
|
success: {
|
|
625
1069
|
open: wrapFn()(convertFn(theme.border.message.divider.success)),
|
|
626
|
-
close: wrapAnsi16()(39)
|
|
1070
|
+
close: wrapAnsi16()(39),
|
|
1071
|
+
background: {
|
|
1072
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.message.divider.success)),
|
|
1073
|
+
close: wrapAnsi16()(49)
|
|
1074
|
+
}
|
|
627
1075
|
},
|
|
628
1076
|
info: {
|
|
629
1077
|
open: wrapFn()(convertFn(theme.border.message.divider.info)),
|
|
630
|
-
close: wrapAnsi16()(39)
|
|
1078
|
+
close: wrapAnsi16()(39),
|
|
1079
|
+
background: {
|
|
1080
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.message.divider.info)),
|
|
1081
|
+
close: wrapAnsi16()(49)
|
|
1082
|
+
}
|
|
631
1083
|
},
|
|
632
1084
|
debug: {
|
|
633
1085
|
open: wrapFn()(convertFn(theme.border.message.divider.debug)),
|
|
634
|
-
close: wrapAnsi16()(39)
|
|
1086
|
+
close: wrapAnsi16()(39),
|
|
1087
|
+
background: {
|
|
1088
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.message.divider.debug)),
|
|
1089
|
+
close: wrapAnsi16()(49)
|
|
1090
|
+
}
|
|
635
1091
|
},
|
|
636
1092
|
warning: {
|
|
637
1093
|
open: wrapFn()(convertFn(theme.border.message.divider.warning)),
|
|
638
|
-
close: wrapAnsi16()(39)
|
|
1094
|
+
close: wrapAnsi16()(39),
|
|
1095
|
+
background: {
|
|
1096
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.message.divider.warning)),
|
|
1097
|
+
close: wrapAnsi16()(49)
|
|
1098
|
+
}
|
|
639
1099
|
},
|
|
640
1100
|
danger: {
|
|
641
1101
|
open: wrapFn()(convertFn(theme.border.message.divider.danger)),
|
|
642
|
-
close: wrapAnsi16()(39)
|
|
1102
|
+
close: wrapAnsi16()(39),
|
|
1103
|
+
background: {
|
|
1104
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.message.divider.danger)),
|
|
1105
|
+
close: wrapAnsi16()(49)
|
|
1106
|
+
}
|
|
643
1107
|
},
|
|
644
1108
|
error: {
|
|
645
1109
|
open: wrapFn()(convertFn(theme.border.message.divider.error)),
|
|
646
|
-
close: wrapAnsi16()(39)
|
|
1110
|
+
close: wrapAnsi16()(39),
|
|
1111
|
+
background: {
|
|
1112
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.message.divider.error)),
|
|
1113
|
+
close: wrapAnsi16()(49)
|
|
1114
|
+
}
|
|
647
1115
|
}
|
|
648
1116
|
},
|
|
649
1117
|
outline: {
|
|
650
1118
|
help: {
|
|
651
1119
|
open: wrapFn()(convertFn(theme.border.message.outline.help)),
|
|
652
|
-
close: wrapAnsi16()(39)
|
|
1120
|
+
close: wrapAnsi16()(39),
|
|
1121
|
+
background: {
|
|
1122
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.message.outline.help)),
|
|
1123
|
+
close: wrapAnsi16()(49)
|
|
1124
|
+
}
|
|
653
1125
|
},
|
|
654
1126
|
success: {
|
|
655
1127
|
open: wrapFn()(convertFn(theme.border.message.outline.success)),
|
|
656
|
-
close: wrapAnsi16()(39)
|
|
1128
|
+
close: wrapAnsi16()(39),
|
|
1129
|
+
background: {
|
|
1130
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.message.outline.success)),
|
|
1131
|
+
close: wrapAnsi16()(49)
|
|
1132
|
+
}
|
|
657
1133
|
},
|
|
658
1134
|
info: {
|
|
659
1135
|
open: wrapFn()(convertFn(theme.border.message.outline.info)),
|
|
660
|
-
close: wrapAnsi16()(39)
|
|
1136
|
+
close: wrapAnsi16()(39),
|
|
1137
|
+
background: {
|
|
1138
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.message.outline.info)),
|
|
1139
|
+
close: wrapAnsi16()(49)
|
|
1140
|
+
}
|
|
661
1141
|
},
|
|
662
1142
|
debug: {
|
|
663
1143
|
open: wrapFn()(convertFn(theme.border.message.outline.debug)),
|
|
664
|
-
close: wrapAnsi16()(39)
|
|
1144
|
+
close: wrapAnsi16()(39),
|
|
1145
|
+
background: {
|
|
1146
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.message.outline.debug)),
|
|
1147
|
+
close: wrapAnsi16()(49)
|
|
1148
|
+
}
|
|
665
1149
|
},
|
|
666
1150
|
warning: {
|
|
667
1151
|
open: wrapFn()(convertFn(theme.border.message.outline.warning)),
|
|
668
|
-
close: wrapAnsi16()(39)
|
|
1152
|
+
close: wrapAnsi16()(39),
|
|
1153
|
+
background: {
|
|
1154
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.message.outline.warning)),
|
|
1155
|
+
close: wrapAnsi16()(49)
|
|
1156
|
+
}
|
|
669
1157
|
},
|
|
670
1158
|
danger: {
|
|
671
1159
|
open: wrapFn()(convertFn(theme.border.message.outline.danger)),
|
|
672
|
-
close: wrapAnsi16()(39)
|
|
1160
|
+
close: wrapAnsi16()(39),
|
|
1161
|
+
background: {
|
|
1162
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.message.outline.danger)),
|
|
1163
|
+
close: wrapAnsi16()(49)
|
|
1164
|
+
}
|
|
673
1165
|
},
|
|
674
1166
|
error: {
|
|
675
1167
|
open: wrapFn()(convertFn(theme.border.message.outline.error)),
|
|
676
|
-
close: wrapAnsi16()(39)
|
|
1168
|
+
close: wrapAnsi16()(39),
|
|
1169
|
+
background: {
|
|
1170
|
+
open: wrapFn(ANSI_BACKGROUND_OFFSET)(convertFn(theme.border.message.outline.error)),
|
|
1171
|
+
close: wrapAnsi16()(49)
|
|
1172
|
+
}
|
|
677
1173
|
}
|
|
678
1174
|
}
|
|
679
1175
|
}
|
|
@@ -695,43 +1191,79 @@ function getAnsiStyles(theme) {
|
|
|
695
1191
|
for (const [key, value] of Object.entries(modifiers)) {
|
|
696
1192
|
output.ansi16[key] = {
|
|
697
1193
|
open: wrapAnsi16()(value[0]),
|
|
698
|
-
close: wrapAnsi16()(value[1])
|
|
1194
|
+
close: wrapAnsi16()(value[1]),
|
|
1195
|
+
background: {
|
|
1196
|
+
open: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[0]),
|
|
1197
|
+
close: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[1])
|
|
1198
|
+
}
|
|
699
1199
|
};
|
|
700
1200
|
output.ansi256[key] = {
|
|
701
1201
|
open: wrapAnsi16()(value[0]),
|
|
702
|
-
close: wrapAnsi16()(value[1])
|
|
1202
|
+
close: wrapAnsi16()(value[1]),
|
|
1203
|
+
background: {
|
|
1204
|
+
open: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[0]),
|
|
1205
|
+
close: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[1])
|
|
1206
|
+
}
|
|
703
1207
|
};
|
|
704
1208
|
output.ansi16m[key] = {
|
|
705
1209
|
open: wrapAnsi16()(value[0]),
|
|
706
|
-
close: wrapAnsi16()(value[1])
|
|
1210
|
+
close: wrapAnsi16()(value[1]),
|
|
1211
|
+
background: {
|
|
1212
|
+
open: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[0]),
|
|
1213
|
+
close: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[1])
|
|
1214
|
+
}
|
|
707
1215
|
};
|
|
708
1216
|
}
|
|
709
1217
|
for (const [key, value] of Object.entries(colors)) {
|
|
710
1218
|
output.ansi16[key] = {
|
|
711
1219
|
open: wrapAnsi16()(value[0]),
|
|
712
|
-
close: wrapAnsi16()(value[1])
|
|
1220
|
+
close: wrapAnsi16()(value[1]),
|
|
1221
|
+
background: {
|
|
1222
|
+
open: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[0]),
|
|
1223
|
+
close: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[1])
|
|
1224
|
+
}
|
|
713
1225
|
};
|
|
714
1226
|
output.ansi256[key] = {
|
|
715
1227
|
open: wrapAnsi16()(value[0]),
|
|
716
|
-
close: wrapAnsi16()(value[1])
|
|
1228
|
+
close: wrapAnsi16()(value[1]),
|
|
1229
|
+
background: {
|
|
1230
|
+
open: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[0]),
|
|
1231
|
+
close: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[1])
|
|
1232
|
+
}
|
|
717
1233
|
};
|
|
718
1234
|
output.ansi16m[key] = {
|
|
719
1235
|
open: wrapAnsi16()(value[0]),
|
|
720
|
-
close: wrapAnsi16()(value[1])
|
|
1236
|
+
close: wrapAnsi16()(value[1]),
|
|
1237
|
+
background: {
|
|
1238
|
+
open: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[0]),
|
|
1239
|
+
close: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[1])
|
|
1240
|
+
}
|
|
721
1241
|
};
|
|
722
1242
|
}
|
|
723
1243
|
for (const [key, value] of Object.entries(bgColors)) {
|
|
724
1244
|
output.ansi16[key] = {
|
|
725
1245
|
open: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[0]),
|
|
726
|
-
close: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[1])
|
|
1246
|
+
close: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[1]),
|
|
1247
|
+
background: {
|
|
1248
|
+
open: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[0]),
|
|
1249
|
+
close: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[1])
|
|
1250
|
+
}
|
|
727
1251
|
};
|
|
728
1252
|
output.ansi256[key] = {
|
|
729
1253
|
open: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[0]),
|
|
730
|
-
close: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[1])
|
|
1254
|
+
close: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[1]),
|
|
1255
|
+
background: {
|
|
1256
|
+
open: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[0]),
|
|
1257
|
+
close: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[1])
|
|
1258
|
+
}
|
|
731
1259
|
};
|
|
732
1260
|
output.ansi16m[key] = {
|
|
733
1261
|
open: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[0]),
|
|
734
|
-
close: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[1])
|
|
1262
|
+
close: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[1]),
|
|
1263
|
+
background: {
|
|
1264
|
+
open: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[0]),
|
|
1265
|
+
close: wrapAnsi16(ANSI_BACKGROUND_OFFSET)(value[1])
|
|
1266
|
+
}
|
|
735
1267
|
};
|
|
736
1268
|
}
|
|
737
1269
|
output.ansi16.theme = buildThemeAnsiStyles(theme, wrapAnsi16, hexToAnsi);
|