[Gambas-user] allocating a pty in gambas

na2492 at ...9... na2492 at ...9...
Tue Aug 10 10:52:39 CEST 2004


>Le lundi 9 Août 2004 20:46, Rob a écrit :
>> I'm trying to write an application, one of whose features is a
>> terminal emulator window in which an ssh session on a remote
>> host will be displayed.  But (as with the Console example),
>> there is no way to allocate a pty when you shell a process, so
>> many programs (like less, emacs, etc.) won't run or run
>> incorrectly.
>>
>> I'm not asking for terminal emulation support.... we have our own
>> terminal type here and I'm implementing that myself.  But unix
>> programs work differently depending on whether they're run from
>> a terminal or not, and whether or not they're running in a pty
>> determines that behavior.
>>
>> Is there some way I can fake this using clever use of the open
>> and shell commands, process objects, etc. or am I gonna have to
>> write another perl helper app (which would call the Perl builtin
>> IO::Pty class)? ;)
>>
>> Rob
>>
>>
>
>i've got the same prob while trying to run the su command. with shell or exec

>xommand the same error :
>
>su: must be run from a terminal
>
>
>--
>
>Laurent Carlier
Salut,

try kdesu

Amicalment
Charlie
* Gesendet mit / Sent by: FEN-Webmail * http://www.fen-net.de *




More information about the User mailing list