summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobey Pointer <robey@ralph.lag.net>2005-12-03 20:49:21 -0800
committerRobey Pointer <robey@ralph.lag.net>2005-12-03 20:49:21 -0800
commit65beaef76fb044b01e74e10e79b657c7adaaa66a (patch)
tree3b7bfdc7aa27b83993f09c677c4bc3fcaa6b719e
parent93ee12a1946fa0529aa3ce5dccba34b699eff0cb (diff)
[project @ robey@ralph.lag.net-20051204044921-ae847bf450372ff5]
add comments to demo and demo_simple explaining that they don't work on windows
-rw-r--r--README3
-rwxr-xr-xdemo.py6
-rwxr-xr-xdemo_simple.py8
3 files changed, 13 insertions, 4 deletions
diff --git a/README b/README
index eb0cfec0..c5d813f0 100644
--- a/README
+++ b/README
@@ -272,7 +272,6 @@ v0.9 FEAROW
*** MISSING LINKS
-* add comments to demo & demo_simple about how they don't work on windows
* host-based auth (yuck!)
* SFTP implicit file locking?
* ChannelException like the java version has
@@ -289,5 +288,3 @@ v0.9 FEAROW
* make a function to parse .ssh/config files:
User, Hostname, Port, ProxyCommand, IdentityFile
-
-* weird prefetch bug with bzr?
diff --git a/demo.py b/demo.py
index 2f0242b5..a02e8867 100755
--- a/demo.py
+++ b/demo.py
@@ -18,6 +18,12 @@
# along with Paramiko; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
+# ----- WINDOWS USERS PLEASE NOTE -----
+# This demo won't work on Windows because it uses pseudo-terminals, which
+# are a posix-only feature. check out the README file for a simpler demo.
+
+
import sys, os, socket, threading, getpass, time, base64, select, termios, tty, traceback
import paramiko
diff --git a/demo_simple.py b/demo_simple.py
index 7eade45b..655a1a48 100755
--- a/demo_simple.py
+++ b/demo_simple.py
@@ -18,6 +18,12 @@
# along with Paramiko; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
+
+# ----- WINDOWS USERS PLEASE NOTE -----
+# This demo won't work on Windows because it uses pseudo-terminals, which
+# are a posix-only feature. check out the README file for a simpler demo.
+
+
import sys, os, base64, getpass, socket, traceback, termios, tty, select
import paramiko
@@ -85,7 +91,7 @@ try:
tty.setcbreak(sys.stdin.fileno())
chan.settimeout(0.0)
- while 1:
+ while True:
r, w, e = select.select([chan, sys.stdin], [], [])
if chan in r:
try: