Lines 1-175
Link Here
|
1 |
*** utils.c.old Sun Aug 28 18:12:16 1994 |
1 |
*** main.c.orig Sat Sep 2 10:20:22 2000 |
2 |
--- utils.c Tue Nov 15 01:58:20 1994 |
2 |
--- main.c Sat Sep 2 10:20:27 2000 |
3 |
*************** |
3 |
*************** |
4 |
*** 21,26 **** |
4 |
*** 70,76 **** |
5 |
--- 21,28 ---- |
5 |
int verbatim = 0; |
6 |
#include <unistd.h> |
6 |
int prompt_on = 0; |
7 |
#endif |
7 |
int funcnum = 0; |
8 |
|
8 |
! int enable_chat = 1; |
9 |
+ #include <sys/param.h> |
9 |
char homepath[1025]; |
10 |
+ |
10 |
char prompt_line[BUFFER_SIZE]; |
11 |
void syserr(); |
11 |
|
12 |
|
12 |
--- 70,76 ---- |
13 |
/*********************************************/ |
13 |
int verbatim = 0; |
14 |
*************** |
14 |
int prompt_on = 0; |
15 |
*** 56,62 **** |
15 |
int funcnum = 0; |
16 |
--- 58,66 ---- |
16 |
! int enable_chat = 0; |
17 |
char *msg; |
17 |
char homepath[1025]; |
18 |
{ |
18 |
char prompt_line[BUFFER_SIZE]; |
19 |
extern int errno, sys_nerr; |
19 |
|
20 |
+ #if !defined(BSD) || (BSD < 199306) |
20 |
*** chat.c.orig Sat Sep 2 10:34:02 2000 |
21 |
extern char *sys_errlist[]; |
21 |
--- chat.c Sat Sep 2 10:33:32 2000 |
22 |
+ #endif |
22 |
*************** |
23 |
|
23 |
*** 1458,1464 **** |
24 |
fprintf(stderr,"ERROR: %s (%d",msg, errno); |
24 |
if ((f = fopen("chat.conf", "r")) == NULL) { |
25 |
if(errno>0 && errno<sys_nerr) |
25 |
printf("\n#ERROR: chat.conf not found!\n"); |
26 |
*** parse.c.bak Sun Aug 28 18:12:10 1994 |
26 |
printf(" This file must be in your current directory.\n"); |
27 |
--- parse.c Tue Nov 15 02:21:20 1994 |
27 |
! printf(" Using defaults...\n"); |
28 |
*************** |
28 |
fflush(stdout); |
29 |
*** 670,679 **** |
29 |
return; |
30 |
if(ses && !PSEUDO_PROMPT) |
30 |
} |
31 |
write_line_mud("", ses); |
31 |
--- 1458,1464 ---- |
32 |
else if (!is_split) |
32 |
if ((f = fopen("chat.conf", "r")) == NULL) { |
33 |
! write(1,"> ", 3); |
33 |
printf("\n#ERROR: chat.conf not found!\n"); |
34 |
else { |
34 |
printf(" This file must be in your current directory.\n"); |
35 |
sprintf(strng,"8> 7[%d;%df", input_row, input_col); |
35 |
! printf(" You can find example in /usr/local/share/doc/tintin\n"); |
36 |
! write(1,strng, strlen(strng)+1); |
36 |
fflush(stdout); |
37 |
display_col+=2; |
37 |
return; |
38 |
} |
38 |
} |
39 |
} |
|
|
40 |
--- 670,679 ---- |
41 |
if(ses && !PSEUDO_PROMPT) |
42 |
write_line_mud("", ses); |
43 |
else if (!is_split) |
44 |
! write(1,"> ", 2); |
45 |
else { |
46 |
sprintf(strng,"8> 7[%d;%df", input_row, input_col); |
47 |
! write(1,strng, strlen(strng)); |
48 |
display_col+=2; |
49 |
} |
50 |
} |
51 |
*** misc.c.bak Sun Aug 28 18:12:08 1994 |
52 |
--- misc.c Tue Nov 15 02:28:26 1994 |
53 |
*************** |
54 |
*** 106,112 **** |
55 |
char temp[2]; |
56 |
temp[0]=7; |
57 |
temp[1]=0; |
58 |
! write(1, temp, 2); |
59 |
} |
60 |
|
61 |
|
62 |
--- 106,112 ---- |
63 |
char temp[2]; |
64 |
temp[0]=7; |
65 |
temp[1]=0; |
66 |
! write(1, temp, 1); |
67 |
} |
68 |
|
69 |
|
70 |
*************** |
71 |
*** 172,178 **** |
72 |
cleanup_session(sesptr); |
73 |
ses=NULL; |
74 |
if (is_split) |
75 |
! write(1, "c", 3); |
76 |
tintin_puts2("TINTIN suffers from bloodlack, and the lack of a beating heart...", ses); |
77 |
tintin_puts2("TINTIN is dead! R.I.P.", ses); |
78 |
tintin_puts2("Your blood freezes as you hear TINTIN's death cry.", ses); |
79 |
--- 172,178 ---- |
80 |
cleanup_session(sesptr); |
81 |
ses=NULL; |
82 |
if (is_split) |
83 |
! write(1, "c", 2); |
84 |
tintin_puts2("TINTIN suffers from bloodlack, and the lack of a beating heart...", ses); |
85 |
tintin_puts2("TINTIN is dead! R.I.P.", ses); |
86 |
tintin_puts2("Your blood freezes as you hear TINTIN's death cry.", ses); |
87 |
*** main.c.bak Sun Aug 28 18:12:06 1994 |
88 |
--- main.c Tue Nov 15 02:33:37 1994 |
89 |
*************** |
90 |
*** 562,568 **** |
91 |
if(ses->logfile) { |
92 |
if (!OLD_LOG) { |
93 |
count=0; |
94 |
! for(n=0;n<=didget;n++) |
95 |
if (buffer[n]!='\r') { |
96 |
temp[count]=buffer[n]; |
97 |
count++; |
98 |
--- 562,568 ---- |
99 |
if(ses->logfile) { |
100 |
if (!OLD_LOG) { |
101 |
count=0; |
102 |
! for(n=0;n<didget;n++) |
103 |
if (buffer[n]!='\r') { |
104 |
temp[count]=buffer[n]; |
105 |
count++; |
106 |
*************** |
107 |
*** 732,738 **** |
108 |
sprintf(strng,"%c8%s\n\r%c7%c[%d;%df", E, cptr, E, E, input_row, input_col); |
109 |
else |
110 |
sprintf(strng,"%s\n\r", cptr); |
111 |
! write(1,strng, strlen(strng)+1); |
112 |
display_col=1; |
113 |
if (redraw && term_echoing && !is_split) |
114 |
write(1, k_input, strlen(k_input)); |
115 |
--- 732,738 ---- |
116 |
sprintf(strng,"%c8%s\n\r%c7%c[%d;%df", E, cptr, E, E, input_row, input_col); |
117 |
else |
118 |
sprintf(strng,"%s\n\r", cptr); |
119 |
! write(1,strng, strlen(strng)); |
120 |
display_col=1; |
121 |
if (redraw && term_echoing && !is_split) |
122 |
write(1, k_input, strlen(k_input)); |
123 |
*************** |
124 |
*** 764,770 **** |
125 |
cptr++; |
126 |
sprintf(strng,"%s\n\r", cptr); |
127 |
} |
128 |
! write(1,strng, strlen(strng)+1); |
129 |
display_col=1; |
130 |
} |
131 |
text_came=TRUE; |
132 |
--- 764,770 ---- |
133 |
cptr++; |
134 |
sprintf(strng,"%s\n\r", cptr); |
135 |
} |
136 |
! write(1,strng, strlen(strng)); |
137 |
display_col=1; |
138 |
} |
139 |
text_came=TRUE; |
140 |
*************** |
141 |
*** 832,838 **** |
142 |
input_col=1; |
143 |
sprintf(fn, "%c[2J%c[1;%dr%c[%d;1f", E, E, display_row, E, split_line); |
144 |
write(1,fn, strlen(fn)); |
145 |
! write(1,"-------------------------------------------------------------------------------", 80); |
146 |
sprintf(fn, "%c[%d;1f%c7", E, split_line-1, E); |
147 |
write(1,fn,strlen(fn)); |
148 |
sprintf(fn, "%c[%d;1f", E, input_row); |
149 |
--- 832,838 ---- |
150 |
input_col=1; |
151 |
sprintf(fn, "%c[2J%c[1;%dr%c[%d;1f", E, E, display_row, E, split_line); |
152 |
write(1,fn, strlen(fn)); |
153 |
! write(1,"--------------------------------------------------------------------------------", 80); |
154 |
sprintf(fn, "%c[%d;1f%c7", E, split_line-1, E); |
155 |
write(1,fn,strlen(fn)); |
156 |
sprintf(fn, "%c[%d;1f", E, input_row); |
157 |
*** net.c.bak Sun Aug 28 18:12:10 1994 |
158 |
--- net.c Tue Nov 15 03:27:09 1994 |
159 |
*************** |
160 |
*** 80,86 **** |
161 |
|
162 |
tintin_puts("#Trying to connect..", ses); |
163 |
|
164 |
! alarm(15); /* We'll allow connect to hang in 15seconds! NO MORE! */ |
165 |
ticker_interrupted=FALSE; |
166 |
connectresult=connect(sock, (struct sockaddr *)&sockaddr, sizeof(sockaddr)); |
167 |
#if defined(DEBUG) |
168 |
--- 80,86 ---- |
169 |
|
170 |
tintin_puts("#Trying to connect..", ses); |
171 |
|
172 |
! alarm(30); /* We'll allow connect to hang in 30seconds! NO MORE! */ |
173 |
ticker_interrupted=FALSE; |
174 |
connectresult=connect(sock, (struct sockaddr *)&sockaddr, sizeof(sockaddr)); |
175 |
#if defined(DEBUG) |