File: patch-ircii-4.4%2Bflashfix

package info (click to toggle)
ircii 4.4-3
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 4,256 kB
  • ctags: 2,797
  • sloc: ansic: 36,743; sh: 907; makefile: 483; lex: 16
file content (41 lines) | stat: -rw-r--r-- 543 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
diff -urN ircii-4.4/source/screen.c ircii-4.4-flashfix/source/screen.c
--- ircii-4.4/source/screen.c
Sun Dec  7 03:30:54 1997
+++ ircii-4.4-flashfix/source/screen.c
Mon May  4 13:17:10 1998
@@ -1189,7 +1189,17 @@


{



if (indent == -1)




indent = pos - nd_cnt;
-buffer[pos++] = *ptr;
+if(0x9b == *ptr) /* linux console equiv. to ^[ */
+{
+buffer[pos++] = REV_TOG;
+buffer[pos++] = '['; /* [ == (0x9b & 127) | 64; */
+buffer[pos++] = REV_TOG;
+nd_cnt += 2;
+}
+else
+{
+buffer[pos++] = *ptr;
+}



col++;


}


if (pos == BIG_BUFFER_SIZE)