mirror of
https://github.com/ilyakooo0/vty.git
synced 2024-11-25 19:22:08 +03:00
attributeControl: document which constructors map to which terminal mode flags
This commit is contained in:
parent
95cabe0b87
commit
620a5ca544
@ -201,10 +201,13 @@ attributeControl fd = do
|
||||
original <- getTerminalAttributes fd
|
||||
let vtyMode = foldl withMode clearedFlags flagsToSet
|
||||
clearedFlags = foldl withoutMode original flagsToUnset
|
||||
flagsToSet = [ MapCRtoLF
|
||||
flagsToSet = [ MapCRtoLF -- ICRNL
|
||||
]
|
||||
flagsToUnset = [ StartStopOutput, KeyboardInterrupts
|
||||
, EnableEcho, ProcessInput, ExtendedFunctions
|
||||
flagsToUnset = [ StartStopOutput -- IXON
|
||||
, KeyboardInterrupts -- ISIG
|
||||
, EnableEcho -- ECHO
|
||||
, ProcessInput -- ICANON
|
||||
, ExtendedFunctions -- IEXTEN
|
||||
]
|
||||
let setAttrs = setTerminalAttributes fd vtyMode Immediately
|
||||
unsetAttrs = setTerminalAttributes fd original Immediately
|
||||
|
Loading…
Reference in New Issue
Block a user