@@ -28,22 +28,22 @@ import {
2828import { cursor , settings } from "../settings.ts" ;
2929import { validated } from "../validate.ts" ;
3030
31- let encode = ( s : string ) => new TextEncoder ( ) . encode ( s ) ;
32- let write = ( b : Uint8Array ) => Deno . stdout . writeSync ( b ) ;
33-
34- let GREEN = rgba ( 80 , 250 , 123 ) ;
35- let GRAY = rgba ( 100 , 100 , 100 ) ;
36- let CYAN = rgba ( 139 , 233 , 253 ) ;
37-
38- let RED = rgba ( 255 , 0 , 0 ) ;
39- let ORANGE = rgba ( 255 , 153 , 0 ) ;
40- let YELLOW = rgba ( 255 , 255 , 0 ) ;
41- let NGREEN = rgba ( 51 , 255 , 0 ) ;
42- let BLUE = rgba ( 0 , 153 , 255 ) ;
43- let VIOLET = rgba ( 102 , 0 , 255 ) ;
44- let RAINBOW = [ RED , ORANGE , YELLOW , NGREEN , BLUE , VIOLET ] ;
45-
46- let BRAILLE = [ "⠋" , "⠙" , "⠹" , "⠸" , "⠼" , "⠴" , "⠦" , "⠧" , "⠇" , "⠏" ] ;
31+ const encode = ( s : string ) => new TextEncoder ( ) . encode ( s ) ;
32+ const write = ( b : Uint8Array ) => Deno . stdout . writeSync ( b ) ;
33+
34+ const GREEN = rgba ( 80 , 250 , 123 ) ;
35+ const GRAY = rgba ( 100 , 100 , 100 ) ;
36+ const CYAN = rgba ( 139 , 233 , 253 ) ;
37+
38+ const RED = rgba ( 255 , 0 , 0 ) ;
39+ const ORANGE = rgba ( 255 , 153 , 0 ) ;
40+ const YELLOW = rgba ( 255 , 255 , 0 ) ;
41+ const NGREEN = rgba ( 51 , 255 , 0 ) ;
42+ const BLUE = rgba ( 0 , 153 , 255 ) ;
43+ const VIOLET = rgba ( 102 , 0 , 255 ) ;
44+ const RAINBOW = [ RED , ORANGE , YELLOW , NGREEN , BLUE , VIOLET ] ;
45+
46+ const BRAILLE = [ "⠋" , "⠙" , "⠹" , "⠸" , "⠼" , "⠴" , "⠦" , "⠧" , "⠇" , "⠏" ] ;
4747
4848function * queryCursor ( ) : Operation < CursorEvent > {
4949 let parser = yield * until ( createInput ( { escLatency : 100 } ) ) ;
0 commit comments