mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
enforce windows terminal mode to basic, warning message (#77)
This commit is contained in:
committed by
GitHub
parent
94c756adb5
commit
c1fdcfb906
@@ -1,3 +1,5 @@
|
||||
{-# LANGUAGE LambdaCase #-}
|
||||
|
||||
module Types where
|
||||
|
||||
import Data.ByteString.Char8 (ByteString)
|
||||
@@ -5,3 +7,9 @@ import Data.ByteString.Char8 (ByteString)
|
||||
newtype Contact = Contact {toBs :: ByteString}
|
||||
|
||||
data TermMode = TermModeBasic | TermModeSimple | TermModeEditor deriving (Eq)
|
||||
|
||||
termModeName :: TermMode -> String
|
||||
termModeName = \case
|
||||
TermModeBasic -> "basic"
|
||||
TermModeSimple -> "simple"
|
||||
TermModeEditor -> "editor"
|
||||
|
||||
Reference in New Issue
Block a user