From 0c6dcf4cb903afa111e693c66a47785a61647972 Mon Sep 17 00:00:00 2001 From: Andrew Kay Date: Sat, 15 May 2021 13:41:23 -0500 Subject: [PATCH] Show basic TN3270E negotiation result --- README.md | 2 +- oec/tn3270.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7babc14..a61eb12 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ emulation. - [x] TN3270 - [x] Extended Data Stream - - [ ] TN3270E + - [x] Basic TN3270E - [ ] SSL/TLS - [x] VT100 - [ ] Connection Menu diff --git a/oec/tn3270.py b/oec/tn3270.py index e09a2c8..67d03d9 100644 --- a/oec/tn3270.py +++ b/oec/tn3270.py @@ -178,6 +178,11 @@ class TN3270Session(Session): self.telnet.open(self.host, self.port) + if self.telnet.is_tn3270e_negotiated: + self.logger.info(f'TN3270E mode negotiated: Device Type = {self.telnet.device_type}, Device Name = {self.telnet.device_name}') + else: + self.logger.debug('Unable to negotiate TN3270E mode') + def _disconnect_host(self): self.telnet.close()