on master help sign in
more on config
commit021a059d24b670602ca6cdc9e7904e8792b36589 authorCorey O'Connor <coreyoconnor@gmail.com> dateThu 17 Apr 2014, 17:03 (13 years ago) parent99bb4b8
2 files changed+6−3
src/Graphics/Vty/Config.hs+6 src/Graphics/Vty/Input/Terminfo.hs−3
src/Graphics/Vty/Config.hs+6
@@ -8,17 +8,23 @@ module Graphics.Vty.Config where
88
99import Data.Default
1010
11+import Graphics.Vty.Input.Events
12+
1113import System.FilePath
1214
1315data Config = Config
1416 { singleEscPeriod :: Int -- ^ AKA VTIME. The default is 100000 microseconds or 0.1 seconds.
1517 -- | Debug information about the input process is appended to the file.
1618 , debugInputLog :: Maybe FilePath
19+ , inputOverrides :: ClassifyTable
1720 } deriving (Show, Eq)
1821
1922instance Default Config where
2023 def = Config
2124 { singleEscPeriod = 100000
2225 , debugInputLog = Nothing
26+ , inputOverrides = []
2327 }
2428
29+parseConfigFile :: FilePath -> IO Config
30+parseConfigFile path = return def
src/Graphics/Vty/Input/Terminfo.hs−3
@@ -70,9 +70,6 @@ classifyTableForTerm termName term =
7070classifyTableUserOverrides :: IO ClassifyTable
7171classifyTableUserOverrides = return []
7272
73−parseOverrideFile :: FilePath -> IO ClassifyTable
74−parseOverrideFile _ = return []
75−
7673-- | key table assumed to be applicable to all terminals.
7774universalTable :: ClassifyTable
7875universalTable = concat [visibleChars, ctrlChars, ctrlMetaChars, specialSupportKeys]