[openbeos] Re: OBOS Terminal

  • From: François Revol <revol@xxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Mon, 5 Jul 2004 22:55:35 +0200

> 3. neither version respects the default settings file
I needed to RE the terminal settings file format, 
here is how it looks:

#define TP_MAGIC 0xf1f2f3f4
#define TP_VERSION 0x02
#define TP_FONT_NAME_SZ 128

struct tpref {
        uint32 cols;
        uint32 rows;
        uint32 tab_width;
        uint32 font_size;
        char font[TP_FONT_NAME_SZ]; // "Family/Style"
        uint32 cursor_blink_rate; // blinktime in µs = 1000000
        uint32 refresh_rate; // ??? = 0
        rgb_color bg;
        rgb_color fg;
        rgb_color curbg;
        rgb_color curfg;
        rgb_color selbg;
        rgb_color selfg;
        char encoding; // index in the menu (0 = UTF-8)
        char unknown[3];
}; /* this is what is sent to the Terminal window... actually not ! It's sent 
by Terminal to itself. */

struct termprefs {
        uint32 magic;
        uint32 version;
        float x;
        float y;
        struct tpref p;
};

François.

Other related posts: