g_init.c 516 B

1234567891011121314151617181920212223242526272829
  1. #include <curses.h>
  2. #include <grass/gis.h>
  3. #include "globals.h"
  4. #include "local_proto.h"
  5. int g_init(void)
  6. {
  7. /* initialize graphics processor, define viewports */
  8. Init_graphics();
  9. /* load the color table
  10. set_colors ();
  11. set_plane10 ();
  12. */
  13. /* clear both frames */
  14. /* select frame 1 to show and to modify
  15. select_frame (1,3);
  16. clear ();
  17. select_frame (1,1);
  18. */
  19. /* select map_window
  20. map_window();
  21. */
  22. return 0;
  23. }