teken.h (6cec9cad762b6476313fb1f8e931a1647822db6b) | teken.h (2610c9f2b2449c968304f48bf73d1eef2f4be558) |
---|---|
1/*- 2 * Copyright (c) 2008-2009 Ed Schouten <ed@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 42 unchanged lines hidden (view full) --- 51#define TC_RED 1 52#define TC_GREEN 2 53#define TC_BROWN 3 54#define TC_BLUE 4 55#define TC_MAGENTA 5 56#define TC_CYAN 6 57#define TC_WHITE 7 58#define TC_NCOLORS 8 | 1/*- 2 * Copyright (c) 2008-2009 Ed Schouten <ed@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 42 unchanged lines hidden (view full) --- 51#define TC_RED 1 52#define TC_GREEN 2 53#define TC_BROWN 3 54#define TC_BLUE 4 55#define TC_MAGENTA 5 56#define TC_CYAN 6 57#define TC_WHITE 7 58#define TC_NCOLORS 8 |
59#define TC_LIGHT 8 /* ORed with the others. */ |
|
59 60typedef struct { 61 teken_unit_t tp_row; 62 teken_unit_t tp_col; 63} teken_pos_t; 64typedef struct { 65 teken_pos_t tr_begin; 66 teken_pos_t tr_end; --- 131 unchanged lines hidden (view full) --- 198#define TKEY_F12 0x15 199const char *teken_get_sequence(teken_t *, unsigned int); 200 201/* Legacy features. */ 202void teken_set_8bit(teken_t *); 203void teken_set_cons25(teken_t *); 204 205/* Color conversion. */ | 60 61typedef struct { 62 teken_unit_t tp_row; 63 teken_unit_t tp_col; 64} teken_pos_t; 65typedef struct { 66 teken_pos_t tr_begin; 67 teken_pos_t tr_end; --- 131 unchanged lines hidden (view full) --- 199#define TKEY_F12 0x15 200const char *teken_get_sequence(teken_t *, unsigned int); 201 202/* Legacy features. */ 203void teken_set_8bit(teken_t *); 204void teken_set_cons25(teken_t *); 205 206/* Color conversion. */ |
207teken_color_t teken_256to16(teken_color_t); |
|
206teken_color_t teken_256to8(teken_color_t); 207 208#endif /* !_TEKEN_H_ */ | 208teken_color_t teken_256to8(teken_color_t); 209 210#endif /* !_TEKEN_H_ */ |