[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: STTY and CRT



Nidge Jones <ush@nikel.co.uk> writes:
>However, if I then Maximise the CRT window (or resize by dragging the edge
>of the box), to get a bigger display, Linux still shows the out put as
>80x25?

I'll try to explain how this thing should work. (Correct me if I'm
wrong, anyone, this is mostly from memory...)

CRT is a Telnet client, right? When you resize its window, CRT should
send a NAWS (Negotiate About Window Size, RFC 1073) request to the
Telnet server. When the server receives it, it should (in Unix) send a
SIGWINCH signal to its child process (the shell you run, or actually
the process currently in the foreground). The process should handle
this signal and resize itself appropriately (the standard shells do
this).

Things you could try to do:

 * Reinstall telnetd, perhaps trying a few different versions. Telnetd
   used to be in the netstd package, but in slink (=Debian 2.1) it is
   a separate package, called telnetd. So reinstall netstd, or if you
   run 2.1 already, reinstall telnetd.

 * Try to make a Telnet connection to the Debian box from itself
   ("telnet localhost") or from another Unix machine. See if the
   resizing (resizing an xterm, for example) works there.

 * Many Telnet clients have a "show option negotiation" option. (In
   the Linux telnet, it's a special command, something like ^] (the
   escape character) and "show negotiation".) You could try turning
   this on and see if you get things like "IAC WILL NAWS" (from the
   client) and "IAC DO NAWS" (from the server) and "IAC SB NAWS ...
   SE" (from the client; this is the actual resize request). If the
   "IAC DO NAWS" is missing (and there is an "IAC DON'T NAWS"
   instead), the problem is likely with the Telnet server (telnetd).

 * Send a detailed bug report to the Debian bug tracking system (see
   <URL:http://www.debian.org/Bugs/>). That might not help
   immediately, but at least the bug won't be forgotten too easily.
   And maybe someone else, somewhere, finds it again...

Hmm, that's all I can think of...

>I can then solve this problem by typing at the Linux prompt..
>
>stty rows 41 columns 111

Typing:
  eval `resize`
should also work and is somewhat faster to write, but of course it
doesn't solve the problem. (If it doesn't work, the problem is most
likely in your terminfo files. If you have a ~/.terminfo directory,
try renaming it to something else, and see if that helps.)

-- 
-=- Rjs -=- rjs@lloke.dna.fi


Reply to: