On 9 March 2018 at 16:56, Pavel Krivanek <pavel.kriva...@gmail.com> wrote:
> 2018-03-09 16:47 GMT+01:00 Alistair Grant <akgrant0...@gmail.com>:
>> Hi Pavel,
>>
>> On 9 March 2018 at 16:12, Pavel Krivanek <pavel.kriva...@gmail.com> wrote:
>>> 2018-03-09 16:02 GMT+01:00 Alistair Grant <akgrant0...@gmail.com>:
>>>> Hi Pavel,
>>>>
>>>> I tried to get this working on Ubuntu 16.04 and found the following:
>>>>
>>>> - The compilation failed unless I added the '-fPIC' flag (as suggested by 
>>>> gcc).
>>>
>>> is it on 64-bit system and VM?
>>
>> Yep.
>
> I will check that, I guess some package is missing in this Ubuntu
> environment because I think I checked it on the same system without
> this issue.
>
>>
>>
>>>> - The example code in the TerminalEmulator class comment references
>>>> ProcessEndpoint, but the class doesn't exist.
>>>
>>> Thanks, this class was renamed
>>
>> To PseudoTTYEndpoint, it looks like.
>>
>> Cool!  The interactive terminal is up and running.
>>
>> Is it possible to have a cursor?
>
> the original implementation had it, I need to only fix it ;-)
>>
>> How does one pass more than one argument, for example, if I want to
>> execute "ls -l -h", what should be the format be (ignore that the two
>> arguments can be combined in this case, it's just as a simple
>> example)?
>>
>> PseudoTTYEndpoint command: '/bin/ls' arguments: #('-l -h')
>>
>> produces:
>>
>> ls: invalid option -- ' '
>> Try 'ls --help' for more information.
>>
>>
>> PseudoTTYEndpoint command: '/bin/ls' arguments: #('-l' '-h')
>>
>> ignores the second argument.
>
> In this prototype implementation, only one argument is allowed because
> to pass variable arguments list with FFI is not trivial. It will be
> fixed soon.

Great, thanks!

Cheers,
Alistair

Reply via email to