[prev in list] [next in list] [prev in thread] [next in thread] 

List:       konsole-devel
Subject:    [Konsole-devel] Re: Konsole API question
From:       Waldo Bastian <bastian () svn ! net>
Date:       2002-10-31 12:37:54
[Download RAW message or body]

On Wednesday, October 23, 2002, at 12:36 , ROIVANEN HENTTUNEN wrote:
> Hi.
> Im trying to develop a application that needs to embedd a
> text application. The best way and most simple seems to be to embedd a
> Konsole KPart, but I also need to send input to the application, is
> there anyway of doing this using the konsole KPart ?

With KDE 3.1, yes. In order to do so you must make sure to pass 
"TerminalEmulator" as classname when creating the konsole part. When you 
do that you can use the KPart functions doOpenStream // doWriteStream // 
doCloseStream to write commands to the terminal. doOpenStream and 
doCloseStream don't really do anything at this point but it doesn't hurt 
to call them anyway. Strings passed to doWriteStream must be encoded 
with local8Bit().

Cheers,
Waldo

_______________________________________________
konsole-devel mailing list
konsole-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/konsole-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic