Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reset terminal emulation and keep scroll back buffer 1

Status
Not open for further replies.

kansaswoodrat

Technical User
Sep 11, 2007
4
US
Work in the telecommunication industry. Using Procomm with
telnet protocol to access lucent 5ess devices followed by
access to Nortel DMS device picks up terminal emulation problems. Lucent 5ess modifies terminal emulation due to formatted screen and row number 1 remains protected post 5ESS connection, resulting in loss of row 1 in future
connections. Have tried termreset and set terminal type
which do resolve emulation problem, but both clear scroll back buffer. desire is not to clear scroll back buffer between subsequent access to various nodes. Any input would be appreciated.
 
found resolution to this problem...lucent device sends
escape sequences to modify VT100 emulation so only
rows 2 thru 25 are allowed to scroll. resolution is to
squirt appropriate escape sequences back into terminal
emulation to restore to default. the following was
used to resolve this particular circumstance, but other
like conditions could be overcome using appropriate
escape sequence codes.

termwritec 0x1b
termwritec 0x5b
termwritec 's'
termwritec 0x1b
termwritec 0x5b
termwritec 'r'
termwritec 0x1b
termwritec 0x5b
termwritec 'u'
 
Sounds like this will fix a problem I'm having also, but where do I use these commands? Do they have to be entered as part of a script before I run the file capture?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top