[Twisted-Python] TerminalSession instance has no attribute 'windowChanged'
![](https://secure.gravatar.com/avatar/cc515e576cb9b93c18168daee967e401.jpg?s=120&d=mm&r=g)
Hello! When size of terminal window of ssh client is changed, then twisted ssh server throws an exception: exceptions.AttributeError: TerminalSession instance has no attribute 'windowChanged' `manhole_ssh.TerminalSession` doesn't implement this method, but according to ISession interface it should. Is this a bug? I use insults to create some curses-like ui and I need widgets to be redrawn when the size of window is changed. -- Regards, Maxim
![](https://secure.gravatar.com/avatar/e1554622707bedd9202884900430b838.jpg?s=120&d=mm&r=g)
On Jul 31, 2014, at 3:03 AM, Maxim Lacrima <lacrima.maxim@gmail.com> wrote:
Yes, this is definitely a bug. The interface says it should be there, it's called by a user of the interface, and it is not present. Pretty clearly wrong. Can you file a ticket?
I use insults to create some curses-like ui and I need widgets to be redrawn when the size of window is changed.
This is definitely possible. Just to get yourself unblocked right now, you can probably give your TerminalRealm a different sessionFactory programmatically, one that subclasses TerminalSession and hacks in the requisite method. But please help us fix this for real going forward too ;). -glyph
![](https://secure.gravatar.com/avatar/607cfd4a5b41fe6c886c978128b9c03e.jpg?s=120&d=mm&r=g)
On 10:17 am, glyph@twistedmatrix.com wrote:
Good news. No need to file a ticket: https://twistedmatrix.com/trac/ticket/3303 Just need to resolve it. Jean-Paul
![](https://secure.gravatar.com/avatar/e1554622707bedd9202884900430b838.jpg?s=120&d=mm&r=g)
On Jul 31, 2014, at 3:03 AM, Maxim Lacrima <lacrima.maxim@gmail.com> wrote:
Yes, this is definitely a bug. The interface says it should be there, it's called by a user of the interface, and it is not present. Pretty clearly wrong. Can you file a ticket?
I use insults to create some curses-like ui and I need widgets to be redrawn when the size of window is changed.
This is definitely possible. Just to get yourself unblocked right now, you can probably give your TerminalRealm a different sessionFactory programmatically, one that subclasses TerminalSession and hacks in the requisite method. But please help us fix this for real going forward too ;). -glyph
![](https://secure.gravatar.com/avatar/607cfd4a5b41fe6c886c978128b9c03e.jpg?s=120&d=mm&r=g)
On 10:17 am, glyph@twistedmatrix.com wrote:
Good news. No need to file a ticket: https://twistedmatrix.com/trac/ticket/3303 Just need to resolve it. Jean-Paul
participants (4)
-
exarkun@twistedmatrix.com
-
Glyph
-
Glyph Lefkowitz
-
Maxim Lacrima