Re: My First Post - How could I do ...
Features Requested:
1)I would like to color chars both foreground and background in different ways in the same text
2)I would like to color the background of a whole line when it's requested
3)I would like to write blink chars
A Widget that could render these HTML features would be perfect, but i don't know if it exists
Why would the buffer of a telnet application have parsed HTML in it? Are you making a telnet app or a web browsing app?
I'll surely come back for the "blink" feature... i think it's all about recoding some paint function but It's my first approach to QT I don't know if I'll be able.
No, just add a QTimer, a slot, and a toggle variable in your reimplementation of the widget, make a connect() in the widget constructor between the timer and the widget, then when the timer sends the timeout() signal, check in your slot if the toggle is set to on or off, hide or show the relevant text, set the toggle to the opposite, and restart the timer.
Only two problems I have with this without trying it:
1. Blinking text is annoying and your program will probably take a lot of time to support full terminal emulation, unless you want something like Microsoft's old telnet client (i.e. Notepad with local echo).
2. I think this program would be funny with 80x24 rows of blinking text and one row at the bottom where you are trying to type something really fast over a slow connection to the remote computer.
My philosophy is: If you can use a free, open-source alternative: do it. And if you can't, pretend it's free and open-source and hope you don't get caught.
Bookmarks