#define SPECIAL_CHAR '\x01'
-/* why 256? cause an array of more then 256 doubles seems excessive,
- * and who needs that kind of precision anyway? */
-#define MAX_GRAPH_DEPTH 256
+#define MAX_GRAPH_DEPTH 512
-//don't use spaces in LOGGRAPH or NORMGRAPH if you change them
-#define LOGGRAPH "log"
-#define NORMGRAPH "normal"
+// don't use spaces in LOGGRAPH or NORMGRAPH if you change them
+#define LOGGRAPH "-l"
+#define TEMPGRAD "-t"
enum special_types {
- HORIZONTAL_LINE,
+ HORIZONTAL_LINE = 1,
STIPPLED_HR,
BAR,
FG,
unsigned long first_colour; // for graph gradient
unsigned long last_colour;
short font_added;
+ char tempgrad;
};
/* direct access to the registered specials (FIXME: bad encapsulation) */
extern struct special_t *specials;
-extern unsigned int special_count;
+extern int special_count;
extern int default_bar_width;
extern int default_bar_height;
+#ifdef X11
extern int default_graph_width;
extern int default_graph_height;
extern int default_gauge_width;
extern int default_gauge_height;
+#endif
/* max number of specials allowed (TODO: use linked list instead) */
-extern unsigned int max_specials;
+extern int max_specials;
/* scanning special arguments */
-const char *scan_gauge(const char *, int *, int *);
const char *scan_bar(const char *, int *, int *);
+#ifdef X11
+const char *scan_gauge(const char *, int *, int *);
char *scan_font(const char *);
char *scan_graph(const char *, int *, int *, unsigned int *,
- unsigned int *, unsigned int *, char *);
+ unsigned int *, unsigned int *, char *, char *);
/* printing specials */
void new_gauge(char *, int, int, int);
void new_bar(char *, int, int, int);
void new_font(char *, char *);
void new_graph(char *, int, int, unsigned int,
- unsigned int, double, int, int, char);
+ unsigned int, double, int, int, char, char);
void new_hr(char *, int);
void new_stippled_hr(char *, int, int);
+#endif
+void new_bar_in_shell(char *, int, double, int);
void new_fg(char *, long);
void new_bg(char *, long);
void new_outline(char *, long);