mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
teepty windows fix
This commit is contained in:
parent
ace63d5920
commit
cf97e3a00d
1 changed files with 9 additions and 1 deletions
|
@ -12,7 +12,6 @@ import os
|
|||
import sys
|
||||
import time
|
||||
import array
|
||||
import fcntl
|
||||
import select
|
||||
import signal
|
||||
import tempfile
|
||||
|
@ -48,6 +47,15 @@ def termios():
|
|||
else:
|
||||
return importlib.import_module('termios')
|
||||
|
||||
|
||||
@lazyobject
|
||||
def fcntl():
|
||||
if ON_WINDOWS:
|
||||
return
|
||||
else:
|
||||
return importlib.import_module('fcntl')
|
||||
|
||||
|
||||
# The following escape codes are xterm codes.
|
||||
# See http://rtfm.etla.org/xterm/ctlseq.html for more.
|
||||
MODE_NUMS = ('1049', '47', '1047')
|
||||
|
|
Loading…
Add table
Reference in a new issue