Handler redirect implementation
adding the nocolor option to avoid coloring input for non compatible terminal.