diff --git a/README.md b/README.md index c0c7c23..926d932 100644 --- a/README.md +++ b/README.md @@ -19,21 +19,16 @@ Cross-compiling on SuSE Linux (Native or WSL) Compiling for Windows (With MSYS2) ---------------------------------- -1. Install python and python devel +1. Install pw3270 with remote control and sdk modules -2. Build and install lib3270 +2. Build and install the "glue" library - * Follow the guide on https://github.com/PerryWerneck/lib3270 + * Open a MSVC Native tools command prompt as administrator. + * git clone https://github.com/PerryWerneck/libipc3270.git ./ipc3270 + * cd ipc3270 + * install.bat -3. Build and install libv3270 - - * Follow the guide on https://github.com/PerryWerneck/libv3270 - -4. Build and install libipc3270 - - * Follow the guide on https://github.com/PerryWerneck/libipc3270 - -5. Get python-tn3270 sources from git +3. Get python-tn3270 sources from git * git clone https://github.com/PerryWerneck/python-tn3270.git ./python-tn3270 @@ -46,4 +41,6 @@ Compiling for Windows (With MSYS2) * python setup.py install +8. Build windows installer (optional) + * python setup.py bdist_wininst diff --git a/src/session/init.cc b/src/session/init.cc index c409538..74adfda 100644 --- a/src/session/init.cc +++ b/src/session/init.cc @@ -121,7 +121,7 @@ int py3270_session_init(PyObject *self, PyObject *args, PyObject *kwds) { if (!PyArg_ParseTuple(args, "s", &id)) id = ""; - session->host = new TN3270::Host(id); + session->host = new TN3270::Host(id,"UTF-8"); return 0; diff --git a/testprograms/sample.py b/testprograms/sample.py index 9bfa605..de85522 100644 --- a/testprograms/sample.py +++ b/testprograms/sample.py @@ -52,17 +52,17 @@ print('----------------------') print(session.get(14,22,38)) -#print("-----------------------------------------------------------------------") -#print(session) -#print("-----------------------------------------------------------------------") +print("-----------------------------------------------------------------------") +print(session) +print("-----------------------------------------------------------------------") session.enter().wait(14,2,"Senha") -#session.set("value") +session.set("value") -#print("-----------------------------------------------------------------------") -#print(session) -#print("-----------------------------------------------------------------------") +print("-----------------------------------------------------------------------") +print(session) +print("-----------------------------------------------------------------------") input("Press enter to exit") -- libgit2 0.21.2