GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Jul 25, 2014 8:25 am

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: gtk_text_view to behave like terminal
PostPosted: Fri Mar 08, 2013 4:40 pm 
Offline
Familiar Face

Joined: Thu Mar 07, 2013 8:33 am
Posts: 6
Hi, I have used every trick to make the edit box behave like in terminal but unable to do so... could any one give me a direction.

I am a beginner though.


Top
 Profile  
 
 Post subject: Re: gtk_text_view to behave like terminal
PostPosted: Sat Mar 09, 2013 3:31 am 
Offline
GTK+ Geek

Joined: Fri Sep 04, 2009 6:53 am
Posts: 68
Are you trying to reinvent libvte https://developer.gnome.org/vte/?


Top
 Profile  
 
 Post subject: Re: gtk_text_view to behave like terminal
PostPosted: Sat Mar 09, 2013 9:56 am 
Offline
Familiar Face

Joined: Thu Mar 07, 2013 8:33 am
Posts: 6
no I am not trying to reinvent all the way but like to make similar program... Like in terminal that you cannot go to the previous line after pressing enter. you cannot delete the previous commands entered and the cursor shape and also take in commands entered.... it's sort of a project i want to do... not emulate the terminal of course.


BUT thank you very much for the link it helped me a lot.... I am still going through the link you gave me it helped me a lot. and yes still searching the www and learning...

Thank you a lot. :]


Top
 Profile  
 
 Post subject: Re: gtk_text_view to behave like terminal
PostPosted: Tue Mar 19, 2013 6:56 am 
Offline
Familiar Face

Joined: Thu Mar 07, 2013 8:33 am
Posts: 6
Any one could suggest or something. I would be glad.


Top
 Profile  
 
 Post subject: Re: gtk_text_view to behave like terminal
PostPosted: Tue Mar 19, 2013 7:22 am 
Offline
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 733
Location: UK
Hi,

What it seams like you are trying to do is use a text editing widget as a command line. This is not going to work without huge programming skills and possibly a total re-write of the widget.

If what you want is a command line widget then libvte is probably what you want.

With out further information on what you are trying to achieve it is impossible to give you an answer. Your first question of just one line does not enough information.

_________________
E.


Top
 Profile  
 
 Post subject: Re: gtk_text_view to behave like terminal
PostPosted: Tue Mar 26, 2013 8:55 am 
Offline
Familiar Face

Joined: Thu Mar 07, 2013 8:33 am
Posts: 6
hello,

yes, I am trying to do exactly what you have put it. I am sorry I am a little bad with english.
and yes I have tried up to some extent but the codes are not enough for the gtk_text_view. It still needs to be written more.

and vte is not what i am trying to do but I am trying to achieve with gtk_text_view. "just like in terminal but not exactly like terminal but where you can type in commands and get the appropriate reaction once you press enter just like in terminal."

behaviour same like terminal but by using gtk_text_view.


by the way I am using ubuntu 10.04.

thank you very much.


Top
 Profile  
 
 Post subject: Re: gtk_text_view to behave like terminal
PostPosted: Wed Mar 27, 2013 12:00 pm 
Offline
Never Seen the Sunlight

Joined: Mon Apr 28, 2008 5:52 am
Posts: 733
Location: UK
It seams that the best solution for you is a custom widget which needs to be written from the ground up.

I would suggest that you search out the source code for VTE and GtkTextView to learn how they do the features that you need to build your custom widget.

_________________
E.


Top
 Profile  
 
 Post subject: Re: gtk_text_view to behave like terminal
PostPosted: Sun Mar 31, 2013 5:47 pm 
Offline
Familiar Face

Joined: Thu Mar 07, 2013 8:33 am
Posts: 6
thank you very much for the info.... I have downloaded the python version of the vte and learning the codes... but still any body could suggest more... It would be very beneficial to me. :]

thanking you...


Top
 Profile  
 
 Post subject: Re: gtk_text_view to behave like terminal
PostPosted: Tue Apr 09, 2013 11:22 am 
Offline
Familiar Face

Joined: Thu Mar 07, 2013 8:33 am
Posts: 6
any one could suggest more... It would be good.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group