mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-30 02:13:36 +03:00
more on config
This commit is contained in:
parent
99bb4b8133
commit
021a059d24
@ -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
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user