Adding ANSI mode with charm and keypress modules