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