Hey Guillaume, thanks for the response. I probably should use Vte. I used TextView until now, because I'm not sure if Vte offers some features I need.
For instance, I have to draw lines on top of written text (no text based characters, real cairo stuff). For that I need to be able to get the cursor location from the text window. Whilst TextView.get_iter_location() offers the X- and Y-coordinates, Vte.get_cursor_position() only tells me at which column and row the cursor stands. I might be able to do the calculation (font-width * columns, font-height * rows) to estimate the graphical coordinates. However, I wasn't sure if I knew enough to go ahead this way. Not knowing much about curses either, I was pondering if it might be the better option then. Still not sure where to go, to be honest. Best gilzad > Gesendet: Samstag, 05. Dezember 2015 um 04:41 Uhr > Von: "Guillaume Poirier-Morency" <guillaumepoiriermore...@gmail.com> > An: vala-list@gnome.org > Betreff: Re: [Vala] Nest ncurses in a Gtk window? > > Why don't you use Vte? It's designed to embed terminal http://valadoc.o > rg/#!api=vte-2.91/Vte.Terminal > > Sorry if you have received two messages, I did not send the first one > through the mailing list. > > Le vendredi 04 décembre 2015 à 19:32 +0100, Gilzad Hamuni a écrit : > > Hi list, > > > > sorry to ask if this has been answered before, I might have chosen > > the wrong terms while searching. > > > > Is it possible to nest curses into a Gtk.Window? > > > > I was thinking of cascading it into a Vte and put that into a > > Gtk.Window but my thoughts kind of got stuck how to approach > > correctly in Vala. > > > > Background: > > I wrote a Gtk application that emulates a specific terminal using a > > Gtk.TextView to display and format everything. Turns out it's not as > > responsive as it should be and I blame my early choice for the rather > > complex TextView. So I'd probably exchange the TextView by something > > that is more suitable for terminal displays. However, people shall be > > able to see the content in a Gtk.Window. That's where I'm stuck. Any > > advice? > > > > Thanks a bunch in advance > > > > gilzad > > _______________________________________________ > > vala-list mailing list > > vala-list@gnome.org > > https://mail.gnome.org/mailman/listinfo/vala-list > -- > Guillaume Poirier-Morency <guillaumepoiriermore...@gmail.com> > > Étudiant au baccalauréat en Informatique à l'Université de Montréal > Développeur d'application web > > Mon blog: https://arteymix.github.io/ > Mon projet de coopérative: https://pittoresque.github.io/ > Clé PGP: B1AD6EA5 > _______________________________________________ > vala-list mailing list > vala-list@gnome.org > https://mail.gnome.org/mailman/listinfo/vala-list > _______________________________________________ vala-list mailing list vala-list@gnome.org https://mail.gnome.org/mailman/listinfo/vala-list