about summary refs log tree commit diff stats
path: root/src/utils
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-11-20 17:36:21 +0100
committerbptato <nincsnevem662@gmail.com>2022-11-20 17:36:21 +0100
commit7d6c75e4c737e51f997f2ac02001fad1a5627ca2 (patch)
treef315fb6e576e1b68e254be26d30d61473c91b3c8 /src/utils
parent06fbb9bc967e11151fdd1311437248cf9bc25706 (diff)
downloadchawan-7d6c75e4c737e51f997f2ac02001fad1a5627ca2.tar.gz
Terminal refactorings
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/twtstr.nim19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim
index 3636da14..2123daeb 100644
--- a/src/utils/twtstr.nim
+++ b/src/utils/twtstr.nim
@@ -628,25 +628,6 @@ proc expandPath*(path: string): string =
         if p != nil:
           result = $p.pw_dir / path.substr(i)
 
-template CSI*(s: varargs[string, `$`]): string =
-  var r = "\e["
-  var first = true
-  for x in s:
-    if not first:
-      r &= ";"
-    first = false
-    r &= x
-  r
-
-template SGR*(s: varargs[string, `$`]): string =
-  CSI(s) & "m"
-
-template HVP*(s: varargs[string, `$`]): string =
-  CSI(s) & "f"
-
-template EL*(s: varargs[string, `$`]): string =
-  CSI(s) & "K"
-
 iterator split*(s: seq[Rune], sep: Rune): seq[Rune] =
   var i = 0
   var prev = 0