@@ -0,0 +1,726 @@
+#This File is the old file that I actually used to improve on telnetid%0A#with this file I would insert a telnet session using the parameters on a function%0A#This will be fixed when I start building the real package%0A%0A%0Adef respond(cmd,t,p):%0A%09%22%22%22takes a command, telnet session, and a prompt%0A%09and returns the output of the code%22%22%22%0A%09t.write(cmd)%0A%09return wait(t,p)%0Adef wait(t,p):%0A%09%22%22%22takes a telnet session, and a prompt%22%22%22%0A%09output_list = %5B%5D%0A%09c = ''%0A%09d = ''%0A%09while p not in d:%0A%09%09c = t.read_very_eager()%0A%09%09if len(c) %3E 0:%0A%09%09%09d += c%0A%09%09%09print c%0A%09%09%09output_list.append(c)%0A%09%09if %22Press any key to continue%22 in c or %22--More--%22 in c:%0A%09%09%09t.write(%22 %22)%0A%09output_list = ((''.join(output_list)).replace('%5Cr%5Cn','%5Cn')).split('%5Cn')%0A%09return output_list%0A

Create telnet_wrapper.py