~xzfc/libvterm/libvterm

« back to all changes in this revision

Viewing changes to src/vterm.c

  • Committer: Albert Safin
  • Date: 2017-10-25 09:41:50 UTC
  • Revision ID: xzfcpw@gmail.com-20171025094150-wq78wsd1fwwiju4a
Export color indexes

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
VTermValueType vterm_get_attr_type(VTermAttr attr)
225
225
{
226
226
  switch(attr) {
227
 
    case VTERM_ATTR_BOLD:       return VTERM_VALUETYPE_BOOL;
228
 
    case VTERM_ATTR_UNDERLINE:  return VTERM_VALUETYPE_INT;
229
 
    case VTERM_ATTR_ITALIC:     return VTERM_VALUETYPE_BOOL;
230
 
    case VTERM_ATTR_BLINK:      return VTERM_VALUETYPE_BOOL;
231
 
    case VTERM_ATTR_REVERSE:    return VTERM_VALUETYPE_BOOL;
232
 
    case VTERM_ATTR_STRIKE:     return VTERM_VALUETYPE_BOOL;
233
 
    case VTERM_ATTR_FONT:       return VTERM_VALUETYPE_INT;
234
 
    case VTERM_ATTR_FOREGROUND: return VTERM_VALUETYPE_COLOR;
235
 
    case VTERM_ATTR_BACKGROUND: return VTERM_VALUETYPE_COLOR;
 
227
    case VTERM_ATTR_BOLD:             return VTERM_VALUETYPE_BOOL;
 
228
    case VTERM_ATTR_UNDERLINE:        return VTERM_VALUETYPE_INT;
 
229
    case VTERM_ATTR_ITALIC:           return VTERM_VALUETYPE_BOOL;
 
230
    case VTERM_ATTR_BLINK:            return VTERM_VALUETYPE_BOOL;
 
231
    case VTERM_ATTR_REVERSE:          return VTERM_VALUETYPE_BOOL;
 
232
    case VTERM_ATTR_STRIKE:           return VTERM_VALUETYPE_BOOL;
 
233
    case VTERM_ATTR_FONT:             return VTERM_VALUETYPE_INT;
 
234
    case VTERM_ATTR_FOREGROUND:       return VTERM_VALUETYPE_COLOR;
 
235
    case VTERM_ATTR_BACKGROUND:       return VTERM_VALUETYPE_COLOR;
 
236
    case VTERM_ATTR_FOREGROUND_INDEX: return VTERM_VALUETYPE_INT;
 
237
    case VTERM_ATTR_BACKGROUND_INDEX: return VTERM_VALUETYPE_INT;
236
238
 
237
239
    case VTERM_N_ATTRS: return 0;
238
240
  }