11// Copyright 2023-2024 ryu. All rights reserved. MIT license. @license
22/*
3+ * @deprecated Use @ryu/enogu.
4+ *
35 * Painting your terminal with colors.
46 * This module is the tiny version with only limited colors implemented.
57 *
@@ -22,133 +24,159 @@ function init(open: number, close: number) {
2224}
2325
2426/**
27+ * @deprecated
2528 * Set text at reset
2629 * @param str text to reset
2730 */
2831export const reset : ( str : string ) => string = init ( 0 , 0 ) ;
2932/**
33+ * @deprecated
3034 * Set text at bold
3135 * @param str text to bold
3236 */
3337export const bold : ( str : string ) => string = init ( 1 , 22 ) ;
3438/**
39+ * @deprecated
3540 * Set text at dim
3641 * @param str text to dim
3742 */
3843export const dim : ( str : string ) => string = init ( 2 , 22 ) ;
3944/**
45+ * @deprecated
4046 * Set text at italic
4147 * @param str text to italic
4248 */
4349export const italic : ( str : string ) => string = init ( 3 , 23 ) ;
4450/**
51+ * @deprecated
4552 * Set text at underline
4653 * @param str text to underline
4754 */
4855export const underline : ( str : string ) => string = init ( 4 , 24 ) ;
4956/**
57+ * @deprecated
5058 * Set text at inverse
5159 * @param str text to inverse
5260 */
5361export const inverse : ( str : string ) => string = init ( 7 , 27 ) ;
5462/**
63+ * @deprecated
5564 * Set text at hidden
5665 * @param str text to hidden
5766 */
5867export const hidden : ( str : string ) => string = init ( 8 , 28 ) ;
5968/**
69+ * @deprecated
6070 * Set text at strikethrough
6171 * @param str text to strikethrough
6272 */
6373export const strikethrough : ( str : string ) => string = init ( 9 , 29 ) ;
6474
6575/**
76+ * @deprecated
6677 * Set text at black
6778 * @param str text to black
6879 */
6980export const black : ( str : string ) => string = init ( 30 , 39 ) ;
7081/**
82+ * @deprecated
7183 * Set text at red
7284 * @param str text to red
7385 */
7486export const red : ( str : string ) => string = init ( 31 , 39 ) ;
7587/**
88+ * @deprecated
7689 * Set text at green
7790 * @param str text to green
7891 */
7992export const green : ( str : string ) => string = init ( 32 , 39 ) ;
8093/**
94+ * @deprecated
8195 * Set text at yellow
8296 * @param str text to yellow
8397 */
8498export const yellow : ( str : string ) => string = init ( 33 , 39 ) ;
8599/**
100+ * @deprecated
86101 * Set text at blue
87102 * @param str text to blue
88103 */
89104export const blue : ( str : string ) => string = init ( 34 , 39 ) ;
90105/**
106+ * @deprecated
91107 * Set text at magenta
92108 * @param str text to magenta
93109 */
94110export const magenta : ( str : string ) => string = init ( 35 , 39 ) ;
95111/**
112+ * @deprecated
96113 * Set text at cyan
97114 * @param str text to cyan
98115 */
99116export const cyan : ( str : string ) => string = init ( 36 , 39 ) ;
100117/**
118+ * @deprecated
101119 * Set text at white
102120 * @param str text to white
103121 */
104122export const white : ( str : string ) => string = init ( 37 , 39 ) ;
105123/**
124+ * @deprecated
106125 * Set text at gray
107126 * @param str text to gray
108127 */
109128export const gray : ( str : string ) => string = init ( 90 , 39 ) ;
110129
111130/**
131+ * @deprecated
112132 * Set background at black
113133 * @param str background to black
114134 */
115135export const bgBlack : ( str : string ) => string = init ( 40 , 49 ) ;
116136/**
137+ * @deprecated
117138 * Set background at red
118139 * @param str background to red
119140 */
120141export const bgRed : ( str : string ) => string = init ( 41 , 49 ) ;
121142/**
143+ * @deprecated
122144 * Set background at green
123145 * @param str background to green
124146 */
125147export const bgGreen : ( str : string ) => string = init ( 42 , 49 ) ;
126148/**
149+ * @deprecated
127150 * Set background at yellow
128151 * @param str background to yellow
129152 */
130153export const bgYellow : ( str : string ) => string = init ( 43 , 49 ) ;
131154/**
155+ * @deprecated
132156 * Set background at blue
133157 * @param str background to blue
134158 */
135159export const bgBlue : ( str : string ) => string = init ( 44 , 49 ) ;
136160/**
161+ * @deprecated
137162 * Set background at magenta
138163 * @param str background to magenta
139164 */
140165export const bgMagenta : ( str : string ) => string = init ( 45 , 49 ) ;
141166/**
167+ * @deprecated
142168 * Set background at cyan
143169 * @param str background to cyan
144170 */
145171export const bgCyan : ( str : string ) => string = init ( 46 , 49 ) ;
146172/**
173+ * @deprecated
147174 * Set background at white
148175 * @param str background to white
149176 */
150177export const bgWhite : ( str : string ) => string = init ( 47 , 49 ) ;
151178/**
179+ * @deprecated
152180 * Set background at gray
153181 * @param str background to gray
154182 */
0 commit comments