attr_swidth
width += attr_swidth(attr[from]);
width += attr_swidth(next_attr);
w += attr_swidth(a);
static int attr_swidth(int);