Thread overview | ||||||
---|---|---|---|---|---|---|
|
April 03, 2014 execute commands in the terminal OSX | ||||
---|---|---|---|---|
| ||||
It says in the Language Reference not to use system and gives other options. But the other options don't seem to work. I just have code system("clear"); |
April 03, 2014 Re: execute commands in the terminal OSX | ||||
---|---|---|---|---|
| ||||
Posted in reply to Joel | On Thursday, 3 April 2014 at 04:58:12 UTC, Joel wrote: > It says in the Language Reference not to use system and gives other options. But the other options don't seem to work. I just have code system("clear"); Try this: http://dlang.org/phobos/std_process.html#.executeShell |
April 07, 2014 Re: execute commands in the terminal OSX | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gary Willoughby | I've course I tried these things, but there doesn't seem to be some thing to do the same thing as 'system'. At least to clear the terminal.
On Thursday, 3 April 2014 at 09:00:26 UTC, Gary Willoughby wrote:
> On Thursday, 3 April 2014 at 04:58:12 UTC, Joel wrote:
>> It says in the Language Reference not to use system and gives other options. But the other options don't seem to work. I just have code system("clear");
>
> Try this: http://dlang.org/phobos/std_process.html#.executeShell
|
April 07, 2014 Re: execute commands in the terminal OSX | ||||
---|---|---|---|---|
| ||||
Posted in reply to Joel | On Monday, 7 April 2014 at 03:30:18 UTC, Joel wrote:
> I've course I tried these things, but there doesn't seem to be some thing to do the same thing as 'system'. At least to clear the terminal.
>
> On Thursday, 3 April 2014 at 09:00:26 UTC, Gary Willoughby wrote:
>> On Thursday, 3 April 2014 at 04:58:12 UTC, Joel wrote:
>>> It says in the Language Reference not to use system and gives other options. But the other options don't seem to work. I just have code system("clear");
>>
>> Try this: http://dlang.org/phobos/std_process.html#.executeShell
I would just use system("clear") for something this trivial.
If you want to spawn long running tasks that you can monitor, redirect etc. then I'd recommend switching to std.process.
/uri
|
Copyright © 1999-2021 by the D Language Foundation