Subj : Reliable way to get term size To : Alpha From : echicken Date : Mon Apr 05 2021 03:55 pm Re: Reliable way to get term size By: Alpha to All on Sat Apr 03 2021 08:51:06 Al> Looking for a way to consistently get a user's screen/term size/mode that Al> works across Syncterm, netRunner, MagiTerm, etc. The normal way would be to send the cursor to row 255, column 255 (esc[255;255H), then request the cursor position from the terminal (esc[6n) and parse the response (esc[row;columnR). Some terminals may not handle values > 255 gracefully. I don't think many people are using a 255x255 terminal (or larger) anyway. If the terminal is smaller than the requested position, the expected behaviour is that the cursor would go to the very bottom right. --- echicken electronic chicken bbs - bbs.electronicchicken.com * Origin: electronic chicken bbs - bbs.electronicchicken.com (21:1/164) .