Axel Simon <[email protected]> writes: > On Wed, 2009-09-23 at 15:39 +0800, Andy Stewart wrote: >> Hi Axel, >> >> Today i read source code of VTE, i found it not develop split `model` >> and `view` like GTK+ framework's, it harded-code `model` and `view` in >> one module, so i can't split temrinal window like `TextBuffer` and >> `TextView`, too bad. >> >> The every widget in my project support always `module/view` framework >> for split window. >> >> If i develop `TemrinalBuffer` contain process information and common >> data, and use Cario build `TerminalView` widget for render >> `TerminalBuffer`, current gtk2hs support it? > > Maybe I don't quite understand what VTE is about, but if it's just a > terminal widget, then you can't modify it's state. So I don't think > there is a need to split the widget into a model and a view. Furthermore > if that is ever done, then the people maintaining VTE should use Gtk's > TextBuffer model, I don't think it's feasible to try to simulate that > VTE uses, say, TextBuffer to store its content. Think about this, you want study some command from Man page, you can split terminal window with two view, one view scroll for view command in Man page, and another view is run command and check command output. And those two views contain same data, just display different part for compare.
In Emacs, i write MultiTerm (http://www.emacswiki.org/emacs/MultiTerm) for support split Terminal that display same buffer. I have send mail to Maintainer of VTE library to suggestion he change code for support model/view. Or use Haskell build `TerminalBuffer` and `TerminalView'. Cheers, -- Andy ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ Gtk2hs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel
