Index: [thread] [date] [subject] [author]
  From: Andrew Apted <ajapted@netspace.net.au>
  To  : ggi-develop@eskimo.com
  Date: Sat, 1 Aug 1998 12:17:59 +1000

Re: bughunting

Jan writes:

>  yesterday, i started bughunting in display-aa. i havn't done it perfectly
>  but i'll do rest today. 
>  BTW: 1. howto find out if the programm is in X ?? (DISPLAY= )??

Yep, e.g. if (getenv("DISPLAY") != NULL) ...

>       2. hwoto find out the size of the console ??

One possibility: open("/dev/tty") and issue the TIOCGWINSZ ioctl.  I can
send more info if you like.

>  Next one. if i use the same code and do an
>  's/ggiOpen(NULL)/ggiOpen("display-svga":)/' i'll get a seg-fault.

Note that ggiOpen() needs a trailing NULL parameter, as in :

   ggiOpen(NULL) or ggiOpen("svga", NULL).

Cheers,
_____________________________________________  ____
                                               \  /
  Andrew Apted   <andrew@ggi-project.org>       \/
  

Index: [thread] [date] [subject] [author]