[Konsole-devel] Using konsole widget in another application

Robert Knight robertknight at gmail.com
Mon Oct 8 14:49:35 UTC 2007


> I've got konsole from KDE svn trunk. Can someone please give me a
> hint, from what class I should start trying to rip off konsole widget
> (and all the underlying terminal emulation)?

The main classes you need are Emulation, Vt102Emulation, Screen which
decode incoming blocks of characters and translate them into an
on-screen image represented by Character and CharacterColor objects.
In Konsole this is then rendered by the TerminalDisplay class.

You didn't mention where the incoming character stream is from.  In
Konsole the kdelibs KPty / K3Process classes are used to start the
shell and send/receive data to/from it.  The Emulation class has slots
to receive this data and process it.

Regards,
Robert.

On 08/10/2007, Vladimir Pouzanov <farcaller at gmail.com> wrote:
> Hello all,
>
> I'm working on a telnet-like terminal (Qt4-only application). It seems
> that my first approach to use QTextBrowser and span's to make VT100
> color sequences work is too slow (I don't really need to handle
> something other then color codes). That's why I decided to try
> re-using konsole code.
>
> I've got konsole from KDE svn trunk. Can someone please give me a
> hint, from what class I should start trying to rip off konsole widget
> (and all the underlying terminal emulation)?
>
> --
> Sincerely,
> Vladimir "Farcaller" Pouzanov
> http://hackndev.com
> _______________________________________________
> konsole-devel mailing list
> konsole-devel at kde.org
> https://mail.kde.org/mailman/listinfo/konsole-devel
>



More information about the konsole-devel mailing list