Skip to content

Commit

Permalink
more on config
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyoconnor committed Apr 18, 2014
1 parent 99bb4b8 commit 021a059
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/Graphics/Vty/Config.hs
Expand Up @@ -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
3 changes: 0 additions & 3 deletions src/Graphics/Vty/Input/Terminfo.hs
Expand Up @@ -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]
Expand Down

0 comments on commit 021a059

Please sign in to comment.