summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2015-09-12 12:34:25 +0100
committerThomas Kluyver <takowl@gmail.com>2015-09-12 12:34:25 +0100
commit74274698a9b87aeb10b8f0ec6b1322a0787c3b8f (patch)
tree59095f66b7f1f567faa5b9b7afd4217e11938596
parent2978cc581b614d8269c168074ec83aa492b2c777 (diff)
downloadpexpect-git-74274698a9b87aeb10b8f0ec6b1322a0787c3b8f.tar.gz
Deprecation warning in pexpect.screen
-rw-r--r--pexpect/screen.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pexpect/screen.py b/pexpect/screen.py
index efe9ee5..0bced89 100644
--- a/pexpect/screen.py
+++ b/pexpect/screen.py
@@ -27,6 +27,13 @@ import codecs
import copy
import sys
+import warnings
+
+warnings.warn(("pexpect.screen and pexpect.ANSI are deprecated. "
+ "We recommend using pyte to emulate a terminal screen: "
+ "https://pypi.python.org/pypi/pyte"),
+ stacklevel=2)
+
NUL = 0 # Fill character; ignored on input.
ENQ = 5 # Transmit answerback message.
BEL = 7 # Ring the bell.