Changeset 1871


Ignore:
Timestamp:
Sep 4, 2012, 12:05:15 AM (7 years ago)
Author:
sam
Message:

neercs: fix SetWindowSize parameter handling.

Location:
trunk/tools/neercs/term
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/neercs/term/pty.cpp

    r1860 r1871  
    7979    else if (pid == 0)
    8080    {
    81         SetWindowSize(m_size);
     81        SetWindowSize(0, m_size);
    8282
    8383        /* putenv() eats the string, they need to be writable */
     
    176176}
    177177
    178 void Pty::SetWindowSize(ivec2 size)
     178void Pty::SetWindowSize(int64_t fd, ivec2 size)
    179179{
    180180#if defined HAVE_PTY_H || defined HAVE_UTIL_H || defined HAVE_LIBUTIL_H
     
    186186    ws.ws_row = size.y;
    187187    ws.ws_col = size.x;
    188     ioctl((int)m_fd, TIOCSWINSZ, (char *)&ws);
     188    ioctl((int)fd, TIOCSWINSZ, (char *)&ws);
    189189#endif
    190190}
  • trunk/tools/neercs/term/pty.h

    r1860 r1871  
    1515    size_t ReadData(char *data, size_t maxlen);
    1616    void UnreadData(char *data, size_t len);
    17     void SetWindowSize(ivec2 size);
     17    void SetWindowSize(int64_t fd, ivec2 size);
    1818
    1919private:
  • trunk/tools/neercs/term/term.cpp

    r1860 r1871  
    2626        shell = "/bin/sh";
    2727    shell = "cacaclock";
     28    shell = "cacafire";
    2829    shell = "cacademo";
    29     shell = "cacafire";
    3030    m_pty->Run(shell);
    3131#endif
Note: See TracChangeset for help on using the changeset viewer.