---
layout: doc
title: general / request_term_size
---
# request_term_size

### NAME

    request_term_size() - request or disable telnet window-size reporting

### SYNOPSIS

    void request_term_size( void | int enable );

### DESCRIPTION

    Requests NAWS, the TELNET Negotiate About Window Size option, from the
    current interactive object.  If enable is omitted or nonzero, the driver
    sends DO NAWS.  If enable is 0, the driver sends DONT NAWS.

    When a client reports its size, the driver calls window_size(int, int)
    on the interactive object with the reported width and height.

    This efun should only be called by a user object.  If it is called by a
    non-interactive object, the driver writes a warning to debug output and
    otherwise has no effect.

### SEE ALSO

    request_term_type(3), start_request_term_type(3), window_size(4)
