Don't calcualte num of chars when terminal is not visible #131 and Add rest property to parseCommand