You might try to emulate the putty terminal. You can get the source code from:
http://www.chiark.greenend
It's written in c, but easily translatable to c++.
HTH
Gene
Main Topics
Browse All TopicsI have to build a Qt widget that acts as a terminal. It will be used like an xterm in my application.
I don't need the code, but a few good ideas on how to do it.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
You might try to emulate the putty terminal. You can get the source code from:
http://www.chiark.greenend
It's written in c, but easily translatable to c++.
HTH
Gene
It seems like your question really is:
"How do I make a GUI terminal in Qt using a widget?"
Even though a widget is gui, that doesn't mean that your question involves a gui. It could be a millioni things. I don't know if you don't know Qt or don't know c++.
So, what do you know? What knowledge are you starting with?
Do you know how to make a widget?
Do you know how to compile a Qt program?
Do you know how to connect signals and slots?
You should try this resource:
http://www.qtcentre.org/
http://www.qtcentre.org/fo
HTH
Gene
Yes, I'm still looking. No, the comments didn't help at all. I am not willing to discuss "... a million things".
The question was quite clear: I am looking for a QT widget that works like a terminal. My designs are pure C++, therfore I am not interested in C code. The generic links have the same effect as "just ask at EE" ;-)
I hoped somebody at EE had this problem already ...
=====
Werner
when i did this i subclassed a qtextedit (super easy)
it is pretty clean & handles the scrolling, copy/cut/paste and such for you.
all you really have to worry about is a bit of formatting
make sure you don't delete the prompt: this is done by reimplementing the doKeyBoardAction() function & catching QTextEdit::ActionBackspace
process commands when the user presses enter: connect the returnPressed() signal to a slot of your design where you parse your text and perform the appropriate action
cleaning up funky mouse stuff: reimplement placeCursor() & moveCursor() (so it doesn't look like a 12 year old wrote your code like windows cmd copy & paste)
you can add more functionality as you go along but this should get your terminal working
does this help?
~sean
Business Accounts
Answer for Membership
by: ugebPosted on 2007-06-23 at 15:09:21ID: 19349215
I think you need to be more explicit. What 'good ideas' are you needing? GUI? networking? Signals & Slots? What do you have so far?
Gene