about summary refs log tree commit diff stats
path: root/src/utils
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-11-26 00:00:10 +0100
committerbptato <nincsnevem662@gmail.com>2022-11-26 00:00:10 +0100
commit8e20aaaf7e1e73c27c664c640b49bdf0b6c96757 (patch)
tree84eb6e707af49d2b09c25346959cd2a6f9d3dd3e /src/utils
parentd54e0258fd794ad54b42acc51ec65d9c7297d908 (diff)
downloadchawan-8e20aaaf7e1e73c27c664c640b49bdf0b6c96757.tar.gz
Fix lineedit bugs
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/eprint.nim13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/utils/eprint.nim b/src/utils/eprint.nim
index 6a76d250..c5936d2a 100644
--- a/src/utils/eprint.nim
+++ b/src/utils/eprint.nim
@@ -19,16 +19,3 @@ template eprint*(s: varargs[string, `$`]) = {.cast(noSideEffect), cast(tags: [])
         stderr.write(' ')
       stderr.write(x)
     stderr.write('\n')
-
-template print*(s: varargs[string, `$`]) =
-  for x in s:
-    stdout.write(x)
-
-template printesc*(s: string) =
-  for r in s.runes:
-    if r.isControlChar():
-      stdout.write(('^' & $($r)[0].getControlLetter())
-                   .ansiFgColor(fgBlue).ansiStyle(styleBright).ansiReset())
-    else:
-      stdout.write($r)
-