{-# LINE 1 "src/Network/Telnet/LibTelnet/Options.hsc" #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}

{-|
Module      : Network.Telnet.LibTelnet.Options
Description : Constants for option codes
Copyright   : (c) 2017-2021 Jack Kelly
License     : GPL-3.0-or-later
Maintainer  : jack@jackkelly.name
Stability   : experimental
Portability : non-portable

Telnet option codes. Many of these are defined in their own RFC.
<http://www.omnifarious.org/~hopper/technical/telnet-rfc.html> is a
good index of known options.
-}

module Network.Telnet.LibTelnet.Options
  ( Option(..)
  , optBinary
  , optEcho
  , optRCP
  , optSGA
  , optNAMS
  , optStatus
  , optTM
  , optRCTE
  , optNAOL
  , optNAOP
  , optNAOCRD
  , optNAOHTS
  , optNAOHTD
  , optNAOFFD
  , optNAOVTS
  , optNAOVTD
  , optNAOLFD
  , optXASCII
  , optLogout
  , optBM
  , optDET
  , optSUPDUP
  , optSUPDUPOutput
  , optSNDLOC
  , optTType
  , optEOR
  , optTUID
  , optOUTMRK
  , optTTYLOC
  , opt3270Regime
  , optX3Pad
  , optNAWS
  , optTSpeed
  , optLFlow
  , optLineMode
  , optXDISPLOC
  , optEnviron
  , optAuthentication
  , optEncrypt
  , optNewEnviron
  , optMSSP
  , optCompress2
  , optZMP
  , optEXOPL
  , optMCCP2
  ) where

import Foreign (Storable)
import Foreign.C (CUChar)



-- | Wrapper for telnet option codes.
newtype Option = Option { Option -> CUChar
unOption :: CUChar } deriving (Option -> Option -> Bool
(Option -> Option -> Bool)
-> (Option -> Option -> Bool) -> Eq Option
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Option -> Option -> Bool
$c/= :: Option -> Option -> Bool
== :: Option -> Option -> Bool
$c== :: Option -> Option -> Bool
Eq, Int -> Option -> ShowS
[Option] -> ShowS
Option -> String
(Int -> Option -> ShowS)
-> (Option -> String) -> ([Option] -> ShowS) -> Show Option
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Option] -> ShowS
$cshowList :: [Option] -> ShowS
show :: Option -> String
$cshow :: Option -> String
showsPrec :: Int -> Option -> ShowS
$cshowsPrec :: Int -> Option -> ShowS
Show, Ptr b -> Int -> IO Option
Ptr b -> Int -> Option -> IO ()
Ptr Option -> IO Option
Ptr Option -> Int -> IO Option
Ptr Option -> Int -> Option -> IO ()
Ptr Option -> Option -> IO ()
Option -> Int
(Option -> Int)
-> (Option -> Int)
-> (Ptr Option -> Int -> IO Option)
-> (Ptr Option -> Int -> Option -> IO ())
-> (forall b. Ptr b -> Int -> IO Option)
-> (forall b. Ptr b -> Int -> Option -> IO ())
-> (Ptr Option -> IO Option)
-> (Ptr Option -> Option -> IO ())
-> Storable Option
forall b. Ptr b -> Int -> IO Option
forall b. Ptr b -> Int -> Option -> IO ()
forall a.
(a -> Int)
-> (a -> Int)
-> (Ptr a -> Int -> IO a)
-> (Ptr a -> Int -> a -> IO ())
-> (forall b. Ptr b -> Int -> IO a)
-> (forall b. Ptr b -> Int -> a -> IO ())
-> (Ptr a -> IO a)
-> (Ptr a -> a -> IO ())
-> Storable a
poke :: Ptr Option -> Option -> IO ()
$cpoke :: Ptr Option -> Option -> IO ()
peek :: Ptr Option -> IO Option
$cpeek :: Ptr Option -> IO Option
pokeByteOff :: Ptr b -> Int -> Option -> IO ()
$cpokeByteOff :: forall b. Ptr b -> Int -> Option -> IO ()
peekByteOff :: Ptr b -> Int -> IO Option
$cpeekByteOff :: forall b. Ptr b -> Int -> IO Option
pokeElemOff :: Ptr Option -> Int -> Option -> IO ()
$cpokeElemOff :: Ptr Option -> Int -> Option -> IO ()
peekElemOff :: Ptr Option -> Int -> IO Option
$cpeekElemOff :: Ptr Option -> Int -> IO Option
alignment :: Option -> Int
$calignment :: Option -> Int
sizeOf :: Option -> Int
$csizeOf :: Option -> Int
Storable)
optBinary  :: Option
optBinary :: Option
optBinary  = CUChar -> Option
Option 0
optEcho  :: Option
optEcho :: Option
optEcho  = CUChar -> Option
Option 1
optRCP  :: Option
optRCP :: Option
optRCP  = CUChar -> Option
Option 2
optSGA  :: Option
optSGA :: Option
optSGA  = CUChar -> Option
Option 3
optNAMS  :: Option
optNAMS :: Option
optNAMS  = CUChar -> Option
Option 4
optStatus  :: Option
optStatus :: Option
optStatus  = CUChar -> Option
Option 5
optTM  :: Option
optTM :: Option
optTM  = CUChar -> Option
Option 6
optRCTE  :: Option
optRCTE :: Option
optRCTE  = CUChar -> Option
Option 7
optNAOL  :: Option
optNAOL :: Option
optNAOL  = CUChar -> Option
Option 8
optNAOP  :: Option
optNAOP :: Option
optNAOP  = CUChar -> Option
Option 9
optNAOCRD  :: Option
optNAOCRD :: Option
optNAOCRD  = CUChar -> Option
Option 10
optNAOHTS  :: Option
optNAOHTS :: Option
optNAOHTS  = CUChar -> Option
Option 11
optNAOHTD  :: Option
optNAOHTD :: Option
optNAOHTD  = CUChar -> Option
Option 12
optNAOFFD  :: Option
optNAOFFD :: Option
optNAOFFD  = CUChar -> Option
Option 13
optNAOVTS  :: Option
optNAOVTS :: Option
optNAOVTS  = CUChar -> Option
Option 14
optNAOVTD  :: Option
optNAOVTD :: Option
optNAOVTD  = CUChar -> Option
Option 15
optNAOLFD  :: Option
optNAOLFD :: Option
optNAOLFD  = CUChar -> Option
Option 16
optXASCII  :: Option
optXASCII :: Option
optXASCII  = CUChar -> Option
Option 17
optLogout  :: Option
optLogout :: Option
optLogout  = CUChar -> Option
Option 18
optBM  :: Option
optBM :: Option
optBM  = CUChar -> Option
Option 19
optDET  :: Option
optDET :: Option
optDET  = CUChar -> Option
Option 20
optSUPDUP  :: Option
optSUPDUP :: Option
optSUPDUP  = CUChar -> Option
Option 21
optSUPDUPOutput  :: Option
optSUPDUPOutput :: Option
optSUPDUPOutput  = CUChar -> Option
Option 22
optSNDLOC  :: Option
optSNDLOC :: Option
optSNDLOC  = CUChar -> Option
Option 23
optTType  :: Option
optTType :: Option
optTType  = CUChar -> Option
Option 24
optEOR  :: Option
optEOR :: Option
optEOR  = CUChar -> Option
Option 25
optTUID  :: Option
optTUID :: Option
optTUID  = CUChar -> Option
Option 26
optOUTMRK  :: Option
optOUTMRK :: Option
optOUTMRK  = CUChar -> Option
Option 27
optTTYLOC  :: Option
optTTYLOC :: Option
optTTYLOC  = CUChar -> Option
Option 28
opt3270Regime  :: Option
opt3270Regime :: Option
opt3270Regime  = CUChar -> Option
Option 29
optX3Pad  :: Option
optX3Pad :: Option
optX3Pad  = CUChar -> Option
Option 30
optNAWS  :: Option
optNAWS :: Option
optNAWS  = CUChar -> Option
Option 31
optTSpeed  :: Option
optTSpeed :: Option
optTSpeed  = CUChar -> Option
Option 32
optLFlow  :: Option
optLFlow :: Option
optLFlow  = CUChar -> Option
Option 33
optLineMode  :: Option
optLineMode :: Option
optLineMode  = CUChar -> Option
Option 34
optXDISPLOC  :: Option
optXDISPLOC :: Option
optXDISPLOC  = CUChar -> Option
Option 35
optEnviron  :: Option
optEnviron :: Option
optEnviron  = CUChar -> Option
Option 36
optAuthentication  :: Option
optAuthentication :: Option
optAuthentication  = CUChar -> Option
Option 37
optEncrypt  :: Option
optEncrypt :: Option
optEncrypt  = CUChar -> Option
Option 38
optNewEnviron  :: Option
optNewEnviron :: Option
optNewEnviron  = CUChar -> Option
Option 39
optMSSP  :: Option
optMSSP :: Option
optMSSP  = CUChar -> Option
Option 70
optCompress2  :: Option
optCompress2 :: Option
optCompress2  = CUChar -> Option
Option 86
optZMP  :: Option
optZMP :: Option
optZMP  = CUChar -> Option
Option 93
optEXOPL  :: Option
optEXOPL :: Option
optEXOPL  = CUChar -> Option
Option 255
optMCCP2  :: Option
optMCCP2 :: Option
optMCCP2  = CUChar -> Option
Option 86

{-# LINE 120 "src/Network/Telnet/LibTelnet/Options.hsc" #-}