Changeset 5145235
- Timestamp:
- Sep 15, 2002, 4:45:38 PM (23 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:
- 425c013
- Parents:
- 61e79a9
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r61e79a9 r5145235 7 7 lock up. 8 8 Messages now have a direciton (in, out or none). Filters can 9 9 match on this direction 10 10 Outbound messages are no longer type 'admin' but are of the 11 11 appropriate message type (i.e. 'zephyr') and are direction -
configure.in
r6794f72 r5145235 27 27 AC_MSG_RESULT(no) 28 28 fi 29 30 dnl A hack for myself to use gnu curses31 dnl AC_MSG_CHECKING(for mit gnu hack)32 dnl if test -d /mit/gnu/include; then33 dnl CFLAGS=${CFLAGS}\ -I/mit/gnu/include34 dnl AC_MSG_RESULT(yes)35 dnl else36 dnl AC_MSG_RESULT(no)37 dnl fi38 39 40 dnl Solaris ships with a broken curses.h41 dnl AC_MSG_CHECKING(for solaris broken curses.h)42 dnl if grep "Sun Microsystems" /usr/include/curses.h > /dev/null 2> /dev/null; then43 dnl if test "`grep -c getwc\(stdin\) /usr/include/widec.h`" = "2" ; then44 dnl rm -rf includefix45 dnl mkdir includefix46 dnl sed -e 's/<widec.h>/\"widec.h\"/' /usr/include/curses.h > ./includefix/curses.h47 dnl48 dnl sed -e 's/<wchar.h>/\"wchar.h\"/' \49 dnl -e 's/^#define.putwchar.*//' \50 dnl -e 's/^#define.getwchar().*//' \51 dnl -e 's/^#define.getwc(p).*//' \52 dnl -e 's/^#define.putwc(x, p).*//' \53 dnl /usr/include/widec.h > includefix/widec.h54 dnl CFLAGS=-I./includefix\ ${CFLAGS}55 dnl AC_MSG_RESULT(yes)56 dnl fi57 dnl else58 dnl AC_MSG_RESULT(no)59 dnl fi60 61 62 29 63 30 AC_CHECK_LIB(ncurses, initscr,, -
owl.c
r61e79a9 r5145235 19 19 #include <com_err.h> 20 20 #include <signal.h> 21 #include <time.h> 21 22 #include <sys/param.h> 22 23 #include "owl.h" … … 109 110 noecho(); 110 111 111 #if 0 /* Removed to prevent flashing of popwin */112 intrflush(stdscr,FALSE);113 keypad(stdscr,TRUE);114 nodelay(stdscr,1);115 meta(stdscr,TRUE);116 #endif /*0*/117 118 112 /* define simple color pairs */ 119 113 if (has_colors() && COLOR_PAIRS>=8) { … … 133 127 owl_global_set_startupargs(&g, argcsave, argvsave); 134 128 owl_context_set_readconfig(owl_global_get_context(&g)); 129 135 130 if (tty) { 136 131 owl_global_set_tty(&g, tty); -
util.c
r61e79a9 r5145235 2 2 #include <stdlib.h> 3 3 #include <string.h> 4 #include <unistd.h> 4 5 #include <malloc.h> 5 6 #include <ctype.h> … … 496 497 char *owl_util_get_default_tty() { 497 498 /* call must free the return */ 498 char *out ;499 char *out, *tmp; 499 500 500 501 if (getenv("DISPLAY")) { 501 502 out=owl_strdup(getenv("DISPLAY")); 502 } else if ( ttyname(fileno(stdout))) {503 out= strdup(ttyname(fileno(stdout)));503 } else if ((tmp=ttyname(fileno(stdout)))!=NULL) { 504 out=owl_strdup(tmp); 504 505 if (!strncmp(out, "/dev/", 5)) { 505 506 owl_free(out); 506 out= strdup(ttyname(fileno(stdout)+5));507 out=owl_strdup(tmp+5); 507 508 } 508 509 } else { 509 out= strdup("unknown");510 out=owl_strdup("unknown"); 510 511 } 511 512 return(out);
Note: See TracChangeset
for help on using the changeset viewer.