Hi Jeff,

Jeff Wheeler <wheel...@illinois.edu> writes:

> On Tue, Oct 26, 2010 at 6:55 PM, Andy Stewart
> <lazycat.mana...@gmail.com> wrote:
>
>> If you want VTE implement MVC (model/view split) design, it won't
>> happen. That's why i drop VTE library in my MVC project.
>>
>> VTE widget is mix 'model' and 'view' code, you need create *new* VTE
>> widget if you want do split action.
>
> I'm not sure how this relates to what I want to do. When the vty ui
> runs, it's basically just reading/writing from the terminal, right?
>
> I was thinking there'd be some way to call Vty.start and have it
> read/write to something we could feed into vte. Then, we could have
> one Yi, Editor, etc. I have no idea if that's possible, but it seems
> like the only good way to do stuff like setting the terminal cursor
> shape.
If you want feed data to VTE terminal, you can use below functions:

  • terminalFeed :: TerminalClass self => self -> String -> IO ()
  • terminalFeedChild :: TerminalClass self => self -> String -> IO ()
  • terminalFeedChildBinary :: TerminalClass self => self -> [Word8] -> IO ()

VTE documentation at 
http://hackage.haskell.org/packages/archive/vte/0.11.1/doc/html/Graphics-UI-Gtk-Vte-Vte.html

Cheers,

  -- Andy

-- 
Yi development mailing list
yi-devel@googlegroups.com
http://groups.google.com/group/yi-devel

Reply via email to