File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/core/IronPython.Modules Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 77using System ;
88using System . Collections ;
99using System . Numerics ;
10+ using System . Runtime . CompilerServices ;
1011using System . Runtime . InteropServices ;
1112using System . Runtime . Versioning ;
1213
@@ -28,13 +29,21 @@ public static class PythonTermios {
2829 public const string __doc__ = "Stub of termios, just enough to support module tty." ;
2930 // and also prompt_toolkit.terminal.vt100_input
3031
32+ #pragma warning disable IPY01 // Parameter which is marked not nullable does not have the NotNullAttribute
33+ [ SpecialName ]
34+ public static void PerformModuleReload ( PythonContext context , PythonDictionary dict )
35+ => context . EnsureModuleException ( "termioserror" , dict , "error" , "termios" ) ;
36+ #pragma warning restore IPY01 // Parameter which is marked not nullable does not have the NotNullAttribute
37+
38+
3139 #region termios IO Control Codes (TIOC*)
3240
3341 public static int TIOCGWINSZ => RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) ? 0x40087468 : 0x5413 ;
3442
3543
3644 #endregion
3745
46+
3847 #region Other Public Constants
3948 // Linux: glibc/bits/termios.h (/usr/include/{x86_64,aarch64}-linux-gnu/)
4049 // macOS: usr/include/sys/termios.h (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk)
You can’t perform that action at this time.
0 commit comments