Possible to implement something like Get Last Li - WeOnlyDo Discussion board

Possible to implement something like Get Last Li (wodTelnetDLX)

by enaiman, Thursday, October 18, 2007, 02:57 (6246 days ago)

Been researching $Telnet1.Text() with its options and I am pretty familiar with.
I wonder if it is possible to implement (or maybe it is already an easy way) something to return the most recent line received.
Usually when the screen is full that line can be retrieved by addressing the line number equal to $Telnet1.Rows value but ... when I have only a few lines of text (begining of Telnet session) it would be difficult to know how many lines are there so I can guess the index.

There is a workaround and I already figured a way to do it but it takes a dozen code lines (getting all the buffer, splitting it by CRLF, retrieving the last element).

This is not a must have and not so important, however, if you guys decide to implement it in the future you will have one more happy user [:wink:]

Thanks for reading this,


Complete thread: