Working on character matrix for terminal