Resolve "prompt_toolkit create_pipe_input API changed"
Closes #3299 (closed)
prompt_toolkit API change
3.0.29: 2022-04-04
------------------
Breaking changes:
- The following are now context managers:
`create_pipe_input`, `PosixPipeInput` and `Win32PipeInput`.
Edited by Wout De Nolf