28 #include <grass/config.h>
34 #include <sys/types.h>
36 #include <grass/gis.h>
37 #include <grass/vask.h>
38 #include <grass/glocale.h>
59 if ((file = fopen(home,
"a")) ==
NULL) {
60 V_error(_(
"Unable to open file %s"), home);
64 getyx(stdscr, cury, curx);
67 "--------------------------------------------------------\n");
68 for (atrow = 0; atrow < LINES; atrow++) {
69 for (atcol = 0; atcol < COLS - 1; atcol++) {
71 fprintf(file,
"%c", (
int)(inch() & A_CHARTEXT));
76 "--------------------------------------------------------\n");
77 fprintf(file,
"\n\n");
99 ans_ptr = answer + ans_col;
100 while (ans_col >= 0) {
101 int c = *(
unsigned char *)ans_ptr;
103 if (c >
'\040' && c !=
'\177' && c !=
'_')
sprintf(buf2,"%s", G3D_CATS_ELEMENT)
void V__remove_trail(int ans_col, char *answer)
Remove trailing text from answer?
char * G_home(void)
user's home directory
void V_error(const char *fmt,...)
int V__dump_window(void)
Dumps screen to file.