Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 little problem'o with the forking execv'o
Index -> Programming, C -> C Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Geminias




PostPosted: Tue Feb 26, 2008 9:20 pm   Post subject: little problem'o with the forking execv'o

unix api naturally:

say you fork your terminal application and execute "ls -l" in the child, why won't the color and the formatting etc... appear in the output? I've got it just printing the plaintext output.

Is there a way to do it through perhaps piping?
Sponsor
Sponsor
Sponsor
sponsor
OneOffDriveByPoster




PostPosted: Tue Feb 26, 2008 10:19 pm   Post subject: Re: little problem'o with the forking execv'o

Can you try adding --color=auto ? I think you normally get colour because of aliases in the shell that set that option.
Display posts from previous:   
   Index -> Programming, C -> C Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: