- Timestamp:
- Sep 2, 2002, 12:10:37 PM (22 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 5145235
- Parents:
- c01e477
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
global.c
rc01e477 r61e79a9 63 63 strcpy(g->buffercommand, ""); 64 64 65 65 66 owl_global_set_config_format(g, 0); 66 67 owl_global_set_userclue(g, OWL_USERCLUE_NONE); … … 381 382 } 382 383 383 /* tty (not fully implemented yet) */384 385 void owl_global_set_tty_old(owl_global *g, char *tty) {386 if (tty) {387 strcpy(g->thistty, tty);388 } else if (getenv("DISPLAY")) {389 strcpy(g->thistty, getenv("DISPLAY"));390 } else if (ttyname(fileno(stdout))) {391 strcpy(g->thistty, ttyname(fileno(stdout)));392 if (!strncmp(g->thistty, "/dev/", 5)) {393 strcpy(g->thistty, g->thistty+5);394 }395 } else {396 strcpy(g->thistty, "unknown");397 }398 399 #ifdef HAVE_LIBZEPHYR_ZINITLOCATIONINFO400 ZInitLocationInfo(g->thishost, g->thistty);401 #endif402 }403 404 405 384 /* debug */ 406 385 … … 427 406 /* print something nicer later */ 428 407 sprintf(buff, "%i seconds", (int) diff); 408 } 409 410 char *owl_global_get_hostname(owl_global *g) { 411 return(g->thishost); 429 412 } 430 413
Note: See TracChangeset
for help on using the changeset viewer.