Search code examples
linuxunixtelnet

Specifying the Telnet window size


I'm trying to use say a command on a remote system that I'm connected to. A command like "top" where it it uses the full screen to display output, but telnet seems to have a default window size. Does anybody know how to change it?

Thanks in advance.


Solution

  • It seems I found out myself how to do it...

    I needed to set the evioronment variables LINES and COLUMNS on the system that I was telneted too, it didn't really have anything to do with telnet itself. I did it in the following way:

    I first ran "resize" to get the amount of lines and columns my current terminal was it gave me the following:

    COLUMNS=157
    LINES=53
    export COLUMNS LINES
    

    I then pasted this in to the system I was telneted to.

    TADA! :)