more on config

This commit is contained in:
Corey O'Connor 2014-04-17 17:03:32 -07:00
parent 99bb4b8133
commit 021a059d24
2 changed files with 6 additions and 3 deletions

View File

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

View File

@ -70,9 +70,6 @@ classifyTableForTerm termName term =
classifyTableUserOverrides :: IO ClassifyTable
classifyTableUserOverrides = return []
parseOverrideFile :: FilePath -> IO ClassifyTable
parseOverrideFile _ = return []
-- | key table assumed to be applicable to all terminals.
universalTable :: ClassifyTable
universalTable = concat [visibleChars, ctrlChars, ctrlMetaChars, specialSupportKeys]