haskeline icon indicating copy to clipboard operation
haskeline copied to clipboard

getPassword stty: standard input: Inappropriate ioctl for device

Open plsnp opened this issue 5 years ago • 1 comments

Hello, thanks for the library. I am running windows 10 with powershell. When i use the getPassword function i get the following error stty: standard input: Inappropriate ioctl for device. I compiled with profiling to get a stack trace from the exception

  System.Console.Haskeline.Backend.Win32.Echo.hSttyRaw,
  called from System.Console.Haskeline.Backend.Win32.Echo.hGetInputEchoSTTY,
  called from System.Console.Haskeline.Backend.Win32.Echo.hGetInputEchoState,
  called from System.Console.Haskeline.Backend.Win32.Echo.hBracketInputEcho,
  called from System.Console.Haskeline.Backend.Win32.Echo.hWithoutInputEcho,
  called from System.Console.Haskeline.Backend.Win32.fileRunTerm,
  called from System.Console.Haskeline.Backend.fileHandleRunTerm,
  called from System.Console.Haskeline.Backend.defaultRunTerm,
  called from System.Console.Haskeline.Term.wrapFileInput,
  called from System.Console.Haskeline.promptedInput,
  called from System.Console.Haskeline.getPassword,
  called from System.Console.Haskeline.Command.History.runHistoryFromFile,
  called from System.Console.Haskeline.Command.KillRing.runKillRing,
  called from System.Console.Haskeline.Monads.runReaderT',
  called from System.Console.Haskeline.InputT.execInputT,
  called from System.Console.Haskeline.InputT.runInputTBehavior.\,
  called from System.Console.Haskeline.InputT.withBehavior,
  called from System.Console.Haskeline.InputT.runInputTBehavior,
  called from System.Console.Haskeline.InputT.runInputT,
  called from Interactive.askPassword,

plsnp avatar Feb 22 '21 19:02 plsnp

Might be related https://github.com/commercialhaskell/stack/issues/4901

plsnp avatar Feb 23 '21 10:02 plsnp