Remove queue_str_task related code
Enhance terminal control characters handling in command line