Thanks. Yeah, after I sent out the email, I realized I had a program manual with me here. You know I didn't bring a lot of references. I found the func called G_get_default_window(window). Oh, have you ever used D_get_u_east()? Also for west sout and north. I recall they're GRASS functions. But it won't compile. --Xin