Re: [Twisted-Python] Embedding manhole interpreter into insults widget.

2014-08-07 Thread Maxim Lacrima
Hi, Thanks for your explanation. Now I understand a lot better how things work. I will try to implement "native" manhole widget. I think this will be a good exercise for me to learn how terminals and `twisted.conch` work. Thanks. On 7 August 2014 14:53, wrote: > On 6 Aug, 06:14 pm, lacrima.ma

Re: [Twisted-Python] Embedding manhole interpreter into insults widget.

2014-08-07 Thread exarkun
On 6 Aug, 06:14 pm, lacrima.ma...@gmail.com wrote: Hello, I have been trying to create a widget that encloses manhole interpreter. Here is somewhat hacky implementation that I came up with at this moment: Widgets and the manhole interpreter are implemented using two pretty distinct approach

Re: [Twisted-Python] Embedding manhole interpreter into insults widget.

2014-08-07 Thread Maxim Lacrima
On 6 August 2014 22:48, Glyph Lefkowitz wrote: > > Optimizing this will almost certainly involve patching Twisted. Which you > should definitely do :). > > The reason the entire screen is redrawn is that a *general* implementation > of a widget, i.e. one that can be displayed anywhere on the ter

Re: [Twisted-Python] Embedding manhole interpreter into insults widget.

2014-08-06 Thread Glyph Lefkowitz
On Aug 6, 2014, at 11:14 AM, Maxim Lacrima wrote: > The reason is that on each keystroke, the whole terminal buffer is redrawn. I > wonder how I can optimize this. Currently I don't see a solution. Also I am > wondering if I took right approach to embed manhole interpreter into a widget > in