@@ -8,17 +8,23 @@ module Graphics.Vty.Config where
9import Data.Default
9import Data.Default
11+import Graphics.Vty.Input.Events
11import System.FilePath
13import System.FilePath
13data Config = Config
15data Config = Config
14 { singleEscPeriod :: Int -- ^ AKA VTIME. The default is 100000 microseconds or 0.1 seconds.
16 { singleEscPeriod :: Int -- ^ AKA VTIME. The default is 100000 microseconds or 0.1 seconds.
15 -- | Debug information about the input process is appended to the file.
17 -- | Debug information about the input process is appended to the file.
16 , debugInputLog :: Maybe FilePath
18 , debugInputLog :: Maybe FilePath
19+ , inputOverrides :: ClassifyTable
17 } deriving (Show, Eq)
20 } deriving (Show, Eq)
19instance Default Config where
22instance Default Config where
20 def = Config
23 def = Config
21 { singleEscPeriod = 100000
24 { singleEscPeriod = 100000
22 , debugInputLog = Nothing
25 , debugInputLog = Nothing
26+ , inputOverrides = []
29+parseConfigFile :: FilePath -> IO Config
30+parseConfigFile path = return def