Jim Porter writes: Hi, so turns out terminfo returns a max-ptr for tigetstr when the terminfo definition is missing. There's checks for this for setb24 and setf24 but not in the patch I supplied. Updated to check this and added a macro definition to avoid repeating the same condition logic 3 times.