Fix SEGV on terminals without 'IC' capability (Yoshiaki Kasahara).