aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authormryouse2022-06-22 01:19:29 +0000
committermryouse2022-06-22 01:19:29 +0000
commita7320cb3f205e4ba5e28f96b2ebdcb9e1b30f6a9 (patch)
tree198f5d3d476ec2e955c08f6344cf13de87576764 /libs
parentf181bddcb946584ca38ea71f59137e9b3794c5ce (diff)
add types to signatures
Diffstat (limited to 'libs')
-rw-r--r--libs/ansi.neb46
1 files changed, 23 insertions, 23 deletions
diff --git a/libs/ansi.neb b/libs/ansi.neb
index fbdaaf9..21b9bbb 100644
--- a/libs/ansi.neb
+++ b/libs/ansi.neb
@@ -1,98 +1,98 @@
; ansi.neb
; functions and such for colors in the terminal
-(func wrap (color-code)
+(func wrap (color-code :string)
(concat "\033[" color-code "m"))
(def reset (wrap "0"))
; COLORS
(def black-on (wrap "30"))
-(func black (str)
+(func black (str :string)
(concat black-on str reset))
(def bright-black-on (wrap "90"))
-(func bright-black (str)
+(func bright-black (str :string)
(concat bright-black-on str reset))
(def red-on (wrap "31"))
-(func red (str)
+(func red (str :string)
(concat red str reset))
(def bright-red-on (wrap "91"))
-(func bright-red (str)
+(func bright-red (str :string)
(concat bright-red-on str reset))
(def green-on (wrap "32"))
-(func green (str)
+(func green (str :string)
(concat green-on str reset))
(def bright-green-on (wrap "92"))
-(func bright-green (str)
+(func bright-green (str :string)
(concat bright-green-on str reset))
(def yellow-on (wrap "33"))
-(func yellow (str)
+(func yellow (str :string)
(concat yellow-on str reset))
(def bright-yellow-on (wrap "93"))
-(func bright-yellow (str)
+(func bright-yellow (str :string)
(concat bright-yellow-on str reset))
(def blue-on (wrap "34"))
-(func blue (str)
+(func blue (str :string)
(concat blue-on str reset))
(def bright-blue-on (wrap "94"))
-(func bright-blue (str)
+(func bright-blue (str :string)
(concat bright-blue-on str reset))
(def magenta-on (wrap "35"))
-(func magenta (str)
+(func magenta (str :string)
(concat magenta-on str reset))
(def bright-magenta-on (wrap "95"))
-(func bright-magenta (str)
+(func bright-magenta (str :string)
(concat bright-magenta-on str reset))
(def cyan-on (wrap "36"))
-(func cyan (str)
+(func cyan (str :string)
(concat cyan-on str reset))
(def bright-cyan-on (wrap "96"))
-(func bright-cyan (str)
+(func bright-cyan (str :string)
(concat bright-cyan-on str reset))
(def white-on (wrap "37"))
-(func white (str)
+(func white (str :string)
(concat white-on str reset))
(def bright-white-on (wrap "97"))
-(func bright-white (str)
+(func bright-white (str :string)
(concat bright-white-on str reset))
; STYLES
(def bold-on (wrap "1"))
-(func bold (str)
+(func bold (str :string)
(concat bold-on str reset))
(def faint-on (wrap "2"))
-(func faint (str)
+(func faint (str :string)
(concat faint-on str reset))
(def italic-on (wrap "3"))
-(func italic (str)
+(func italic (str :string)
(concat italic-on str reset))
(def underline-on (wrap "4"))
-(func underline (str)
+(func underline (str :string)
(concat underline-on str reset))
(def blink-on (wrap "5"))
-(func blink (str)
+(func blink (str :string)
(concat blink-on str reset))
(def reverse-on (wrap "7"))
-(func reverse (str)
+(func reverse (str :string)
(concat reverse-on str reset))