about summary refs log tree commit diff stats
path: root/config.nim
diff options
context:
space:
mode:
Diffstat (limited to 'config.nim')
-rw-r--r--config.nim9
1 files changed, 2 insertions, 7 deletions
diff --git a/config.nim b/config.nim
index df3d16d6..f13d172b 100644
--- a/config.nim
+++ b/config.nim
@@ -2,6 +2,8 @@ import tables
 import strutils
 import macros
 
+import twtstr
+
 type
   TwtAction* =
     enum
@@ -30,13 +32,6 @@ type
 var normalActionRemap*: Table[string, TwtAction]
 var linedActionRemap*: Table[string, TwtAction]
 
-func getControlChar(c: char): char =
-  if int(c) >= int('a'):
-    return char(int(c) - int('a') + 1)
-  elif c == '?':
-    return char(127)
-  assert(false)
-
 proc getRealKey(key: string): string =
   var realk: string
   var currchar: char