ls -la # This gives a coloured output.
But,
puts %x{ ls -la } # The colours aren't preserved here.
Is there a way to get coloured output??
ls -la # This gives a coloured output.
But,
puts %x{ ls -la } # The colours aren't preserved here.
Is there a way to get coloured output??