Lines Matching defs:tabs
1 /* $XTermId: tabs.c,v 1.47 2019/11/13 23:19:01 tom Exp $ */
55 /* tabs.c */
63 #define SET_TAB(tabs,n) UIntSet(tabs[TAB_INDEX(n)], TAB_MASK(n))
64 #define CLR_TAB(tabs,n) UIntClr(tabs[TAB_INDEX(n)], TAB_MASK(n))
65 #define TST_TAB(tabs,n) (tabs[TAB_INDEX(n)] & (unsigned) TAB_MASK(n))
71 TabReset(Tabs tabs)
75 TabZonk(tabs);
78 TabSet(tabs, i);
85 TabSet(Tabs tabs, int col)
88 SET_TAB(tabs, col);
96 TabClear(Tabs tabs, int col)
99 CLR_TAB(tabs, col);
109 TabNext(XtermWidget xw, Tabs tabs, int col)
120 if (TST_TAB(tabs, col))
132 TabPrev(Tabs tabs, int col)
135 if ((col < MAX_TABS) && TST_TAB(tabs, col))
149 int next = TabNext(xw, xw->tabs, screen->cur_col);
169 int next_column = TabPrev(xw->tabs, screen->cur_col);
183 * clears all tabs
186 TabZonk(Tabs tabs)
188 memset(tabs, 0, sizeof(*tabs) * TAB_ARRAY_SIZE);
195 TabIsSet(Tabs tabs, int col)
197 return TST_TAB(tabs, col) ? True : False;