8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Application.run_system_command
1 parent 9f79a7b commit fb794ceCopy full SHA for fb794ce
prompt_toolkit/input/win32.py
@@ -67,10 +67,11 @@ def cooked_mode(self):
67
return cooked_mode()
68
69
def fileno(self):
70
- """
71
- The windows console doesn't depend on the file handle.
72
73
- raise NotImplementedError
+ # The windows console doesn't depend on the file handle, so
+ # this is not used for the event loop (which uses the
+ # handle instead). But it's used in `Application.run_system_command`
+ # which opens a subprocess with a given stdin/stdout.
74
+ return sys.stdin.fileno()
75
76
def typeahead_hash(self):
77
return 'win32-input'
0 commit comments