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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
|
2007-02-26 Chris Wilson <chris@chris-wilson.co.uk>
Bug 410986 – Fails to build with -z defs
The forgotten half - the python module also fails to link.
* acinclude.m4:
* python/Makefile.am:
Add PYTHON_LIBS pointing to the customary location and
remember to include them when compiling vtemodule.so.
2007-02-26 Chris Wilson <chris@chris-wilson.co.uk>
Bug 412361 – Yet another mouse selection regression...
Part 2.
* src/vte.c: (vte_terminal_queue_adjustment_value_changed),
(_vte_terminal_adjust_adjustments_full),
(vte_terminal_scroll_pages), (vte_terminal_autoscroll),
(vte_terminal_size_allocate), (vte_terminal_scroll):
We implicitly used a bit of sanity checking when setting the
adjustment value. Ensure the value really is within the
adjustment range before updating scroll_delta.
2007-02-26 Chris Wilson <chris@chris-wilson.co.uk>
Bug 412361 – Yet another mouse selection regression...
Part 1.
* src/vte.c: (vte_terminal_draw_rows):
Restore drawing of the selection below the text.
2007-02-26 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_class_init), (time_process_incoming),
(process_timeout), (update_repeat_timeout), (update_timeout):
Update max number of processable bytes each time we call
vte_terminal_process_incoming().
2007-02-26 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_emit_adjustment_changed),
(_vte_terminal_adjust_adjustments_full):
Refactor the common code.
2007-02-26 Chris Wilson <chris@chris-wilson.co.uk>
Push a couple of NULL checks to the callers so to be able to move them
outside of the inner-most loops.
* src/vte.c: (_vte_row_data_find_charcell), (_vte_invalidate_cell),
(_vte_terminal_adjust_adjustments),
(vte_terminal_get_text_range_maybe_wrapped), (find_start_column),
(find_end_column), (vte_terminal_draw_rows):
2007-02-26 Chris Wilson <chris@chris-wilson.co.uk>
Some applications, such as cat, dump as much data to the terminal as
possible. In these scenarios it is likely that we will read data from
the child much faster than we can process it and the refresh will
stutter.
The ideal solution would be to speed up the data processing so that
this overrun was impossible. However, the approach taken here is to
estimate how much data we can actually process in our time slice and
to stop reading once we have sufficient data.
* src/vte-private.h:
* src/vte.c: (_vte_invalidate_all),
(vte_terminal_emit_contents_changed),
(vte_terminal_match_contents_clear),
(vte_terminal_match_contents_refresh),
(vte_terminal_emit_adjustment_changed),
(_vte_terminal_adjust_adjustments), (vte_terminal_scroll_pages),
(vte_terminal_catch_child_exited), (vte_terminal_eof),
(vte_terminal_process_incoming), (vte_terminal_io_read),
(vte_terminal_handle_scroll), (vte_terminal_init),
(vte_terminal_size_allocate), (need_processing), (process_timeout),
(update_repeat_timeout), (update_timeout):
* src/vteseq.c: (vte_sequence_handler_decset_internal):
2007-02-26 Chris Wilson <chris@chris-wilson.co.uk>
Bug 411000 – Orca repeats old text in gnome-terminal
The deferred handling of the window scrolling had the unfortunate
side-effect of postponing the accessibility 'text-scrolled' signal
until after the 'text-inserted' signal. This caused vteaccess to
determine that the whole window had been modified and cause orca to
reread the entire screen.
* src/vte-private.h:
* src/vte.c: (vte_terminal_emit_contents_changed),
(_vte_terminal_queue_contents_changed),
(vte_terminal_emit_cursor_moved),
(vte_terminal_queue_cursor_moved), (vte_terminal_scroll_pages),
(vte_terminal_eof), (vte_terminal_emit_pending_text_signals),
(vte_terminal_process_incoming), (vte_terminal_handle_scroll),
(vte_terminal_size_allocate), (vte_terminal_unrealize),
(vte_terminal_emit_pending_signals):
* src/vteaccess.c: (emit_text_caret_moved),
(emit_text_changed_insert), (emit_text_changed_delete):
* src/vteseq.c: (vte_sequence_handler_decset_internal):
Restore the order of the ally signals. However, Bug 372777
remains unresolved.
2007-02-26 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_io_read):
Eeek, correctly compute the buffer length when we no longer
aim to fill it.
2007-02-26 Chris Wilson <chris@chris-wilson.co.uk>
Use a separate debug flag for the ally interface.
* src/debug.c: (_vte_debug_parse_string):
* src/debug.h:
* src/vteaccess.c:
(vte_terminal_accessible_update_private_data_if_needed),
(vte_terminal_accessible_invalidate_cursor),
(vte_terminal_accessible_finalize),
(vte_terminal_accessible_get_text),
(vte_terminal_accessible_get_text_somewhere),
(vte_terminal_accessible_text_init),
(vte_terminal_accessible_component_init),
(vte_terminal_accessible_action_init),
(vte_terminal_accessible_factory_new):
2007-02-26 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte-private.h:
* src/vte.c: (vte_terminal_io_read):
And finally clamp the maximum number of bytes transferred in
a single chunk.
2007-02-24 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c:
Hint that the compiler should inline
vte_terminal_determine_colors().
2007-02-24 Chris Wilson <chris@chris-wilson.co.uk>
cf Bug 410534 – Slow content scrolling, takes 100% of CPU.
cf Bug 410463 – Poor interactive performance with multiple terminals
* src/vte.c: (vte_terminal_io_read):
Do not loop whilst reading in a backlog of child data - should
help prevent monopolisation of vte by a single child and make
vte more responsive to user input on slower computers.
2007-02-24 Chris Wilson <chris@chris-wilson.co.uk>
Bug 159078 – slow highlight
Do not update the match hilite during a selection-drag.
Record unsuccesful regex matches, so we can quickly determine whether
the cursor is still inside the blank region.
* src/vte-private.h:
* src/vte.c: (vte_terminal_match_check_internal),
(rowcol_inside_match), (vte_terminal_match_check),
(_vte_terminal_set_pointer_visible),
(vte_terminal_match_hilite_clear),
(vte_terminal_match_hilite_show), (vte_terminal_match_hilite_hide),
(vte_terminal_match_hilite_update), (vte_terminal_match_hilite),
(vte_terminal_motion_notify), (vte_terminal_button_press),
(vte_terminal_focus_in), (vte_terminal_focus_out),
(vte_terminal_enter), (vte_terminal_leave), (vte_terminal_init),
(vte_terminal_unrealize), (vte_terminal_draw_rows),
(vte_terminal_paint):
2007-02-23 Chris Wilson <chris@chris-wilson.co.uk>
A couple of compiler warnings and avoid unnecessary arithmetic.
* src/vte.c: (_vte_terminal_set_default_attributes),
(find_start_column), (find_end_column),
(vte_terminal_start_selection), (vte_terminal_extend_selection),
(vte_terminal_draw_rows), (vte_terminal_paint):
* src/vtexft.c: (_vte_xft_font_open), (_vte_xft_font_for_char),
(_vte_xft_char_width), (_vte_xft_unlock_fonts), (_vte_xft_start),
(_vte_xft_clip), (_vte_xft_set_text_font), (_vte_xft_draw_text):
2007-02-23 Chris Wilson <chris@chris-wilson.co.uk>
Bug 411276 – SVN trunk compilation error
Part 2.
* configure.in:
Check that the header file defines FcStrFree before checking
for the availability of the function. Complete hack, but
appears to work.
2007-02-23 Chris Wilson <chris@chris-wilson.co.uk>
Bug 411276 – SVN trunk compilation error
* configure.in:
Ubuntu Edgy appears to have a broken fontconfig-dev package
where the function is exported from the library but is missing
the corresponding prototypes.
So we reorder the determination of the compilation flags
before checking for available functions in the hope that the
tests will then match the results at compile time.
2007-02-23 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_io_read):
Prevent a deadlock on recursively grabbing the gdk_mutex.
2007-02-23 Chris Wilson <chris@chris-wilson.co.uk>
Heuristic to avoid a read when it's likely to just return EAGAIN.
* src/vte-private.h:
* src/vte.c: (vte_terminal_io_read), (process_timeout),
(update_repeat_timeout), (update_timeout):
2007-02-23 Chris Wilson <chris@chris-wilson.co.uk>
Add a new debug flag to monitor draw operations.
Don't issue individual glyphs for is_local_graphic() in the middle of
a run.
* src/debug.c: (_vte_debug_parse_string):
* src/debug.h:
* src/vte.c: (vte_terminal_unichar_is_local_graphic),
(vte_terminal_draw_rows), (vte_terminal_paint):
* src/vtedraw.c: (_vte_draw_init_user), (_vte_draw_init_default),
(_vte_draw_new), (_vte_draw_free), (_vte_draw_get_visual),
(_vte_draw_get_colormap), (_vte_draw_start), (_vte_draw_end),
(_vte_draw_set_background_color), (_vte_draw_set_background_image),
(_vte_draw_requires_repaint), (_vte_draw_clip), (_vte_draw_clear),
(_vte_draw_set_text_font), (_vte_draw_get_text_width),
(_vte_draw_get_text_height), (_vte_draw_get_text_ascent),
(_vte_draw_get_char_width), (_vte_draw_get_using_fontconfig),
(_vte_draw_text), (_vte_draw_char), (_vte_draw_has_char),
(_vte_draw_fill_rectangle), (_vte_draw_draw_rectangle),
(_vte_draw_set_scroll):
* src/vtedraw.h:
* src/vteft2.c: (_vte_ft2_draw_has_char):
* src/vtegl.c: (_vte_gl_draw_has_char):
* src/vtepango.c: (_vte_pango_draw_has_char):
* src/vtepangox.c: (_vte_pango_x_draw_has_char):
* src/vteskel.c: (_vte_skel_draw_has_char):
* src/vtexft.c: (_vte_xft_draw_has_char):
2007-02-23 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_draw_rows):
Don't break a glyph run for a graphic, issue the draw
and continue.
2007-02-23 Chris Wilson <chris@chris-wilson.co.uk>
Cache the font metrics on the vte_xft_font, avoids having to remeasure
when opening a new terminal.
* src/vtexft.c: (_vte_xft_font_open), (_vte_xft_set_text_font):
2007-02-23 Chris Wilson <chris@chris-wilson.co.uk>
Share XftFonts between terminal backends and preserve faces from the
previous draw - helps prevents font cache thrashing inside libXft.
* src/vtexft.c: (_vte_xft_font_hash), (_vte_xft_font_equal),
(_vte_xft_font_open), (_vte_xft_font_close),
(_vte_xft_font_for_char), (_vte_xft_unlock_fonts),
(_vte_xft_destroy), (_vte_xft_start), (_vte_xft_end),
(ptr_array_zeroed_new), (_vte_xft_set_text_font),
(_vte_xft_get_char_width), (_vte_xft_draw_text),
(_vte_xft_draw_char):
2007-02-22 Chris Wilson <chris@chris-wilson.co.uk>
Bug 410986 – Fails to build with -z defs
Patch by Loïc Minier.
* src/Makefile.am:
Add FreeType to the libs.
2007-02-22 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_send):
Return in the face of error as we appear to hit this in the
wild.
2007-02-22 Chris Wilson <chris@chris-wilson.co.uk>
Bug 410819 – slider not correctly positioned after calling less
* src/vte.c: (_vte_terminal_adjust_adjustments),
(_vte_terminal_adjust_adjustments_full),
(vte_terminal_maybe_scroll_to_top), (vte_terminal_size_allocate),
(vte_terminal_set_scrollback_lines):
* src/vteseq.c: (vte_sequence_handler_decset_internal):
Fixup a lot of issues with changing the number of scrollback
lines, such as missing value_changed signals for the
scrollbar and a couple of missing CLAMPs.
2007-02-22 Chris Wilson <chris@chris-wilson.co.uk>
After adjusting the current profile, the last line gets chomped.
* src/vte.c: (vte_terminal_set_scrollback_lines):
2007-02-21 Chris Wilson <chris@chris-wilson.co.uk>
cf Bug 410534 – Slow content scrolling, takes 100% of CPU.
* src/vte.c: (vte_terminal_scroll),
(vte_terminal_set_scrollback_lines):
Operate on scroll delta directly as adjustment->value updates
are not instantaneous and we may have several scroll events
before the next update.
2007-02-21 Chris Wilson <chris@chris-wilson.co.uk>
Bug 410463 – Poor interactive performance with multiple terminals
* src/vte.c: (vte_terminal_io_read), (process_timeout),
(update_repeat_timeout):
When multiple terminals are active, poll the IO sources
from within the process/display timeout (akin to
interrupt mitigation).
Return to normal interrupts when we only have a single active
terminal - so we don't sacrifice high performance.
2007-02-21 Chris Wilson <chris@chris-wilson.co.uk>
A small bit of callgrinding, avoid the modulus inside
vte_terminal_ensure_cursor() by caching the last row_data.
* src/iso2022.c: (process_cdata):
* src/ring.c: (_vte_ring_new), (_vte_ring_insert),
(_vte_ring_insert_preserve), (_vte_ring_remove):
* src/ring.h:
* src/table.c: (_vte_table_match):
* src/vte.c: (_vte_terminal_ensure_cursor),
(_vte_terminal_insert_char), (vte_terminal_process_incoming):
2007-02-21 Chris Wilson <chris@chris-wilson.co.uk>
Callgrind strikes again...
Inserting a char is a rare operation (especially in the scrolling
benchmark!) so only read the old cell during an insert. This wins
about 5% during a hexdump.
* src/iso2022.c: (_vte_iso2022_find_nextctl),
(_vte_iso2022_fragment_input), (process_cdata):
* src/vte.c: (_vte_terminal_insert_char):
* src/vteseq.c: (vte_sequence_handler_sf):
2007-02-21 Chris Wilson <chris@chris-wilson.co.uk>
RedHat Bug 113195: First line displayed incorrectly if prompt changes background color
e.g. PS1='\e[46m[\u@\h:\w]\e[m \e[45m'
The issue is when we insert a char on a new row and the background is
not the default, we fill the entire row with the *current* colour.
This behaviour is incorrect, and the fix is to fill to the end of the
line on a carriage return.
* src/vte-private.h:
* src/vte.c: (_vte_terminal_ensure_cursor),
(_vte_terminal_insert_char), (vte_terminal_process_incoming),
(vte_terminal_send):
* src/vteseq.c: (vte_sequence_handler_ce),
(vte_sequence_handler_cr), (vte_sequence_handler_cs),
(vte_sequence_handler_cS),
(vte_sequence_handler_cursor_lower_left),
(vte_sequence_handler_dc), (vte_sequence_handler_ic),
(vte_sequence_handler_sf):
2007-02-20 Chris Wilson <chris@chris-wilson.co.uk>
RedHat Bug 123845: gnome-terminal not parsing cursor position escape sequence properly
* src/caps.c:
* src/vteseq.c: (vte_sequence_handler_cm):
Add 'ESC [ Pn H' to cursor-position and provide default
values.
2007-02-19 Chris Wilson <chris@chris-wilson.co.uk>
Bug 409055 – Terminal stays blank
Due to GTK+ coallescing of XExposeEvents it was possible for our
GdkExposeEvent to arrive before the GdkVisibilityEvent associated with
the mapping of our toplevel and so we discarded the event as we
believed we were still unviewable.
* src/vte.c: (_vte_invalidate_cells), (vte_terminal_expose),
(reset_update_regions):
Assume that all GdkExposeEvents have been checked for
suitability before delivery. We know this true for locally
generated expose events which are extensively checked during
invalidation, and we presume that X will not generate expose
events on unmapped or otherwise unviewable windows.
2007-02-19 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (_vte_terminal_adjust_adjustments),
(_vte_terminal_adjust_adjustments_full):
Dead code elimination.
2007-02-19 Chris Wilson <chris@chris-wilson.co.uk>
* perf/random.sh:
A simple script to dump a fixed amount of random data to the
terminal.
2007-02-19 Chris Wilson <chris@chris-wilson.co.uk>
A few more trivial incremental improvements.
* src/Makefile.am:
* src/iso2022.c: (_vte_iso2022_map_get):
Switch to a VteTree.
* src/vte.c: (_vte_terminal_update_insert_delta),
(_vte_terminal_insert_char):
No need to ensure the cursor when scrolling, only before
insertions.
* src/vtexft.c: (_vte_xft_font_open), (_vte_xft_font_close),
(_vte_xft_font_for_char), (_vte_xft_end):
Lock the face over the entire expose.
2007-02-19 Chris Wilson <chris@chris-wilson.co.uk>
Improve handling of parallel 'cat /dev/urandom' - notably a crasher
in the table matcher, repeated g_getenv processing and wasted time
in g_tree_lookup.
* src/iso2022.c: (_vte_iso2022_ambiguous_width_guess),
(_vte_iso2022_map_init), (_vte_iso2022_map_get),
(process_8_bit_sequence), (process_cdata),
(_vte_iso2022_process_single), (_vte_iso2022_process):
* src/table.c: (_vte_table_match):
* src/vte-private.h:
2007-02-19 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (update_timeout):
In conjunction with the previous fix, since the terminal
can be removed from the active list by
vte_terminal_process_incoming() we need to be careful whilst
iterating along the active list.
2007-02-19 Chris Wilson <chris@chris-wilson.co.uk>
<fcrozat> ickle: hi.. our kernel hacker just found a nice reproducible
crash in vte :)
<ickle> oh, joy
<fcrozat> very easy to reproduce
cat /dev/urandom
wait 2 or 3S
then press Ctrl-Shift-T to open a new tab
=> crash
* src/vte.c: (process_timeout), (update_repeat_timeout):
vte_terminal_process_incoming() can trigger a terminal reset
which will remove the terminal from the active list, and then
we attempt to remove it again after handling the incoming
data. The fix is simple - don't delete the link if the the
terminal is no longer active.
2007-02-19 Chris Wilson <chris@chris-wilson.co.uk>
As noticed on bug 409055, we do not receive a visibility-notify
event when we switch workspaces (or even when the window is iconified).
The workaround for this is to watch for our toplevel being unmapped
and set the fully-obscured flag.
* src/vte.c: (vte_terminal_configure_toplevel),
(vte_terminal_unmap_toplevel), (vte_terminal_hierarchy_changed),
(vte_terminal_set_visibility), (vte_terminal_visibility_notify):
2007-02-19 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (visibility_state_str),
(vte_terminal_visibility_notify), (vte_terminal_init),
(vte_terminal_realize):
Add the visibility state to the debug output.
2007-02-19 Chris Wilson <chris@chris-wilson.co.uk>
* configure.in:
Add the configuration details to config.log as well.
2007-02-19 Chris Wilson <chris@chris-wilson.co.uk>
Bug 409241 – gnome-terminal crashed with SIGSEGV in vte_terminal_draw_graphic()
* src/vte.c: (vte_terminal_paint):
Lookup fore/back colours before attempting to draw the graphic
character behind the unfocused cursor.
2007-02-19 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_visibility_notify):
Add VTE_DEBUG_EVENT info.
2007-02-16 Chris Wilson <chris@chris-wilson.co.uk>
Bug 407945 – "GNOME" Terminal" regression after "vte" update when using "csh"
When passing multiple versions of the same environment
variable to execve (i.e g_spawn) the result is undefined.
So we solve the ambiguity by using the application passed env to
override values from the current environment.
* src/pty.c: (collect_variables), (merge_environ),
(_vte_pty_run_on_pty):
2007-02-16 Chris Wilson <chris@chris-wilson.co.uk>
Bug 408536 – trouble compiling vte 0.15.3
* configure.in:
* src/vtefc.c: (_vte_fc_patterns_from_pango_font_desc):
Check for availability of FcStrFree() - only used for
debugging purposes so we can live without it.
2007-02-15 Chris Wilson <chris@chris-wilson.co.uk>
Guard against a missing default number of rows or columns
inside the termcap.
* src/vte-private.h:
* src/vte.c: (vte_terminal_set_emulation), (vte_terminal_init):
2007-02-15 Chris Wilson <chris@chris-wilson.co.uk>
Bug 408040 – vte automagic hyperlinks
Patch by Gilles Dartiguelongue.
* src/vteapp.c:
Correct the typo in the nntp protocol matcher.
2007-02-14 Chris Wilson <chris@chris-wilson.co.uk>
Bug 407839 – Use of environ breaks build on Solaris
Original patch by Damien Carbery.
* src/pty.c:
extern char **environ - glibc was 'conveniently' declaring
it for us...
2007-02-13 Chris Wilson <chris@chris-wilson.co.uk>
uws reported that scrolling inside screen with a status line was
broken. Indeed any scrolling inside an alternative screen was broken,
e.g. plain vim would not always update the topmost line. The issue was
the interaction with the deferred value-changed signal emission and
failing to correctly maintain the current scroll_delta. The fix is
that we always now apply changes to the scroll_delta and swap
scroll_delta with adjustment->value before the deferred signal
emission to correctly trigger the handle_scroll().
* src/vte-private.h:
* src/vte.c: (_vte_invalidate_cells),
(vte_terminal_emit_adjustment_changed),
(vte_terminal_queue_adjustment_value_changed),
(_vte_terminal_adjust_adjustments),
(_vte_terminal_adjust_adjustments_full),
(vte_terminal_maybe_scroll_to_bottom),
(vte_terminal_process_incoming), (vte_terminal_extend_selection),
(vte_terminal_handle_scroll), (vte_terminal_set_scrollback_lines):
* src/vteseq.c: (vte_sequence_handler_sf):
2007-02-13 Chris Wilson <chris@chris-wilson.co.uk>
Bug 407358 – regression in mouse selection
* src/vte.c: (vte_terminal_motion_notify):
When outside the terminal we used an uninitialised variable to
determine the mouse tracking mode.
2007-02-12 Behdad Esfahbod <behdad@gnome.org>
Released vte-0.15.3.
* NEWS: Updated.
* configure.in: Bumped version to 0.15.3.
* src/Makefile.am: Bumped libtool version to 11:0:2.
2007-02-12 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_extend_selection),
(vte_terminal_motion_notify):
Restore autoscroll behaviour.
2007-02-12 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_start_selection):
Invalidate the selected region when starting in
select-word or select-line mode.
2007-02-12 Chris Wilson <chris@chris-wilson.co.uk>
Restore double-click to select word behaviour, broken by r1671 as
the second click occurs in the same place as the first (obviously!).
* src/vte.c: (vte_terminal_extend_selection),
(vte_terminal_autoscroll), (vte_terminal_motion_notify),
(vte_terminal_button_press):
2007-02-12 Chris Wilson <chris@chris-wilson.co.uk>
Bug 407091 – vte_terminal_fork_command() env argument changed semantic in 0.15.2
Original patch by Michael Vogt.
* src/pty.c: (_vte_pty_run_on_pty):
Copy the current environment into the child's.
2007-02-11 Chris Wilson <chris@chris-wilson.co.uk>
Bug 323393 – Hyper-sensitive selection
* src/vte.c: (vte_terminal_extend_selection):
Don't start (or update) the selection until you
move off the current cell (character).
2007-02-11 Chris Wilson <chris@chris-wilson.co.uk>
Bug 406763 – Selecting double-wide characters
* src/vte.c: (start_column), (end_column),
(vte_terminal_start_selection), (vte_terminal_extend_selection),
(vte_terminal_draw_rows):
Extend selection to include fragment cells i.e. double-wide
characters.
2007-02-10 Chris Wilson <chris@chris-wilson.co.uk>
Have a separate adjust_adjustments for when we know that the page
size and step lengths may have changed.
* src/vte.c: (_vte_terminal_adjust_adjustments),
(_vte_terminal_adjust_adjustments_full),
(vte_terminal_set_scrollback_lines), (vte_terminal_reset):
2007-02-10 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (_vte_terminal_adjust_adjustments),
(vte_terminal_size_allocate), (vte_terminal_set_scrollback_lines):
Prevent the display of garbage after resizing and switching
between alternate screens.
However, instead of displaying garbage after the cursor, we
lose some data above the current scroll delta, should we have
a full history. Bizarre.
2007-02-09 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (_vte_terminal_adjust_adjustments):
Do not allow to scroll past the last line after reducing
scrollback lines.
* src/vtexft.c: (_vte_xft_set_text_font):
Ensure a fallback height is set.
2007-02-09 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_get_text_range_maybe_wrapped):
Reuse VteRowData whilst in the row.
2007-02-09 Chris Wilson <chris@chris-wilson.co.uk>
Rework to reduce number of times mutex is taken and shorten the hold.
* src/vte.c: (vte_terminal_queue_adjustment_changed),
(vte_terminal_queue_adjustment_value_changed),
(vte_terminal_io_read), (vte_terminal_paint),
(vte_terminal_add_process_timeout), (vte_terminal_is_processing),
(vte_terminal_start_processing):
2007-02-09 Chris Wilson <chris@chris-wilson.co.uk>
A number of small bug fixes...
- do not override the user setting of scrollback lines with the
terminal size.
- only set the current screen rather than both and so reset the
scrollback lines when we switch between normal and alternate.
- do not invalidate inside set_scrollback lines as setting does not
actually modify the on-screen contents.
- push the scroll-adjustment to the post-processing emission.
- queue timeouts on value change (should be a no-op)
- reorder emission so that scrolling occurs before invalidating the
window (ie so that the scroll happens this cycle, not next).
Still unsolved: the clamping of the cursor when switching between
alternate screens.
* src/vte-private.h:
* src/vte.c: (vte_terminal_emit_adjustment_changed),
(vte_terminal_queue_adjustment_changed),
(vte_terminal_queue_adjustment_value_changed),
(_vte_terminal_adjust_adjustments), (vte_terminal_scroll_pages),
(vte_terminal_maybe_scroll_to_top),
(vte_terminal_maybe_scroll_to_bottom),
(_vte_terminal_ensure_cursor), (_vte_terminal_update_insert_delta),
(vte_terminal_process_incoming), (vte_terminal_extend_selection),
(vte_terminal_autoscroll), (vte_terminal_handle_scroll),
(vte_terminal_size_allocate), (vte_terminal_scroll),
(vte_terminal_background_update),
(vte_terminal_queue_background_update),
(vte_terminal_set_scrollback_lines), (vte_terminal_reset),
(add_process_timeout), (vte_terminal_add_process_timeout),
(vte_terminal_start_processing), (update_repeat_timeout),
(update_timeout):
* src/vteseq.c: (vte_sequence_handler_scroll_up_or_down),
(vte_sequence_handler_decset_internal), (vte_sequence_handler_al),
(vte_sequence_handler_dl), (vte_sequence_handler_sf),
(vte_sequence_handler_sr), (vte_sequence_handler_clear_screen),
(vte_sequence_handler_cursor_character_absolute),
(vte_sequence_handler_insert_lines),
(vte_sequence_handler_delete_lines),
(vte_sequence_handler_screen_alignment_test):
2007-02-08 Chris Wilson <chris@chris-wilson.co.uk>
* src/vteapp.c: (main): whitespace
2007-02-08 Chris Wilson <chris@chris-wilson.co.uk>
Bug 363597 – Scrollback in profile dialog doesn't work
* src/vte-private.h:
* src/vte.c: (vte_terminal_init),
Only use SCROLLBACK_MIN during initialisation, so rename it
to SCROLLBACK_INIT.
(vte_terminal_set_scrollback_lines):
Remove MAX(lines, SCROLLBACK_MIN) and update code comments
to reduce confusion.
2007-02-08 Mariano Suárez-Alvarez <mariano@gnome.org>
* src/vteapp.c(main): do something useful with --geometry.
2007-02-08 Chris Wilson <chris@chris-wilson.co.uk>
Use gtk_widget_get_(screen|display) which will itself return a default
if not currently attached.
* src/vtedraw.c: (_vte_draw_get_colormap):
* src/vtefc.c: (_vte_fc_defaults_from_gtk):
* src/vtegl.c: (_vte_gl_check), (_vte_gl_create),
(_vte_gl_destroy), (_vte_gl_start), (_vte_gl_end), (_vte_gl_clear),
(_vte_gl_draw_text), (_vte_gl_rectangle):
* src/vterdb.c: (_vte_rdb_get):
* src/vteseq.c: (vte_sequence_handler_window_manipulation):
2007-02-08 Chris Wilson <chris@chris-wilson.co.uk>
Some more callgrinding - kill a little bit of overhead.
* src/iso2022.c: (_vte_iso2022_sequence_length),
(_vte_iso2022_fragment_input), (process_control):
* src/matcher.c: (_vte_matcher_free_params_array):
* src/vteconv.c: (_vte_conv):
2007-02-07 Chris Wilson <chris@chris-wilson.co.uk>
Actually return whether or not we found the char in
_vte_xft_font_for_char - saves having to double check afterwards!
* src/vtexft.c: (_vte_xft_font_for_char), (_vte_xft_set_text_font),
(_vte_xft_draw_text):
2007-02-07 Chris Wilson <chris@chris-wilson.co.uk>
As spotted perusing roxterm, we fail to redraw after changing the text
colour.
* src/vte.c: (vte_terminal_set_color_internal):
Remember to invalidate all!
2007-02-07 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_match_check_internal):
Scan for newlines before and after the current row
to find the entire line in case of soft-wrapping.
2007-02-07 Chris Wilson <chris@chris-wilson.co.uk>
Bug 345344 – Pattern matching is inefficient
Bug 324246 – Performance degredation with large numbers of highlighted addresses/URLs
* src/vte.c: (vte_terminal_match_check_internal):
Trim the searched string down to the row containing the
pointer. During a mutt session this drops the time consumed by
regexec from ~30% to ~2%.
Note: multi-line regexes are now unsupported!
2007-02-07 Chris Wilson <chris@chris-wilson.co.uk>
* src/vteseq.c: (_vte_sequence_get_handler):
Avoid the strlen when possible.
2007-02-07 Chris Wilson <chris@chris-wilson.co.uk>
Some cleanups and a bug...
vte_terminal_match_hilite() compared the current cell to the last
mouse position without a floor().
* src/vte.c: (vte_terminal_process_incoming),
(vte_terminal_match_hilite), (vte_terminal_select_all),
(vte_terminal_select_none), (vte_terminal_motion_notify),
(vte_terminal_button_press):
2007-02-06 Chris Wilson <chris@chris-wilson.co.uk>
Bug 86119 – "select all" feature
Original patch by Simone Gotti.
* src/vte.c: (vte_terminal_select_all), (vte_terminal_select_none):
* src/vte.h:
Add 2 new API entry points to select the entire contents
and clear the current selection.
2007-02-06 Chris Wilson <chris@chris-wilson.co.uk>
Bug 342059 – ASCII escape sequences don't work as expected
Correction by Mariano Suárez-Alvarez.
* src/vteseq.c: (vte_sequence_handler_cursor_character_absolute):
OBO on the parameter.
2007-02-06 Chris Wilson <chris@chris-wilson.co.uk>
Bug 342059 – ASCII escape sequences don't work as expected
Patch by Mariano Suárez-Alvarez.
* src/vteseq.c: (vte_sequence_handler_cursor_character_absolute):
Provide a default value.
2007-02-06 Chris Wilson <chris@chris-wilson.co.uk>
And finally as noted on bug 324246#c8 hide the hilite when the mouse
leaves the terminal (show again when it enters and let motion-notify
correct it later).
* src/vte.c: (vte_terminal_enter), (vte_terminal_leave),
(vte_terminal_realize), (vte_terminal_class_init):
2007-02-06 Chris Wilson <chris@chris-wilson.co.uk>
As noted on bug 324246#c8, hide the hilite when the focus disappears.
On focus restore the match for the last mouse coordinates and let
motion-notify take care of the rest.
* src/vte.c: (vte_terminal_match_hilite_update),
(vte_terminal_match_hilite), (vte_terminal_focus_in):
2007-02-06 Chris Wilson <chris@chris-wilson.co.uk>
Convert the exposed rectangles to cells and remerge them.
* src/vte.c: (vte_terminal_expand_region),
(vte_terminal_paint_area), (vte_terminal_paint):
2007-02-06 Chris Wilson <chris@chris-wilson.co.uk>
As noted on Bug 401052#c13, vte fails to completely clear the cell's
previous contents.
* src/vte.c: (_vte_invalidate_cells):
Grow the invalidate region by a single pixel to accomodate
antialiased pseudo-bold characters.
2007-02-06 Chris Wilson <chris@chris-wilson.co.uk>
Move status_line_changed to post-processing emission.
* src/vte-private.h:
* src/vte.c: (_vte_terminal_insert_char), (vte_terminal_reset),
(vte_terminal_emit_pending_signals):
* src/vteseq.c: (vte_sequence_handler_ts):
2007-02-06 Chris Wilson <chris@chris-wilson.co.uk>
Clamp down on needless invalidates during selection.
As commented on in Bug 401052#c10
* src/vte.c: (_vte_invalidate_region), (vte_terminal_deselect_all),
(vte_terminal_match_hilite_clear), (vte_terminal_start_selection),
(vte_terminal_extend_selection):
2007-02-06 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_draw_rows):
Don't needlessly break the text run on a space if we are
not drawing cell attributes.
2007-02-06 Chris Wilson <chris@chris-wilson.co.uk>
* src/iso2022.c: (_vte_iso2022_is_ambiguous_ht):
One more G_UNLIKELY
* src/vte.c: (vte_terminal_match_hilite),
(vte_terminal_motion_notify):
Avoid expensive hiliting if the pointer is not in the window.
* src/vteregex.c: (_vte_regex_exec):
Prefer g_new(x,n) over g_malloc(sizeof(x)*n)
2007-02-05 Chris Wilson <chris@chris-wilson.co.uk>
Bug 404757 – URL matching doesn't work with PCRE
* configure.in:
mention the inconsistency in the help string and default to no.
2007-02-05 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_draw_rows):
Don't draw cell attributes across spaces.
2007-02-05 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (_vte_terminal_insert_char):
A couple more G_LIKELYs.
2007-02-05 Chris Wilson <chris@chris-wilson.co.uk>
Bug 403028 – decset mode 12 = blinking cursor
* src/vteseq.c: (vte_sequence_handler_decset_internal):
Following convention, disallow the application's control
over the blinking cursor in favour of the user's setting.
2007-02-05 Chris Wilson <chris@chris-wilson.co.uk>
Some more small callgrind tweaks - well into the law of diminishing
returns.
* src/iso2022.c: (_vte_iso2022_is_ambiguous_ht),
(_vte_iso2022_is_ambiguous), (process_8_bit_sequence),
(process_cdata), (_vte_iso2022_unichar_width):
* src/matcher.c: (_vte_matcher_free_params_array):
* src/vte.c: (vte_terminal_process_incoming):
2007-02-05 Chris Wilson <chris@chris-wilson.co.uk>
Beware the trivial change. Handle reuse of GValueArray correctly.
* src/matcher.c: (_vte_matcher_match):
* src/table.c: (_vte_table_match):
* src/trie.c: (_vte_trie_match):
* src/vte.c: (vte_terminal_process_incoming):
2007-02-05 Chris Wilson <chris@chris-wilson.co.uk>
* src/table.c: (_vte_table_match):
And kill the leak as vte_table_match erroneously cleared
its output arguments.
2007-02-05 Chris Wilson <chris@chris-wilson.co.uk>
The continual reallocation of GValueArray is the last trivially
avoidable g_realloc.
* src/interpret.c: (main):
* src/matcher.c: (_vte_matcher_create), (_vte_matcher_destroy),
(_vte_matcher_match), (_vte_matcher_free_params_array):
* src/matcher.h:
* src/table.c: (_vte_table_extract_string):
* src/trie.c: (_vte_trie_matchx), (_vte_trie_match), (main):
* src/vte.c: (vte_terminal_process_incoming):
2007-02-05 Chris Wilson <chris@chris-wilson.co.uk>
* src/ring.c: (_vte_ring_insert):
Missed an important compiler warning.
2007-02-05 Chris Wilson <chris@chris-wilson.co.uk>
cf Bug 342338 – suffers from memory fragmentation
Reuse the last VteRowData instead of immediately freeing it. Avoids
recreating and *regrowing* a new GArray on the heap.
In the simple scrolling benchmarks this can boost performance by as
much as 10%!
* src/ring.c: (_vte_ring_insert), (_vte_ring_insert_preserve),
(_vte_ring_remove), (_vte_ring_append):
* src/ring.h:
* src/vte-private.h:
* src/vte.c: (_vte_reset_row_data), (_vte_terminal_ensure_cursor),
(_vte_terminal_insert_char), (vte_terminal_reset_rowdata):
* src/vteseq.c: (vte_insert_line_internal),
(vte_sequence_handler_scroll_up_or_down),
(vte_sequence_handler_cd), (vte_sequence_handler_sf),
(vte_sequence_handler_clear_screen),
(vte_sequence_handler_screen_alignment_test):
2007-02-04 Chris Wilson <chris@chris-wilson.co.uk>
A few more compiler warnings.
* src/buffer.c: (_vte_buffer_peek_gstring):
* src/iso2022.c: (process_control):
* src/vteft2.c: (_vte_ft2_set_text_font):
* src/vteseq.c: (vte_sequence_handler_set_title_internal):
* src/vtetc.c: (_vte_termcap_parse_file):
2007-02-04 Chris Wilson <chris@chris-wilson.co.uk>
Bug 106618 – CJK 'fixed width' font and 's p a c e d o u t' issue
* src/vtedraw.h:
* src/vteglyph.c: (_vte_glyph_cache_set_font_description):
* src/vtepango.c: (_vte_pango_set_text_font):
* src/vtepangox.c: (_vte_pango_x_set_text_font):
* src/vtexft.c: (_vte_xft_set_text_font):
Detect a change in font between wide-chars and recheck for a
fixed-width estimate.
2007-02-04 Chris Wilson <chris@chris-wilson.co.uk>
Micro-opts.
* src/table.c: (_vte_table_match):
No need set to NULL.
* src/vte.c: (_vte_terminal_ensure_cursor):
If we have added some rows, the last is the current.
2007-02-04 Chris Wilson <chris@chris-wilson.co.uk>
Move window/icon title changed to the post-processing emission - helps
with the artificial benchmark of replaying a recorded jhbuild script.
* src/vte-private.h:
* src/vte.c: (vte_terminal_finalize),
(vte_terminal_emit_icon_title_changed),
(vte_terminal_emit_window_title_changed),
(vte_terminal_emit_pending_signals):
* src/vteseq.c: (vte_sequence_handler_set_title_internal):
2007-02-04 Chris Wilson <chris@chris-wilson.co.uk>
Broke clear-to-end-of-line by lowering the number of cells appended,
instead of the number of cells invalidated.
* src/vte.c: (vte_terminal_draw_rows):
* src/vteseq.c: (vte_sequence_handler_ce):
2007-02-04 Chris Wilson <chris@chris-wilson.co.uk>
cf Bug 83285 – Treacle-slow scrolling in gnome-terminal on unaccelerated X server
Another chunk of performance improvements - the majority focusing on
reducing the amount of work down per interrupt (input data from
child).
To handle reads without addition copies VTE_INPUT_CHUNK_SIZE chunks
are allocated on demand and filled from read with no further copy -
previously the read was into a local buffer and then immediately
copied into a _vte_buffer.
_vte_iso2022_process() is then adjusted to use a ptr+length, rather
than a _vte_buffer and is called for every input chunk (taking special
care over the boundary cases).
* src/interpret.c: (main):
* src/iso2022.c: (_vte_iso2022_fragment_input),
(process_8_bit_sequence), (process_cdata), (_vte_iso2022_process):
* src/iso2022.h:
* src/vte-private.h:
* src/vte.c: (get_chunk), (release_chunk), (prune_chunks),
(_vte_incoming_chunks_release), (_vte_incoming_chunks_length),
(_vte_incoming_chunks_count), (_vte_incoming_chunks_reverse),
(vte_terminal_match_check_internal), (_vte_terminal_ensure_cursor),
(vte_terminal_set_colors), (_vte_terminal_insert_char),
(vte_terminal_catch_child_exited), (vte_terminal_eof),
(vte_terminal_process_incoming), (_vte_terminal_feed_chunks),
(vte_terminal_io_read), (vte_terminal_feed), (vte_terminal_send),
(vte_terminal_init), (vte_terminal_finalize), (vte_terminal_reset),
(remove_from_active_list), (need_processing), (update_regions),
(update_repeat_timeout):
* src/vte.h:
* src/vteseq.c: (vte_sequence_handler_cb),
(vte_sequence_handler_ce), (vte_sequence_handler_ec):
2007-02-04 Chris Wilson <chris@chris-wilson.co.uk>
Store whether the codeset is ambiguous in a state variable,
rather than recomputing the ambiguous width every processing loop.
* src/iso2022.c: (_vte_iso2022_is_ambiguous),
(_vte_iso2022_state_new), (_vte_iso2022_find_nextctl):
2007-02-04 Chris Wilson <chris@chris-wilson.co.uk>
* src/vtexft.c: (_vte_xft_create), (_vte_xft_destroy):
Remove zero-initialisers after g_slice_new0().
* src/vtexft.c :(_vte_xft_set_text_font):
Print out the width range.
2007-02-04 Chris Wilson <chris@chris-wilson.co.uk>
* configure.in:
Missing space between -Wflags.
2007-02-04 Chris Wilson <chris@chris-wilson.co.uk>
Eliminate the temporary g_sliced parameter list,
in favour of an on-stack list.
* src/table.c: (_vte_table_arginfo_head_init),
(_vte_table_arginfo_alloc), (_vte_table_arginfo_head_revert),
(_vte_table_arginfo_head_reverse),
(_vte_table_arginfo_head_finalize), (_vte_table_addi),
(_vte_table_matchi), (_vte_table_extract_string),
(_vte_table_match):
2007-02-02 Chris Wilson <chris@chris-wilson.co.uk>
* src/vtefc.c: (_vte_fc_patterns_from_pango_font_desc):
Dump the chosen fonts to VTE_DEBUG_MISC.
* src/vteft2.c: (_vte_ft2_set_text_font):
Print out the font metrics ala vtexft.c
2007-02-02 Chris Wilson <chris@chris-wilson.co.uk>
Bug 322241 – Please switch to pkg-config to check for freetype
* configure.in:
Prefer to use the freetype2.pc if available.
2007-02-02 Chris Wilson <chris@chris-wilson.co.uk>
Bug 322240 – Usage of pkg-config privates header
* vte.pc.in:
Move @FT2_LIBS@ to Libs.private.
2007-02-01 Chris Wilson <chris@chris-wilson.co.uk>
cf Bug 403275 – crash in Terminal: I was typing reset on th...
Not the crash, just a freeze found whilst trying to reproduce the
bug on trunk.
* src/vte.c: (remove_from_active_list):
Don't remove the terminal from the active list if it still
has pending redraws.
* src/vte.c: (process_timeout), (update_timeout):
Reorder the loop to remove the terminal from the active list
if it no longer needs processing.
2007-02-01 Chris Wilson <chris@chris-wilson.co.uk>
* perf/scroll.vim:
Extract the bits the test needs out of debian.vim.
2007-02-01 Chris Wilson <chris@chris-wilson.co.uk>
As spotted on bug 399617c8, we convert an array of unichars to a
string and then iterate over the string interpreting bytes as
unichars.
* src/table.c: (_vte_table_extract_numbers):
Dispense with the temporary string and process the unichar
array directly.
2007-02-01 Chris Wilson <chris@chris-wilson.co.uk>
Bug 403159 – XftDrawSetClipRectangles() silently fails on ppc->i386
* src/vtexft.c: (_vte_xft_clip):
Precompute clip offsets.
2007-02-01 Chris Wilson <chris@chris-wilson.co.uk>
Bug 382245 – __PyGtk_API multiply defined in python module
* configure.in:
Add -fno-common to MAYBE_WARN in order to catch future
errors of this type.
* python/vte.override:
Define PYGTK_NO_IMPORT.
2007-01-31 Chris Wilson <chris@chris-wilson.co.uk>
Bug 155687 – Scroll region \E[NN;MMr should set cursor to home
Patch originally by Michele Baldessari.
* src/vteseq.c: (vte_sequence_handler_cs):
Move the cursor to (0,0) rather than clamping the cursor to
be inside the scroll region.
2007-01-31 Chris Wilson <chris@chris-wilson.co.uk>
In a few places the contents of a GValue were being used without
checking that they were of the expected type.
cf Bug 117945 which mentions stack corruption inside
vte_sequence_handler_delete_lines() - one of the corrected instances.
* src/vteseq.c: (vte_sequence_handler_al),
(vte_sequence_handler_cs), (vte_sequence_handler_cS),
(vte_sequence_handler_dl),
(vte_sequence_handler_character_attributes),
(vte_sequence_handler_insert_lines),
(vte_sequence_handler_delete_lines),
(vte_sequence_handler_device_status_report),
(vte_sequence_handler_dec_device_status_report):
Check that the GValue holds a long before dereference.
2007-01-31 Chris Wilson <chris@chris-wilson.co.uk>
Back to the old-style io loop as _vte_buffer_append() is too slow - on
a slow system the read can fill before the data is copied (even more
apparent under valgrind).
* src/vte-private.h:
* src/vte.c: (vte_terminal_io_read):
2007-01-31 Chris Wilson <chris@chris-wilson.co.uk>
Use the display stashed inside the font and not the default display!
* src/vtexft.c: (_vte_xft_char_exists), (_vte_xft_text_extents),
(_vte_xft_font_open), (_vte_xft_font_close),
(_vte_xft_font_for_char), (_vte_xft_draw_text):
2007-01-31 Chris Wilson <chris@chris-wilson.co.uk>
A mixed bag of cleanups.
* configure.in:
* src/pty.c: (_vte_pty_set_utf8):
Test for existence of tc[sg]etattr.
* src/vte-private.h:
* src/vte.c: (vte_terminal_emit_adjustment_changed),
(vte_terminal_queue_adjustment_changed),
(vte_terminal_set_color_internal), (vte_terminal_handle_sequence),
(_vte_terminal_enable_input_source), (vte_terminal_io_read),
(vte_terminal_init), (vte_terminal_unrealize),
(vte_terminal_finalize), (vte_terminal_background_update),
(vte_terminal_queue_background_update),
(vte_terminal_emit_pending_signals), (process_timeout),
(update_repeat_timeout), (update_timeout):
Move idle signal emission to display handlers.
* src/vtedraw.h:
Add '&' to the single width characters.
* src/vteseq.c: (_vte_sequence_get_handler):
* src/vteseq.h:
Drop the extraneous GQuark parameter.
* src/vtexft.c: (_vte_xft_set_text_font):
Avoid use of strlen for a compile-time fixed length string.
2007-01-31 Chris Wilson <chris@chris-wilson.co.uk>
Bug 147784 – cursor unvisible under mouse highlight
Original patch by Chris Health
* src/vte.c: (vte_terminal_paint):
Reverse cursor color if it is in the selected region and draw
it as an outline.
2007-01-31 Chris Wilson <chris@chris-wilson.co.uk>
Bug 368894 – crash in Terminal: I started gnome-terminal...
* src/vtebg.c: (vte_bg_cache_search), (vte_bg_get_pixmap),
(vte_bg_get_pixbuf):
When retrieving a cached pixmap check that the visual
matches the current request.
2007-01-31 Chris Wilson <chris@chris-wilson.co.uk>
Use gdk_error_trap_{push,pop} around raw Xft calls - about a
path outside of vte_draw_{begin,end}.
* src/vtexft.c: (_vte_xft_set_text_font):
2007-01-31 Chris Wilson <chris@chris-wilson.co.uk>
Use gdk_error_trap_{push,pop} around raw X11 and Xft calls.
cf Bug 368894.
* src/vtexft.c: (_vte_xft_font_for_char), (_vte_xft_start),
(_vte_xft_end):
2007-01-31 Chris Wilson <chris@chris-wilson.co.uk>
Use gperf to calculate a more optimal vte_sequence_get_handler().
This reduces vte_sequence_get_handler() from ~13% of the runtime
during 'seq 1 1e6' to ~.5% (cumulative).
* src/Makefile.am:
* src/vteseq-2.c: (vteseq_2_hash), (vteseq_2_lookup):
* src/vteseq-2.gperf:
* src/vteseq-n.c: (vteseq_n_hash), (vteseq_n_lookup):
* src/vteseq-n.gperf:
* src/vteseq.c: (_vte_sequence_get_handler):
2007-01-31 Chris Wilson <chris@chris-wilson.co.uk>
Rudimentary vim scrolling benchmark.
* perf/Makefile.am:
* perf/UTF-8-demo.txt:
* perf/scroll.vim:
* perf/vim.sh:
2007-01-30 Chris Wilson <chris@chris-wilson.co.uk>
Bug 402329 – Rendering problem with underlines and cursor
* src/vte.c: (vte_terminal_paint):
Check hilite state when redrawing character under cursor.
2007-01-29 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte-private.h:
* src/vte.c: (vte_terminal_io_read):
Clean up the read IO loop.
2007-01-29 Chris Wilson <chris@chris-wilson.co.uk>
NULL return from pcre_study() does not necessarily mean an error
occurred.
* src/vteregex.c: (_vte_regex_compile), (_vte_regex_exec):
2007-01-29 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (_vte_terminal_set_pointer_visible),
(_vte_terminal_fudge_pango_colors):
Kill a couple more compiler warnings.
2007-01-29 Chris Wilson <chris@chris-wilson.co.uk>
Bug 336105 – gnome-terminal crashes when termcap not found
* src/matcher.c: (_vte_matcher_init):
* src/vte-private.h:
* src/vte.c: (vte_terminal_set_default_tabstops),
(vte_terminal_key_press), (vte_terminal_set_emulation),
(_vte_terminal_inline_error_message), (vte_terminal_set_termcap),
(vte_terminal_init), (vte_terminal_finalize),
(vte_terminal_draw_cells):
Detect and issue an inline warning when we fail
to load a termcap.
2007-01-29 Chris Wilson <chris@chris-wilson.co.uk>
Tighten the invalidated cells.
* src/vte.c: (_vte_terminal_select_text):
* src/vteseq.c: (vte_sequence_handler_cb):
2007-01-29 Chris Wilson <chris@chris-wilson.co.uk>
More compiler warnings.
* src/vtepangox.c: (_vte_pango_x_set_text_font),
(_vte_pango_x_draw_text):
* src/vteregex.c: (_vte_regex_exec):
2007-01-29 Chris Wilson <chris@chris-wilson.co.uk>
Detect availability of PCRE.
* configure.in:
* src/Makefile.am:
2007-01-29 Chris Wilson <chris@chris-wilson.co.uk>
Improve handling of multi-row clears.
* src/vte.c: (vte_terminal_draw_cells), (vte_terminal_draw_rows),
(vte_terminal_paint):
2007-01-29 Chris Wilson <chris@chris-wilson.co.uk>
Add debugging flags for printing out cells contents and attributes as
they are rendered.
* src/debug.c: (_vte_debug_parse_string):
* src/debug.h:
* src/vte.c: (vte_terminal_draw_cells):
2007-01-29 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_draw_rows):
Don't issue glyph items for blank cells.
2007-01-29 Chris Wilson <chris@chris-wilson.co.uk>
* configure.in:
Add -Wshadow to MAYBE_WARN
* src/ring.c: (_vte_ring_remove):
* src/table.c: (_vte_table_matchi):
* src/vtedraw.c: (_vte_draw_clip):
* src/vteskel.c:
Clean up some compiler warnings.
2007-01-29 Chris Wilson <chris@chris-wilson.co.uk>
* src/vteskel.c:
Add the NULL clip func to the skeleton function table.
2007-01-29 Chris Wilson <chris@chris-wilson.co.uk>
Update match hilite before showing the pointer as the choice of
cursor depends on whether the pointer is above a matched region.
* src/vte.c: (vte_terminal_motion_notify),
(vte_terminal_button_press), (vte_terminal_button_release):
2007-01-29 Chris Wilson <chris@chris-wilson.co.uk>
Only update the matched region if we move the pointer outside of the
currently matched region.
And only invalidate the cells underneath the matched region.
* src/vte.c: (_vte_invalidate_region),
(vte_terminal_match_hilite_clear), (cursor_inside_match),
(vte_terminal_match_hilite), (vte_terminal_draw_rows):
2007-01-29 Chris Wilson <chris@chris-wilson.co.uk>
* src/table.c: (_vte_table_free):
Fix a memleak.
2007-01-29 Chris Wilson <chris@chris-wilson.co.uk>
==26147== 2,895 (352 direct, 2,543 indirect) bytes in 22 blocks are definitely lost in loss record 107 of 170
==26147== at 0x4021380: malloc (vg_replace_malloc.c:149)
==26147== by 0x4E85965: g_malloc (gmem.c:131)
==26147== by 0x4E95537: g_slice_alloc (gslice.c:777)
==26147== by 0x4E7C255: g_list_prepend (glist.c:95)
==26147== by 0x428B887: vte_terminal_feed (vte.c:10991)
==26147== by 0x429DD20: vte_terminal_io_read (vte.c:3214)
==26147== by 0x4EA7A8C: g_io_unix_dispatch (giounix.c:162)
==26147== by 0x4E7E481: g_main_context_dispatch (gmain.c:2045)
==26147== by 0x4E8145E: g_main_context_iterate (gmain.c:2677)
==26147== by 0x4E81808: g_main_loop_run (gmain.c:2881)
==26147== by 0x45BA503: gtk_main (gtkmain.c:1148)
==26147== by 0x805F7A3: main (terminal.c:1773)
* src/vte.c: (remove_from_active_list), (process_timeout),
(update_repeat_timeout):
g_list_delete_link() is the one that actually frees the link.
s/g_list_remove_link/g_list_delete_link/.
2007-01-29 Chris Wilson <chris@chris-wilson.co.uk>
==26147== Conditional jump or move depends on uninitialised value(s)
==26147== at 0x42AB9F7: _vte_rdb_search (vterdb.c:95)
==26147== by 0x42ABB40: _vte_rdb_quark (vterdb.c:201)
==26147== by 0x42ABB9F: _vte_rdb_get_hintstyle (vterdb.c:241)
==26147== by 0x42A7952: _vte_fc_patterns_from_pango_font_desc (vtefc.c:302)
==26147== by 0x42B4E9B: _vte_xft_set_text_font (vtexft.c:103)
==26147== by 0x42A6BE5: _vte_draw_set_text_font (vtedraw.c:258)
==26147== by 0x428C62B: vte_terminal_ensure_font (vte.c:5963)
==26147== by 0x4290295: vte_terminal_size_request (vte.c:6613)
==26147== by 0x4E25228: g_cclosure_marshal_VOID__BOXED (gmarshal.c:566)
==26147== by 0x4E17038: g_type_class_meta_marshal (gclosure.c:567)
==26147== by 0x4E188FC: g_closure_invoke (gclosure.c:490)
==26147== by 0x4E29779: signal_emit_unlocked_R (gsignal.c:2370)
==26147==
* src/vterdb.c: (_vte_rdb_get):
Check the result of the get_property_string before using the
returned values.
2007-01-29 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_draw_cells), (vte_terminal_draw_rows):
Merge draw_cells() with the background clear, as generating
items for many rows and then splitting again in draw cells is
simply inefficient.
2007-01-28 Chris Wilson <chris@chris-wilson.co.uk>
Bug 401215 – Multi-pass renderering
* src/vte.c: (vte_terminal_draw_cells), (vte_terminal_clear_cells),
(vte_terminal_draw_cells_with_attributes),
(vte_terminal_draw_rows), (vte_terminal_paint):
Break the draw_rows() loop into two passes - first clear the
background and second render the text.
Add another function based on draw_cells() that just clears the
background and make clearing the background optional in
draw_cells() - updating callers accordingly.
Adventurous souls are required to clean up draw_rows().
2007-01-27 Chris Wilson <chris@chris-wilson.co.uk>
Fix compilation *with* debugging enabled.
Grrr.
* src/keymap.c: (_vte_keysym_print):
2007-01-27 Chris Wilson <chris@chris-wilson.co.uk>
Fix compilation without debugging enabled.
* src/keymap.c: (_vte_keysym_print), (_vte_keymap_map):
* src/vte.c: (display_control_sequence):
* src/vteapp.c: (main):
2007-01-26 Chris Wilson <chris@chris-wilson.co.uk>
* src/debug.h:
Provide a safe fallback for non-C99 compilers (well actually
anything that isn't a recent gcc at the moment).
2007-01-26 Chris Wilson <chris@chris-wilson.co.uk>
Bug 157267 – _vte_terminal_fudge_pango_colors() breaks Japanese input style
Patch by ynakai@redhat.com.
* src/vte.c: (_vte_terminal_fudge_pango_colors):
Check the attributes for each cell rather than assuming the
pango attributes (and cell attributes) are the same for the
whole string.
2007-01-26 Chris Wilson <chris@chris-wilson.co.uk>
* src/vteseq.c: (vte_sequence_handler_vb):
Iterating over all queued exposures and drawing on top of the
flash does not sense. Simply flush the draw.
2007-01-26 Chris Wilson <chris@chris-wilson.co.uk>
s/_VTE_DEBUG_ON/_VTE_DEBUG_IF/ and don't include
the code block inside the macro.
* src/debug.h:
* src/iso2022.c: (process_control), (_vte_iso2022_process):
* src/keymap.c: (_vte_keymap_map):
* src/matcher.c: (_vte_matcher_init):
* src/pty.c: (_vte_pty_run_on_pty):
* src/table.c: (_vte_table_addi), (_vte_table_matchi),
(_vte_table_extract_numbers), (_vte_table_match):
* src/trie.c: (_vte_trie_addx):
* src/vte.c: (vte_terminal_match_check_internal),
(vte_terminal_match_check), (vte_terminal_handle_sequence),
(vte_terminal_catch_child_exited), (vte_terminal_process_incoming),
(vte_terminal_io_write), (vte_terminal_send),
(vte_terminal_key_press), (vte_terminal_copy_cb),
(vte_terminal_set_font_full), (vte_terminal_realize),
(vte_terminal_paint), (vte_terminal_scroll):
* src/vteapp.c: (main):
* src/vtebg.c: (vte_bg_root_pixmap):
2007-01-26 Chris Wilson <chris@chris-wilson.co.uk>
Bug 400834 – Use a global display/process timeout
Currently each terminal uses it own display timeout. Given that
typical usage is several active terminals, there is an immediate
advantage (context switches, fairness, smoothness) to using a single
common timeout.
* src/debug.c: (_vte_debug_parse_string):
* src/debug.h:
Add VTE_DEBUG_TIMEOUT
* src/vte-private.h:
* src/vte.c: (update_regions), (_vte_invalidate_cells),
(_vte_invalidate_all), (vte_terminal_init),
(vte_terminal_class_init), (add_update_timeout),
(remove_from_active_list), (remove_update_timeout),
(add_process_timeout), (vte_terminal_stop_processing),
(vte_terminal_is_processing), (process_timeout),
(update_repeat_timeout), (update_timeout):
Modify to use a global timeout rather than individual
private timeouts.
2007-01-26 Chris Wilson <chris@chris-wilson.co.uk>
Unable to set background scrolling mode from cmdline due to variable
name confusion.
* src/vteapp.c: (main):
--scroll should set scroll=TRUE rather than cursor=TRUE!
2007-01-26 Chris Wilson <chris@chris-wilson.co.uk>
Bug 401082 – double-draw issue
The main cause of this bug was not expanding the cleared area to cover
all the cells affected by the draw and forgetting to offset the clear
by VTE_PAD_WIDTH.
To counter the performance hit due to the expanded repaint area, each
backend is presented with the opportunity to apply a clip to the
exposed region before painting.
This also fixes bug 333157,
* src/vte.c: (_vte_invalidate_cells), (vte_terminal_paint_area),
(vte_terminal_paint):
* src/vtedraw.c: (_vte_draw_clip):
* src/vtedraw.h:
* src/vteft2.c: (_vte_ft2_end), (_vte_ft2_clip):
* src/vtegl.c:
* src/vtepango.c: (_vte_pango_clip):
* src/vtepangox.c: (_vte_pango_x_clip):
* src/vtexft.c: (_vte_xft_clip), (_vte_xft_draw_text):
2007-01-26 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_match_hilite):
* src/vteseq.c: (vte_sequence_handler_ce),
(vte_sequence_handler_dc), (vte_sequence_handler_ec):
Tighten the _vte_invalidate_cells() to only those that
we potentially modify.
2007-01-26 Chris Wilson <chris@chris-wilson.co.uk>
* src/vtexft.c: (_vte_xft_set_text_font):
Remove the additional pixel inter-character spacing.
Compactness over clarity ;)
2007-01-26 Chris Wilson <chris@chris-wilson.co.uk>
Apply a one pixel fudge to the Xft character position and width.
This greatly improves text appearance and hides the misrendering of
pseudo-bold characters.
cf bugs 317691, 333157.
* src/vte.c: (vte_terminal_paint):
Increase the cursor size to fit around the cell.
* src/vtexft.c: (_vte_xft_set_text_font), (_vte_xft_draw_text):
Fudge the Xft font positioning.
2007-01-26 Chris Wilson <chris@chris-wilson.co.uk>
Bug 318307 – Cursor colour changes to foreground when unfocused
Whilst setting the colour, tweak the position of the rectangle, and
extended the invalidate region to account for the OBO nature of bold
font.
* src/vte.c: (_vte_invalidate_cells):
Include the padding to accomodate cell effects.
* src/vte.c: (vte_terminal_paint):
Use the cursor color for the rectangle when unfocused.
2007-01-26 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c (vte_terminal_visibility_notify): Correctly handle
visibility events: set invalidated_all to FALSE, and invalidate_all
if fully unobscured.
2007-01-26 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c (vte_terminal_visibility_notify): Make sure we redraw
after becoming unobscured. There still is a bug that I've not found,
but after obscuring the widget and coming back, a first redraw
happens, but no update after that.
2007-01-26 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_draw_area):
Occasionally we generate an exposed area which is computed
as 0x0 cells. Discard early, before we spend an infinity
drawing nothing.
2007-01-26 Chris Wilson <chris@chris-wilson.co.uk>
Janitorial work - near elimination of #ifdef VTE_DEBUG from within
functions, trimming a thousand lines of code.
We introduce a _vte_debug_print macro to cover the more common
occurrence of printing a message at a certain debug level.
And a _VTE_DEBUG_ON for a conditional code block.
src/debug.h | 11
src/iso2022.c | 201 ++-------
src/keymap.c | 41 -
src/matcher.c | 24 -
src/pty.c | 134 +-----
src/reaper.c | 21
src/ring.c | 78 +--
src/table.c | 11
src/trie.c | 19
src/vte.c | 1187 ++++++++++---------------------------------------
src/vteaccess.c | 198 +++------
src/vteapp.c | 21
src/vtebg.c | 43 --
src/vteconv.c | 60 +-
src/vteconv.h | 12
src/vtedraw.c | 6
src/vtefc.c | 4
src/vteft2.c | 5
src/vteglyph.c | 27 -
src/vtepango.c | 11
src/vtepangox.c | 7
src/vteregex.c | 2
src/vteseq.c | 385 +++++-------------
src/vtexft.c | 26 -
24 files changed, 789 insertions(+), 1745 deletions(-)
* src/debug.h:
* src/iso2022.c: (_vte_iso2022_ambiguous_width_guess),
(_vte_iso2022_state_new), (_vte_iso2022_state_set_codeset),
(process_8_bit_sequence), (process_cdata), (process_control),
(_vte_iso2022_process):
* src/keymap.c: (_vte_keymap_map):
* src/matcher.c: (_vte_matcher_init), (_vte_matcher_create),
(_vte_matcher_destroy):
* src/pty.c: (vte_pty_child_setup), (_vte_pty_run_on_pty),
(_vte_pty_set_size), (_vte_pty_get_size), (_vte_pty_ptsname),
(_vte_pty_open_unix98), (_vte_pty_open_with_helper),
(_vte_pty_open):
* src/reaper.c: (vte_reaper_emit_signal),
(vte_reaper_child_watch_cb), (vte_reaper_init),
(vte_reaper_finalize):
* src/ring.c: (_vte_ring_insert), (_vte_ring_insert_preserve),
(_vte_ring_remove):
* src/table.c: (_vte_table_addi):
* src/trie.c: (char_class_string_extract), (_vte_trie_addx),
(_vte_trie_add):
* src/vte.c: (update_regions), (_vte_invalidate_cells),
(_vte_invalidate_all), (_vte_invalidate_cell),
(_vte_invalidate_cursor_once),
(vte_terminal_emit_selection_changed), (vte_terminal_emit_commit),
(vte_terminal_emit_emulation_changed),
(vte_terminal_emit_encoding_changed),
(vte_terminal_emit_child_exited),
(_vte_terminal_emit_contents_changed),
(vte_terminal_emit_cursor_moved), (vte_terminal_emit_eof),
(vte_terminal_emit_char_size_changed),
(_vte_terminal_emit_status_line_changed),
(vte_terminal_emit_increase_font_size),
(vte_terminal_emit_decrease_font_size),
(_vte_terminal_emit_text_inserted),
(_vte_terminal_emit_text_deleted),
(vte_terminal_emit_text_modified),
(vte_terminal_emit_text_scrolled), (vte_terminal_deselect_all),
(vte_terminal_match_check_internal), (vte_terminal_match_check),
(vte_terminal_emit_adjustment_changed),
(vte_terminal_queue_adjustment_changed),
(_vte_terminal_adjust_adjustments), (vte_terminal_scroll_pages),
(vte_terminal_maybe_scroll_to_bottom), (vte_terminal_set_encoding),
(_vte_terminal_set_pointer_visible), (vte_terminal_new),
(vte_terminal_generate_bold), (_vte_terminal_insert_char),
(vte_terminal_handle_sequence), (vte_terminal_catch_child_exited),
(vte_terminal_fork_command),
(vte_terminal_emit_pending_text_signals),
(vte_terminal_process_incoming), (vte_terminal_io_read),
(vte_terminal_io_write), (vte_terminal_send),
(vte_terminal_im_commit), (vte_terminal_im_preedit_start),
(vte_terminal_im_preedit_end), (vte_terminal_im_preedit_changed),
(vte_terminal_configure_toplevel),
(vte_terminal_hierarchy_changed), (vte_terminal_style_changed),
(vte_terminal_key_press), (vte_terminal_paste_cb),
(vte_terminal_match_hilite_clear), (vte_terminal_match_hilite),
(vte_terminal_clear_cb), (vte_terminal_copy_cb),
(vte_terminal_copy), (vte_terminal_paste),
(vte_terminal_start_selection), (vte_terminal_extend_selection),
(vte_terminal_autoscroll), (vte_terminal_motion_notify),
(vte_terminal_button_press), (vte_terminal_button_release),
(vte_terminal_focus_in), (vte_terminal_focus_out),
(vte_terminal_set_font_full), (vte_terminal_set_size),
(vte_terminal_handle_scroll), (vte_terminal_set_emulation),
(vte_terminal_set_termcap), (vte_terminal_reset_rowdata),
(vte_terminal_fc_settings_changed), (vte_terminal_init),
(vte_terminal_size_request), (vte_terminal_size_allocate),
(vte_terminal_unrealize), (vte_terminal_finalize),
(vte_terminal_realize), (vte_terminal_draw_cells),
(_vte_terminal_map_pango_color), (vte_terminal_draw_area),
(vte_terminal_paint), (vte_terminal_expose), (vte_terminal_scroll),
(vte_terminal_class_init), (vte_terminal_copy_clipboard),
(vte_terminal_paste_clipboard), (vte_terminal_copy_primary),
(vte_terminal_paste_primary), (vte_terminal_background_update),
(vte_terminal_queue_background_update),
(vte_terminal_set_background_saturation),
(vte_terminal_set_background_tint_color),
(vte_terminal_set_background_transparent),
(vte_terminal_set_background_image),
(vte_terminal_set_background_image_file),
(vte_terminal_set_word_chars), (process_timeout),
(update_repeat_timeout), (update_timeout):
* src/vteaccess.c: (xy_from_offset), (emit_text_caret_moved),
(emit_text_changed_insert), (emit_text_changed_delete),
(vte_terminal_accessible_update_private_data_if_needed),
(vte_terminal_accessible_text_modified),
(vte_terminal_accessible_text_scrolled),
(vte_terminal_accessible_invalidate_cursor),
(vte_terminal_accessible_finalize),
(vte_terminal_accessible_get_text),
(vte_terminal_accessible_get_text_somewhere),
(vte_terminal_accessible_get_run_attributes),
(vte_terminal_accessible_text_init),
(vte_terminal_accessible_component_init),
(vte_terminal_accessible_action_init),
(vte_terminal_accessible_factory_new):
* src/vteapp.c: (destroy_and_quit_eof), (destroy_and_quit_exited),
(take_xconsole_ownership), (main):
* src/vtebg.c: (vte_bg_root_pixmap), (vte_bg_set_root_pixmap),
(_vte_bg_resize_pixbuf):
* src/vteconv.c: (_vte_conv_utf8_utf8), (_vte_conv_open),
(_vte_conv), (_vte_conv_cu), (_vte_conv_uu), (_vte_conv_uc):
* src/vteconv.h:
* src/vtedraw.c: (_vte_draw_new):
* src/vtefc.c: (_vte_fc_transcribe_from_pango_font_description):
* src/vteft2.c: (_vte_ft2_draw_text):
* src/vteglyph.c: (_vte_glyph_cache_free),
(_vte_glyph_cache_set_font_description):
* src/vtepango.c: (_vte_pango_set_text_font),
(_vte_pango_draw_text):
* src/vtepangox.c: (_vte_pango_x_set_text_font):
* src/vteregex.c: (_vte_regex_exec):
* src/vteseq.c: (vte_terminal_emit_deiconify_window),
(vte_terminal_emit_iconify_window),
(vte_terminal_emit_icon_title_changed),
(vte_terminal_emit_window_title_changed),
(vte_terminal_emit_raise_window), (vte_terminal_emit_lower_window),
(vte_terminal_emit_maximize_window),
(vte_terminal_emit_refresh_window),
(vte_terminal_emit_restore_window),
(vte_terminal_emit_move_window), (vte_terminal_emit_resize_window),
(vte_sequence_handler_set_title_internal),
(vte_sequence_handler_decset_internal), (vte_sequence_handler_bt),
(vte_sequence_handler_application_keypad),
(vte_sequence_handler_normal_keypad),
(vte_sequence_handler_reset_mode), (vte_sequence_handler_decset),
(vte_sequence_handler_decreset),
(vte_sequence_handler_erase_in_display),
(vte_sequence_handler_erase_in_line),
(vte_sequence_handler_restore_mode),
(vte_sequence_handler_save_mode),
(vte_sequence_handler_window_manipulation):
* src/vtexft.c: (_vte_xft_set_text_font):
2007-01-26 Chris Wilson <chris@chris-wilson.co.uk>
Bug 317449 – The cursor disappears when clicking on windows above gnome-terminal
Enter a command that causes partial obscuration of the terminal,
though it must cover the cursor. Close the new window, observe the
pointer disappears.
The issue is that we hide the pointer whilst typing and show it after
receiving a mouse movement. However in this case we steal the pointer
away from the terminal without any mouse events and the cursor remains
invisible.
* src/vte.c: (vte_terminal_focus_in):
Ensure the mouse pointer is visible on focus-in.
2007-01-26 Chris Wilson <chris@chris-wilson.co.uk>
Spend half an hour a day killing warnings...
* configure.in:
Remove -Wswitch-enum from MAYBE_WARN. I am that lazy.
* src/buffer.c:
* src/iso2022.c: (_vte_iso2022_is_ambiguous),
(_vte_iso2022_ambiguous_width), (_vte_iso2022_map_get),
(_vte_iso2022_find_nextctl), (_vte_iso2022_sequence_length),
(_vte_iso2022_fragment_input), (process_8_bit_sequence),
(process_cdata), (_vte_iso2022_process_single), (process_control),
(_vte_iso2022_process):
* src/keymap.c: (_vte_keymap_map):
* src/table.c:
* src/trie.c: (char_class_none_extract),
(char_class_digit_extract), (char_class_multi_extract),
(char_class_any_extract), (unichar_snlen), (unichar_sncmp),
(char_class_string_extract), (_vte_trie_addx), (_vte_trie_add),
(_vte_trie_matchx), (_vte_trie_match), (_vte_trie_printx),
(_vte_trie_print), (convert_mbstowcs), (main):
* src/vte-private.h:
* src/vte.c: (vte_terminal_find_charcell),
(_vte_row_data_find_charcell), (vte_terminal_emit_commit),
(vte_terminal_match_clear_all), (vte_terminal_match_remove),
(vte_terminal_match_add), (vte_terminal_match_set_cursor),
(vte_terminal_match_check_internal), (vte_terminal_set_colors),
(vte_terminal_emit_pending_text_signals),
(vte_terminal_is_word_char), (vte_terminal_finalize),
(vte_terminal_realize), (_vte_terminal_map_pango_color),
(_vte_terminal_apply_pango_attr),
(_vte_terminal_translate_pango_cells),
(vte_terminal_set_scrollback_lines):
* src/vteseq.c: (vte_sequence_handler_decset_internal):
Fixup compiler warnings, mostly of the type mixing signed and
unsigned compares and pointers.
2007-01-25 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (mark_input_source_invalid),
(_vte_terminal_connect_pty_read), (mark_output_source_invalid),
(_vte_terminal_connect_pty_write):
Use the GDestroyNotify to mark the source as invalid.
* src/vte.c: (vte_terminal_ensure_font):
Protect ensure fonts against the VteDraw being destroyed.
* src/vte.c: (vte_terminal_realize):
Reorder code to setup the style before the fonts.
* src/vte.c: (vte_terminal_class_init):
The ->show() handler was redundant.
2007-01-25 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c (_vte_terminal_set_default_attributes),
(_vte_invalidate_cells), (_vte_invalidate_all),
(_vte_invalidate_cell), (_vte_invalidate_cursor_once),
(vte_terminal_visibility_notify), (vte_terminal_handle_scroll):
Replace most of checks for terminal->pvt->visibility_state ==
GDK_VISIBILITY_FULLY_OBSCURED by terminal->pvt->invalidated_all, and
adapt.
2007-01-25 Chris Wilson <chris@chris-wilson.co.uk>
Bug 400759 – update problem with vte trunk
Otherwise known as the I can't count bug.
The number of rows and columns to paint were not properly taking
account of the discrete nature of the cells ie although the floor(x)
moved the start to the left by one, the extra cell was not being added
to the width.
Also since the howmany() macro is pulled from <sys/param.h>, it can
not be guarranteed to exist on all platforms. So in that case, provide
a local copy.
* src/vte.c: (vte_terminal_draw_area):
Calculate the width as the distance between the explicity
calculated start and end cells.
2007-01-25 Chris Wilson <chris@chris-wilson.co.uk>
Bug 400671 – crash in Terminal: detaching of tabs
The fontdirty flag needed to be set on unrealize to ensure the fonts
get set on the VteDraw should the terminal be realized again (e.g
drag'n'dropping).
* src/vte.c: (vte_terminal_unrealize):
Set the fontdirty flag to TRUE.
* src/vtexft.c: (_vte_xft_set_text_font),
(_vte_xft_get_char_width), (_vte_xft_draw_text),
(_vte_xft_draw_char):
Add safe guards to avoid dereferencing a NULL font as it
is possible for _vte_xft_font_open() to fail.
2007-01-25 Chris Wilson <chris@chris-wilson.co.uk>
Bug 399137 – UTF-8 problem in VteAccess
Improve the UTF-8 string handling within vteaccess.c
A long and fraught history to this apparently simple change.
Many thanks to Joanmarie Diggs and Rich Burridge for testing the
patches and ensuring they caused no regressions in the ally interface.
* src/vteaccess.c: (emit_text_changed_insert),
(emit_text_changed_delete):
Use g_utf8_pointer_to_offset() rather than open coding.
* src/vteaccess.c: (vte_terminal_accessible_text_modified):
Convert the caret into a byte offset before performing the
ASCII character lookup.
Iterate backwards over the string using a g_utf8_prev_char,
and g_utf8_get_char.
2007-01-25 Chris Wilson <chris@chris-wilson.co.uk>
Bug 400493 – Mouse selection seriously broken
The rendering of non-text attributes, e.g highlight, backgrounds,
underlines, was broken by the change to multi-row run of glyphs. This
was most apparent when selecting regions with a mouse.
* src/vte.c: (_vte_invalidate_cursor_once),
(vte_terminal_extend_selection),
(vte_terminal_draw_rows), (vte_terminal_draw_area),
(vte_terminal_paint):
Some janitorial work (a memleak, whitespace, improving debug
messages, comments).
* src/vte.c: (vte_terminal_draw_cells):
Loop over cells and draw attributes for groups of cells on
each row.
2007-01-25 Chris Wilson <chris@chris-wilson.co.uk>
Bug 400438 – _vte_invalidate_all triggered on GDK_VISIBILITY_UNOBSCURED
* src/vte.c: (vte_terminal_visibility_notify):
Only force an _vte_invalidate_all if we can trivially detect
that we have switch from fully obscured to fully unobscured.
Otherwise, we will just handle the GDK expose in the normal
manner.
* src/vte.c: (vte_terminal_expose):
Check the event area to see if we can use _vte_invalidate_all,
has a slight benefit of discarding further exposed area
processing.
2007-01-25 Chris Wilson <chris@chris-wilson.co.uk>
GDK tries to coalesce multiple expose events into a single event.
This is passed to the application as a large region containing
multiple rectangles. The unfortunate effect of this is having
broken the invalidated region into 2 small components for vim,
the expose event was still operating on a single region covering
both. The reason the effect was invisible to the eye is due to the
double buffer - GDK generated a backing pixmap for the exposed event
and only copied from the pixmap to the window exactly the pixels
exposed. So we regenerated draw commands for the entire area, and
only saved on the later blit.
The improvement to this is only issue draw commands for the individual
rectangles rather than the region as a whole.
* src/vte.c: (vte_terminal_draw_area), (vte_terminal_paint),
(vte_terminal_expose):
Paint the exposed rectangles not the event clipbox!
2007-01-25 Chris Wilson <chris@chris-wilson.co.uk>
Print out the painted area for VTE_DEBUG_UPDATES.
* src/vte.c: (vte_terminal_paint):
2007-01-24 Chris Wilson <chris@chris-wilson.co.uk>
cf Bug 400072 – Handling of ; in control sequences
Moral of the story: wait until the morning.
Revert r1512, the mistaken attempt at parsing '\e[;30m'.
* src/table.c: (_vte_table_addi), (_vte_table_matchi),
(_vte_table_match):
2007-01-24 Chris Wilson <chris@chris-wilson.co.uk>
cf Bug 399617 – Avoid memory allocations during an expose event.
Currently we cannot generate long glyph runs due to the text
painting being broken up into single rows and setting a low
max run cap. The benefit of longer runs is the backends can
do more caching within a run and potentially generate fewer
render calls and/or less network traffic.
In the simple test case, this increased the performance of a
remote hexdump by 10%.
* src/vte.c: (vte_terminal_draw_rows), (vte_terminal_paint):
Scan entired exposed area for glyph runs.
* src/vtedraw.h:
Increase VTE_DRAW_MAX_LENGTH
* src/vtexft.c: (_vte_xft_draw_text):
Create GlyphSpecs rather than CharFontSpecs, saves a
conversion and potential malloc inside libXft, and our
own malloc.
2007-01-24 Chris Wilson <chris@chris-wilson.co.uk>
Bug 147495 – screen flicker when opening new terminal windows
Last in a series of work to reduce extraneous redraws. I no longer
see the flicker when opening a white terminal.
* src/vte.c: (_vte_terminal_scroll_region):
Detect when we can just invalidate all.
* src/vte.c: (_vte_terminal_fork_basic):
Don't force an unnecessary redraw.
2007-01-24 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_set_emulation):
Add a missing '\n' to the debug printerr.
* src/vte.c: (vte_terminal_init):
Initialize the row count to VTE_MIN_SCROLLBACK (was to 0
first and then later within the same function to
VTE_MIN_SCROLLBACK).
2007-01-24 Chris Wilson <chris@chris-wilson.co.uk>
Bug 334755 – Incomplete information from vte_terminal_get_font
In many situations the font_desc stored in the terminal is incomplete.
_vte_fc_transcribe_from_pango_font_description() automagically fills
in default values for the backends but this is hidden from the
application. By filling in default values up front from the widget
font description control is returned to the application and theme
designers.
Patch by Pedro de Medeiros.
Also cf bug 335269.
* src/vte.c: (vte_terminal_set_font_full):
Pull default font description from widget.
* src/vtefc.c: (_vte_fc_transcribe_from_pango_font_description):
Remove default values.
2007-01-24 Chris Wilson <chris@chris-wilson.co.uk>
Bug 400184 – _vte_pty_open declaration mismatch - breaks on Solaris
actually revealed a faux-pas in the conversion of the public
interfaces to GPid - that it broke the ABI.
However, the intention is to remove the exposed pid_t, cf bug 400333.
* python/vte.defs:
* python/vte.override:
* src/pty.c: (_vte_pty_open):
* src/pty.h:
* src/vte.c: (_vte_terminal_fork_basic), (vte_terminal_forkpty):
* src/vte.h:
Revert the exposed GPids back to pid_t.
2007-01-24 Chris Wilson <chris@chris-wilson.co.uk>
==25123== Invalid read of size 1
==25123== at 0x4055992: vte_terminal_accessible_text_modified (vteaccess.c:497)
==25123== by 0x46A1248: g_cclosure_marshal_VOID__VOID (gmarshal.c:77)
==25123== by 0x4693EAA: g_closure_invoke (gclosure.c:490)
==25123== by 0x46A4972: signal_emit_unlocked_R (gsignal.c:2440)
==25123== by 0x46A5E96: g_signal_emit_valist (gsignal.c:2199)
==25123== by 0x46A85ED: g_signal_emit_by_name (gsignal.c:2267)
==25123== by 0x403E9E2: _vte_terminal_emit_text_inserted (vte.c:863)
==25123== by 0x40517EF: vte_terminal_process_incoming (vte.c:3032)
==25123== by 0x40522B5: update_repeat_timeout (vte.c:11332)
* src/vteaccess.c: (vte_terminal_accessible_text_modified):
Check that the caret is inside the old string before
accessing.
2007-01-24 Chris Wilson <chris@chris-wilson.co.uk>
Revert changes in conjunction with bug 399137 back to r1487,
which contains Rich Burridge's fix for bug 397724.
* src/vteaccess.c: (emit_text_changed_insert),
(emit_text_changed_delete),
(vte_terminal_accessible_text_modified):
2007-01-24 Chris Wilson <chris@chris-wilson.co.uk>
* src/vteaccess.c: (vte_terminal_accessible_text_modified):
Valgrind pointed out a couple of places where we tried to
access before the start of the string.
2007-01-24 Chris Wilson <chris@chris-wilson.co.uk>
Bug 400184 – _vte_pty_open declaration mismatch - breaks on Solaris
Patch by Damien Carbery.
* src/pty.h:
Update prototype to match new definition.
2007-01-24 Chris Wilson <chris@chris-wilson.co.uk>
<mariano> hm, vte is not matching «ESC [ ; 7 m» :/
* src/table.c: (_vte_table_addi), (_vte_table_matchi),
(_vte_table_match):
s/GList/GSList/
g_slist_append -> g_slist_reverse(g_slist_prepend)
And finally add the subtable to handle the leading ';'
in the variable length parameters.
2007-01-23 Chris Wilson <chris@chris-wilson.co.uk>
A couple of minor buggets.
* src/iso2022.c: (_vte_iso2022_state_set_codeset):
Use g_intern_string() instead of from_quark(to_quark(str))
* src/vtepango.c: (_vte_pango_create), (_vte_pango_destroy),
(_vte_pango_start), (_vte_pango_end), (_vte_pango_set_text_font):
Use the widget pango context (we're guarranteed to have a
screen by this point) and don't unref it!
Inspired by Pedro de Medeiros in Bug 335269.
2007-01-23 Chris Wilson <chris@chris-wilson.co.uk>
Regression on Bug 123591:
mkdir /tmp/aa; cd /tmp/aa; bash; cd ..; rmdir aa
Open a new tab in g-t -> Failure.
* src/pty.c: (_vte_pty_run_on_pty):
Check the error return from g_spawn and try again with the
pwd if it reports that the child could not change directory.
2007-01-23 Chris Wilson <chris@chris-wilson.co.uk>
* src/pty.c: (_vte_pty_run_on_pty):
Add all g_spawn parameters to VTE_DEBUG_MISC output.
2007-01-22 Behdad Esfahbod <behdad@gnome.org>
Released vte-0.15.2.
* NEWS: Updated.
* configure.in: Bumped version to 0.15.2.
* src/Makefile.am: Bumped libtool version to 10:9:1.
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
Bug 399137 - continuation.
* src/vteaccess.c: (vte_terminal_accessible_text_modified):
Classic bug:
clen = cp - old
rather than the more correct
clen = cp - current
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
* src/vteapp.c: (char_size_changed), (char_size_realized), (main):
Don't try to perform gdk operations on unrealized windows.
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
* src/pty.c: (_vte_pty_run_on_pty):
Print out the argument vector for VTE_DEBUG_MISC.
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
* src/pty.c: (_vte_pty_run_on_pty):
Protect against g_strv_length(NULL)
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
Bug 399137 - continuation.
* src/vteaccess.c: (vte_terminal_accessible_text_modified):
After walking back along the UTF-8 string, remember to update
the string lengths that are used to detect insertions and
deletions!
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
If the caret is at the end of the buffer, then it set past the
end of the offset array - do not use this as a lookup!
* src/vteaccess.c: (vte_terminal_accessible_text_modified):
If the caret points to past the last character, set the
offset to the string's NUL terminator.
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
* configure.in:
Earlier configure.in update introduced a trailing ']', pair
it with its '['
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
Bug 132316 – terminal widget's context menu posting isn't exposed as an AtkAction
Original patch by <padraig.obriain@sun.com>
* src/vteaccess.c: (vte_terminal_accessible_free_private_data),
(vte_terminal_accessible_component_init),
(vte_terminal_accessible_do_action),
(vte_terminal_accessible_get_n_actions),
(vte_terminal_accessible_action_get_description),
(vte_terminal_accessible_action_get_name),
(vte_terminal_accessible_action_get_keybinding),
(vte_terminal_accessible_action_set_description),
(vte_terminal_accessible_action_init),
(vte_terminal_accessible_get_type):
Remove grab_focus and defer to the parent's implementation.
Add an AtkAction iface.
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
Bug 156161 – AccessibleText_getTextAtOffset returns wrong values in gnome-terminal
The code for ATK_TEXT_BOUNDARY_WORD_START and
ATK_TEXT_BOUNDARY_WORD_END is the same.
Patch by <padraig.obriain@sun.com>
* src/vteaccess.c: (vte_terminal_accessible_get_text_somewhere):
Actually provide an implementation for
ATK_TEXT_BOUNDARY_WORD_END.
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
Bug 399137 – UTF-8 problem in VteAccess
* src/vteaccess.c: (emit_text_changed_insert),
(emit_text_changed_delete):
use g_utf8_pointer_to_offset() instead of open coding
(vte_terminal_accessible_update_private_data_if_needed):
add the number of UTF-8 characters to the debug output.
(vte_terminal_accessible_text_modified):
iterate backwards over the UTF-8 string using
g_utf8_prev_char() and convert the caret into a byte offset
before it as such.
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
Bug 123591 – vte_terminal_fork_command succeeds even when it does not
* python/vte.defs:
* python/vte.override:
* src/reaper.c: (vte_reaper_child_watch_cb):
* src/vte-private.h:
* src/vte.c: (vte_terminal_catch_child_exited),
(_vte_terminal_fork_basic), (vte_terminal_forkpty):
* src/vte.h:
* src/vteapp.c:
s/pid_t/GPid/ portable variant, no API/ABI implications
* src/pty.c: (vte_pty_child_setup), (_vte_pty_run_on_pty),
(_vte_pty_fork_on_pty_name), (_vte_pty_fork_on_pty_fd),
(_vte_pty_open_unix98), (_vte_pty_pipe_open), (n_read), (n_write),
(_vte_pty_start_helper), (_vte_pty_open_with_helper),
(_vte_pty_open), (main):
Replace custom fork() and pipe based syncrohonisation scheme
with g_spawn_async_with_pipes() as it actually handles all
failure modes correctly, and gives us overtures of portability.
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
Hack'n'slash my way through doing a bit of weeding.
Fixed:
- Bug 345514 – -no-undefined doesn't work with latest libtool
- Bug 162003 – vte configure.in X checking can fail
– though this may cause other regressions!
- Bug 314669 – Please specialize AC_PATH_XTRA
* configure.in:
Export LIBTOOL_EXPORT_OPTIONS for -no-undefined on windos.
Add to rather than override X_CFLAGS, X_LIBS
AC_PATH_XTRA - Find X11 using XFlush() rather than XtMalloc().
Print configuration details.
* src/Makefile.am:
Conditional compilation of backends.
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
Bug 389538 – crash in Terminal: nothing
* src/vteaccess.c: (vte_terminal_accessible_get_text):
Guard against negative length strings.
2007-01-22 Chris Wilson <chris@chris-wilson.co.uk>
Bug 161479 – Scroll wheel generates Release events
vte sends release events on scroll but xterm doesn't which breaks
mc among others.
Patch by Benedikt Meurer.
* src/vte.c: (vte_terminal_scroll):
Remove the offending release event.
2007-01-20 Chris Wilson <chris@chris-wilson.co.uk>
<kmaraas> ickle: sparse complains about dubious 1 bit bitfields
if you use gboolean instead of guint
<kmaraas> so s/gboolean/guint at line 166 and 174
<mariano> unless that changes the API, of course...
<kmaraas> it doesn't
<mariano> gboolean a:1 is not very correct anyways
<kmaraas> ickle: we've done the same change in other modules
<ickle> if I do it quick, behdad might not even notice ;)
* src/vte.h:
Convert signed single bit field to unsigned. The code
was setting it to 1 anyhow (and not -1 as the type indicated).
2007-01-20 Chris Wilson <chris@chris-wilson.co.uk>
Bug 398602 – Build Failure
* src/vte.c: (vte_terminal_expose):
Fixup typo. [Grrr. Must get git-svn back into sync]
2006-11-19 Rich Burridge <rich.burridge@sun.com>
* src/vteaccess.c:
Fixed bug #397724 - Orca incorrect echo's certain input in
gnome-terminal when key echo is set to off (on Ubuntu Feisty).
2007-01-20 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_expose):
Also if the entire terminal is invalidated,
do not add more GTK+ exposes to it.
2007-01-20 Chris Wilson <chris@chris-wilson.co.uk>
Track when we have invalidated the entire terminal and skip adding
new regions when possible.
* src/vte-private.h:
* src/vte.c: (update_regions), (_vte_invalidate_cells),
(_vte_invalidate_all), (vte_terminal_size_allocate),
(reset_update_regions):
2007-01-20 Chris Wilson <chris@chris-wilson.co.uk>
Bug 398244 – Gnome-terminal opens a huge sized window
* src/vte.c: (vte_terminal_ensure_font),
(vte_terminal_set_font_full), (vte_terminal_size_request),
(vte_terminal_realize), (vte_terminal_get_char_width),
(vte_terminal_get_char_height), (vte_terminal_get_char_descent),
(vte_terminal_get_char_ascent):
Ensure the font metrics are calculated before use.
2007-01-19 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_process_incoming):
Do not invalidate the old cursor position if it was not
visible.
2007-01-19 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (process_timeout):
Make sure ->process_timeout is set to VTE_INVALID_SOURCE on
all paths that remove the timeout.
2007-01-19 Chris Wilson <chris@chris-wilson.co.uk>
Add <> to mark boundaries of process_timeout().
* src/vte.c: (vte_terminal_class_init), (process_timeout):
2007-01-19 Chris Wilson <chris@chris-wilson.co.uk>
Add {},[] to mark boundaries of update_timeout() and notice that
the display limited update_timeout was not dying.
* src/vte.c: (vte_terminal_class_init), (update_repeat_timeout),
(update_timeout):
2007-01-19 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_realize), (remove_process_timeout):
Small cleanup:
- protect remove_process_timeout against an invalid source.
- move static prototypes into common block.
- gdk_window_show() is done in map not realize.
2007-01-19 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte-private.h:
* src/vte.c: (vte_terminal_process_incoming):
Introduce a bit of slack in the bbox check to allow
for a small of amount of cursor motion e.g. due to line
scrolling. This turns the long sequence of
'(?!?!??? ... ????!)'
during a hexdump into the better behaved
'.(?!?!?!??!)-+=.(?!?!??!)-+=........'. Although it is
puzzling why we now how have a block of IO and then two quick
display upates...
2007-01-19 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (process_timeout), (update_repeat_timeout),
(update_timeout):
Repeat _vte_terminal_process_incoming until we have drained
the incoming buffers or we can handle no more. Fixes a
problem where the display wouldn't update if we hadn't
processed enough data (e.g. on startup, displaying the first
prompt). This bug corresponds with the sequence
'*-+=..()?!(?!?!?!)-+=' below, which now reads
'*-+=..()(?!?!?!)-+='
2007-01-19 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (_vte_invalidate_cursor_once):
"%ld" for cursor indices.
2007-01-19 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (_vte_invalidate_cells),
(_vte_invalidate_cursor_once):
Cursor indices are long.
2007-01-19 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte-private.h:
* src/vte.c: (_vte_invalidate_cell):
Cursor indices are long.
* src/vte.c: (_vte_terminal_expose):
Prepend the GTK+ generated expose if we already have an
display update pending.
2007-01-19 Chris Wilson <chris@chris-wilson.co.uk>
Add a new debug flag to visualize the work flow.
VTE_DEBUG_FLAGS=work generates output like:
Debugging work flow (top input to bottom output):
. _vte_terminal_process_incoming
( start _vte_terminal_process_incoming
? _vte_invalidate_cells (call)
! _vte_invalidate_cells (dirty)
* _vte_invalidate_all
) end _vte_terminal_process_incoming
- gdk_window_process_all_updates
+ vte_terminal_expose
= vte_terminal_paint
*?!**+=*-+=..()?!(?!?!?!)-+=?!-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.().(?!?!?!)-+=.().(?!?!?!)-+=.().().(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!?!)-+=.(?!?!)-+=.............................................................................................................................................................................................................................................................................(?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?!?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????!??!)-+=.......................................................................
Which tells me I have two bugs to track:
1. the initial '..()' is a missing invalidate.
2. '(?!?!????????????????????!??!)' is not very efficient.
* src/debug.c: (_vte_debug_parse_string):
* src/debug.h:
* src/vte.c: (update_regions), (_vte_invalidate_cells),
(_vte_invalidate_all), (vte_terminal_process_incoming),
(vte_terminal_io_read), (vte_terminal_paint),
(vte_terminal_expose), (vte_terminal_class_init):
Add VTE_DEBUG_WORK
2007-01-19 Chris Wilson <chris@chris-wilson.co.uk>
Bug 398150 – cursor leaves trail behind in vim
* src/vte-private.h:
* src/vte.c: (_vte_invalidate_cell),
(vte_terminal_process_incoming):
* src/vteseq.c: (vte_sequence_handler_decset_internal):
Invalidate the old cursor position if we detect the cursor
moved during the sequence or if the cursor changed state.
2007-01-19 Chris Wilson <chris@chris-wilson.co.uk>
* src/Makefile.am:
Missing $(X_CFLAGS)
2007-01-19 Chris Wilson <chris@chris-wilson.co.uk>
Bug 398243 – Crash
* src/vtebg.c: (vte_bg_cache_prune_int):
Use the return from g_list_delete_link to maintain the list
head.
2007-01-18 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (_vte_invalidate_cells):
Check that the start of the invalid region is on screen.
2007-01-18 Chris Wilson <chris@chris-wilson.co.uk>
Bug 398116 – lags behind when widget not visible
* src/vte.c: (vte_terminal_handle_scroll):
During the spring clean, I converted a few GTK_WIDGET_REALIZED()
checks to GTK_WIDGET_DRAWABLE()+visibility check.
Unfortunately, it broke keeping the scroll delta in sync with
the insert delta. Sync the pair, then perform the check before
making updates on the visible area.
2007-01-18 Chris Wilson <chris@chris-wilson.co.uk>
Bug 398083 – background not painted correctly when starting up
* src/vte.c: (_vte_invalidate_all):
Compute drawable area in window co-ordinates and not widget
co-ordinates.
2007-01-18 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_expose):
Small bit of logic inversion that would have tried to paint
on unmapped and invisible widgets.
2007-01-18 Chris Wilson <chris@chris-wilson.co.uk>
And the corresponding overrides. [The downsides of losing track of
which machine you are working on.]
* python/vte.override:
Add (get_text_include_trailing_spaces)
2007-01-18 Chris Wilson <chris@chris-wilson.co.uk>
Add missing export of vte_terminal_get_text_include_trailing_spaces,
needed for building a simple testcase for Bug 397724.
vte.defs needs a bit of love...
* python/vte.defs:
Add (get_text_include_trailing_spaces)
2007-01-18 Chris Wilson <chris@chris-wilson.co.uk>
* src/vterdb.c: (_vte_rdb_search), (_vte_rdb_boolean):
Fix a couple of compiler warnings.
2007-01-18 Chris Wilson <chris@chris-wilson.co.uk>
* src/vte.c: (vte_terminal_process_incoming):
Delete some dead code.
2007-01-18 Chris Wilson <chris@chris-wilson.co.uk>
* configure.in:
Restore --enable-debugging.
2007-01-18 Chris Wilson <chris@chris-wilson.co.uk>
Copy Behdad's MAYBE_WARN comprehensive set of warnings from Cairo,
and fixup the immediate compilation failures.
* configure.in:
Iterate over a list of warnings and check that they are valid
for the compiler.
* src/debug.c: (_vte_debug_on):
Kill fflush() [redundant with g_printerr].
2007-01-18 Behdad Esfahbod <behdad@gnome.org>
* configure.in: Don't call AC_CANONICAL_HOST. Libtool calls it
already.
* src/Makefile.am: Don't build extra, test, programs by default.
Speeds build up.
2007-01-18 Behdad Esfahbod <behdad@gnome.org>
* src/ring.c (_vte_ring_insert_preserve):
* src/vte.c (vte_terminal_paint):
Fix loop-optimization warnings.
2007-01-18 Behdad Esfahbod <behdad@gnome.org>
* src/ssfe.c (cleanupexit), (barf):
* src/vtebg.c (vte_bg_cache_prune_int):
* src/vtetc.c (main):
Fix more warnings.
2007-01-18 Behdad Esfahbod <behdad@gnome.org>
* src/table.c (main):
* src/trie.c (_vte_trie_addx), (main):
* src/utf8echo.c (main):
Fix int vs long int mismatches in printf args.
2007-01-18 Behdad Esfahbod <behdad@gnome.org>
* src/iso2022.c (_vte_iso2022_find_nextctl):
* src/reaper.c (vte_reaper_finalize):
* src/vte.c (_vte_terminal_insert_char), (vte_terminal_key_press),
(vte_terminal_init), (vte_terminal_size_allocate):
* src/vteapp.c (main):
* src/vtedraw.c (_vte_draw_init_default):
* src/vteglyph.c (_vte_glyph_cache_free):
* src/vtergb.c (_vte_rgb_copy):
* src/vtexft.c (_vte_xft_font_for_char):
Remove unused variables.
2007-01-18 Chris Wilson <chris@chris-wilson.co.uk>
Bug 161342 revisited. Reset the box to +-inf and not the current
cursor otherwise you just reproduce the slow behaviour (an overly
large invalidation area).
* src/vte.c: (vte_terminal_process_incoming):
Reset bbox to +-inf.
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
Second breakage: VTE_INVALID_SOURCE !=0 and calling
vte_terminal_set_scrollback_lines with lines == ->scrollback_lines
is not a nop.
* src/vte.c: (vte_terminal_background_update),
(vte_terminal_queue_background_update):
VTE_INVALID_SOURCE != 0
(vte_terminal_set_scrollback_lines):
reset the rowdata everytime.
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
Bug 397414 - port vteapp to GOption
* src/vteapp.c: (main):
Translation of getopt switch to GOptionEntry[].
Missing help for --geometry.
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
First breakage spotted: the realized flag is set too late in
the realize handler. Note to self: not everybody uses a black
background.
* src/vte.c: (vte_terminal_realize):
Restore GTK_WIDGET_SET_FLAGS(REALIZED)
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
Bug 395373 - Allow the user to specify backend priorities.
* src/vtedraw.c: (_vte_draw_init_user), (_vte_draw_init_default),
(_vte_draw_new):
Scan $ENV{VTE_BACKEND} for the user's preferred backend
and failover to the first working backend.
Discard checking VTE_USE_*
* src/vtedraw.h:
* src/vteft2.c:
* src/vteft2.h:
* src/vtegl.c:
* src/vtegl.h:
* src/vtepango.c:
* src/vtepango.h:
* src/vtepangox.c:
* src/vtepangox.h:
* src/vteskel.c: (_vte_skel_check), (_vte_skel_create),
(_vte_skel_destroy), (_vte_skel_start):
* src/vteskel.h:
* src/vtexft.c:
* src/vtexft.h:
Remove the environment variable field, drop the "Vte" prefix
from the backend names and make the exported structure const.
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
As part of Bug 397439.
* src/iso2022.c: (_vte_iso2022_is_ambiguous):
* src/vte-private.h:
* src/vte.c: (_vte_terminal_set_default_attributes),
(vte_terminal_set_default_tabstops), (vte_terminal_set_encoding),
(vte_terminal_set_opacity), (vte_terminal_set_default_colors),
(vte_terminal_emit_pending_text_signals),
(vte_terminal_feed_child_using_modes),
(vte_terminal_hierarchy_changed),
(vte_terminal_send_mouse_button_internal),
(vte_terminal_maybe_send_mouse_drag), (vte_terminal_set_font),
(vte_terminal_set_font_from_string), (vte_terminal_set_size),
(vte_terminal_handle_scroll), (vte_terminal_set_scroll_adjustment),
(vte_terminal_set_emulation), (vte_terminal_set_termcap),
(vte_terminal_init), (vte_terminal_size_allocate),
(vte_terminal_unrealize), (vte_terminal_finalize),
(vte_terminal_realize), (vte_terminal_determine_colors),
(vte_terminal_background_update),
(vte_terminal_queue_background_update),
(vte_terminal_set_background_transparent),
(vte_terminal_set_cursor_blinks),
(vte_terminal_set_scrollback_lines), (vte_terminal_reset),
(vte_terminal_set_pty):
* src/vteseq.c: (vte_sequence_handler_st),
(vte_sequence_handler_vb),
(vte_sequence_handler_device_status_report),
(vte_sequence_handler_dec_device_status_report),
(vte_sequence_handler_window_manipulation):
Janitorial work to improve code readability and small
micro-optimisations, such as use the length returned by
g_snprintf rather then calling strlen on the result or just
using a constant string.
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
As part of Bug 397439.
* src/ring.h:
Make the debug checks conditional on VTE_DEBUG.
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
As part of Bug 397439.
* src/matcher.c: (_vte_matcher_add), (_vte_matcher_create),
(_vte_matcher_destroy), (_vte_matcher_new), (_vte_matcher_match),
(_vte_matcher_print):
* src/matcher.h:
* src/table.c: (_vte_table_new):
* src/table.h:
* src/trie.c: (_vte_trie_new):
* src/trie.h:
_vte_match_match() is called extremely frequently, and the
switch shows up on the profiles. Replace the switch with a
function pointer obtained by introducing function tables for
the matcher implementations.
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
As part of Bug 397439.
* src/vte-private.h:
* src/vte.c: (vte_terminal_set_font_full), (vte_terminal_realize):
Don't load a font until the terminal is realized.
Saves decoding 2 or 3 fonts before g-t is mapped.
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
As part of Bug 397439.
* src/vteseq.c: (vte_g_array_fill):
Micro-optimise the loop.
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
As part of Bug 397439.
* src/vteft2.c: (_vte_ft2_create), (_vte_ft2_start),
(_vte_ft2_end), (update_bbox), (_vte_ft2_set_text_font),
(_vte_ft2_draw_text):
* src/vtergb.c: (_vte_rgb_buffer_new), (_vte_rgb_buffer_resize),
(_vte_rgb_draw_color_rgb), (_vte_rgb_copy):
* src/vtergb.h:
Reuse converted glyphs within a run.
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
As part of Bug 397439.
* src/vteconv.c: (_vte_conv_utf8_strlen), (_vte_conv):
Micro-optimise the loops.
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
As part of Bug 397439.
* src/vteglyph.c: (_vte_glyph_free), (_vte_cached_glyph_free),
(_vte_glyph_cache_new), (_vte_glyph_cache_free),
(_vte_glyph_cache_set_font_description),
(_vte_glyph_cache_has_char), (_vte_glyph_remap_char),
(_vte_glyph_get_uncached), (_vte_glyph_get), (_vte_glyph_draw):
* src/vteglyph.h:
Avoid the double glyph lookup in _vte_glyph_get and
replace the tree with a hash.
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
As part of Bug 397439.
* src/iso2022.c: (_vte_iso2022_state_new),
(_vte_iso2022_state_free), (_vte_iso2022_state_set_codeset):
* src/trie.c: (_vte_trie_add), (convert_mbstowcs):
* src/utf8echo.c: (main):
* src/vte.c: (vte_terminal_set_encoding), (vte_terminal_send),
(vte_terminal_init), (vte_terminal_finalize),
(vte_terminal_set_word_chars):
* src/vteconv.c: (_vte_conv_open), (_vte_conv_close), (_vte_conv):
* src/vteconv.h:
* src/vteseq.c: (vte_sequence_handler_set_title_internal):
s/(VteConv)-1/VTE_INVALID_CONV/
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
As part of Bug 397439.
* src/vte.c: (_vte_new_row_data), (_vte_new_row_data_sized),
(_vte_terminal_find_row_data), (_vte_row_data_find_charcell),
(vte_line_is_wrappable), (vte_terminal_extend_selection),
(vte_terminal_draw_row):
Refactor vte_find_row_data to simplify and improve
some logic.
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
As part of Bug 397439.
* src/vte.c: (vte_g_array_fill), (vte_terminal_emit_commit),
(_vte_terminal_ensure_cursor), (_vte_terminal_insert_char),
(_vte_terminal_fork_basic), (vte_terminal_process_incoming),
(vte_terminal_key_press), (vte_terminal_visibility_notify),
(vte_terminal_apply_metrics), (vte_terminal_paint),
(vte_terminal_expose):
Callgrind driven rewrite of critical loops.
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
As part of Bug 397439.
* src/vte-private.h:
* src/vte.c: (_vte_terminal_connect_pty_write),
(_vte_terminal_disconnect_pty_write), (vte_terminal_io_read),
(vte_terminal_feed), (vte_terminal_feed_child_binary),
(vte_terminal_init), (vte_terminal_unrealize),
(add_process_timeout), (add_update_timeout),
(remove_process_timeout), (vte_terminal_stop_processing),
(vte_terminal_is_processing), (vte_terminal_start_processing),
(process_timeout), (update_repeat_timeout), (update_timeout):
The rate-limiting step is the display update - we do not need
to process input faster than we are displaying it. So use the
update display timeout to process new input (and dirty some
more pixels).
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
As part of Bug 397439.
* src/interpret.c: (main):
* src/iso2022.c: (_vte_iso2022_fragment_input),
(_vte_iso2022_process), (main):
* src/vte.c: (vte_terminal_match_contents_refresh),
(vte_terminal_process_incoming), (vte_terminal_init),
(vte_terminal_set_word_chars):
* src/vteaccess.c:
(vte_terminal_accessible_update_private_data_if_needed):
* src/vtefc.c: (_vte_fc_patterns_from_pango_font_desc):
* src/vtefc.h:
* src/vteglyph.c: (_vte_glyph_cache_new), (_vte_glyph_cache_free),
(_vte_glyph_cache_set_font_description):
* src/vteglyph.h:
* src/vteregex.c: (_vte_regex_sort_matches):
* src/vtexft.c: (_vte_xft_font_open), (_vte_xft_font_close),
(_vte_xft_font_for_char):
s/g_array_new(TRUE, TRUE/g_array_new(FALSE, FALSE/
All uses of GArray respect their lengths and do not
zero-termination or untouched members to be cleared.
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
As part of Bug 397439.
* src/iso2022.c: (_vte_iso2022_state_free):
* src/matcher.c: (_vte_matcher_free_params_array):
* src/ring.c: (_vte_ring_free):
* src/table.c: (_vte_table_free):
* src/trie.c: (_vte_trie_match):
* src/vte.c: (_vte_terminal_match_contents_clear),
(_vte_terminal_fork_basic),
(vte_terminal_get_text_range_maybe_wrapped), (vte_terminal_copy),
(vte_terminal_finalize), (vte_terminal_draw_cells_with_attributes):
* src/vteaccess.c: (vte_terminal_accessible_free_private_data):
* src/vtebg.c: (vte_bg_root_pixmap), (vte_bg_cache_item_free):
* src/vteconv.c: (_vte_conv_close):
* src/vtedraw.c: (_vte_draw_free):
* src/vteft2.c: (_vte_ft2_destroy):
* src/vtegl.c: (_vte_gl_destroy):
* src/vteglyph.c: (_vte_glyph_cache_free):
* src/vtepango.c: (_vte_pango_destroy):
* src/vtepangox.c: (_vte_pango_x_destroy):
* src/vtergb.c: (_vte_rgb_buffer_new), (_vte_rgb_buffer_free):
* src/vteseq.c: (vte_sequence_handler_se),
(vte_sequence_handler_so):
* src/vteskel.c: (_vte_skel_destroy):
* src/vtexft.c: (_vte_xft_font_close), (_vte_xft_destroy):
Do not zero memory in destructors, as glib will zero all
freed memory if G_DEBUG=gc-friendly.
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
As part of Bug 397439.
* src/reaper.c: (vte_reaper_add_child), (vte_reaper_init),
(vte_reaper_constructor), (vte_reaper_finalize),
(vte_reaper_class_init), (vte_reaper_get), (main):
* src/vte.c: (G_DEFINE_TYPE_WITH_CODE), (_vte_terminal_fork_basic),
(vte_terminal_key_press), (vte_terminal_init), (vte_terminal_show),
(vte_terminal_finalize), (vte_terminal_get_accessible),
(vte_terminal_class_init):
* src/vteaccess.c: (vte_terminal_initialize),
(vte_terminal_accessible_finalize),
(vte_terminal_accessible_class_init),
(vte_terminal_accessible_get_type),
(vte_terminal_accessible_factory_init),
(vte_terminal_accessible_factory_new):
* src/vtebg.c: (vte_bg_native_new), (vte_bg_finalize),
(vte_bg_class_init), (vte_bg_init), (vte_bg_get_for_screen),
(vte_bg_cache_item_free), (vte_bg_cache_prune_int),
(_vte_bg_resize_pixbuf), (vte_bg_set_root_pixmap),
(vte_bg_cache_add), (vte_bg_cache_search), (vte_bg_get_pixmap),
(vte_bg_get_pixbuf):
Use GObject boiler-plate code (G_DEFINE_TYPE),
as opposed to open coding.
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
As part of Bug 397439.
* src/vte-private.h:
* src/vte.c: (vte_free_row_data), (vte_g_array_fill),
(vte_terminal_find_charcell), (vte_terminal_preedit_width),
(vte_terminal_preedit_length), (_vte_invalidate_cursor_once),
(vte_invalidate_cursor_periodic), (vte_terminal_deselect_all),
(vte_terminal_set_default_tabstops),
(vte_terminal_match_contents_refresh), (vte_terminal_cursor_new),
(vte_terminal_match_check_internal),
(vte_terminal_emit_adjustment_changed),
(vte_terminal_queue_adjustment_changed),
(vte_terminal_scroll_pages), (vte_terminal_maybe_scroll_to_top),
(vte_terminal_maybe_scroll_to_bottom),
(_vte_terminal_set_pointer_visible), (vte_terminal_new),
(vte_terminal_set_color_internal), (vte_terminal_set_color_bold),
(vte_terminal_set_color_dim), (vte_terminal_set_color_foreground),
(vte_terminal_set_color_background),
(vte_terminal_set_color_cursor),
(vte_terminal_set_color_highlight), (vte_terminal_handle_sequence),
(vte_terminal_catch_child_exited),
(_vte_terminal_connect_pty_read),
(_vte_terminal_connect_pty_write), (_vte_terminal_fork_basic),
(vte_terminal_eof), (vte_terminal_im_reset),
(vte_terminal_process_incoming), (vte_terminal_io_read),
(vte_terminal_io_write), (vte_terminal_send),
(vte_terminal_im_commit), (vte_terminal_im_preedit_start),
(vte_terminal_im_preedit_end), (vte_terminal_im_preedit_changed),
(vte_terminal_configure_toplevel),
(vte_terminal_hierarchy_changed), (vte_terminal_style_changed),
(add_cursor_timeout), (vte_terminal_key_press), (vte_same_class),
(vte_line_is_wrappable), (vte_terminal_paste_cb),
(vte_terminal_send_mouse_button_internal),
(vte_terminal_maybe_send_mouse_drag), (vte_terminal_clear_cb),
(vte_terminal_copy_cb),
(vte_terminal_get_text_range_maybe_wrapped),
(vte_terminal_clipboard_get), (vte_terminal_copy),
(vte_terminal_paste), (vte_terminal_autoscroll),
(vte_terminal_start_autoscroll), (vte_terminal_motion_notify),
(vte_terminal_button_press), (vte_terminal_button_release),
(vte_terminal_focus_in), (vte_terminal_focus_out),
(vte_terminal_visibility_notify), (vte_terminal_apply_metrics),
(vte_terminal_set_font_full), (vte_terminal_refresh_size),
(vte_terminal_handle_scroll), (vte_terminal_set_scroll_adjustment),
(vte_terminal_connect_xft_settings),
(vte_terminal_disconnect_xft_settings),
(_vte_terminal_codeset_changed_cb), (vte_terminal_init),
(vte_terminal_size_request), (vte_terminal_size_allocate),
(vte_terminal_show), (root_pixmap_changed_cb),
(vte_terminal_unrealize), (vte_terminal_finalize),
(vte_terminal_realize), (vte_terminal_determine_colors),
(vte_terminal_paint), (vte_terminal_expose), (vte_terminal_scroll),
(vte_terminal_get_accessible), (vte_terminal_im_append_menuitems),
(vte_terminal_background_update),
(vte_terminal_queue_background_update),
(vte_terminal_set_background_image),
(vte_terminal_set_background_image_file),
(vte_terminal_set_cursor_blinks), (vte_terminal_reset),
(vte_terminal_set_pty):
* src/vteaccess.c: (vte_terminal_initialize),
(vte_terminal_accessible_finalize):
* src/vtedraw.c: (_vte_draw_new), (_vte_draw_free),
(_vte_draw_start), (_vte_draw_end):
* src/vtefc.c: (_vte_fc_transcribe_from_pango_font_description),
(_vte_fc_defaults_from_gtk), (_vte_fc_connect_settings_changes),
(_vte_fc_disconnect_settings_changes):
* src/vteft2.c: (_vte_ft2_destroy),
(_vte_ft2_set_background_image), (_vte_ft2_clear):
* src/vtegl.c: (_vte_gl_destroy), (_vte_gl_set_background_image),
(_vte_gl_clear):
* src/vtepango.c: (_vte_pango_destroy), (_vte_pango_start),
(_vte_pango_end), (_vte_pango_set_background_image),
(_vte_pango_set_text_font):
* src/vtepangox.c: (_vte_pango_x_destroy), (_vte_pango_x_start),
(_vte_pango_x_end), (_vte_pango_x_set_background_image),
(_vte_pango_x_set_text_font):
* src/vterdb.c: (_vte_rdb_get):
* src/vteseq.c: (vte_sequence_handler_scroll_up_or_down),
(vte_sequence_handler_set_title_internal), (vte_terminal_beep),
(vte_sequence_handler_do), (vte_sequence_handler_sf),
(vte_sequence_handler_sr), (vte_sequence_handler_vb),
(vte_sequence_handler_window_manipulation):
* src/vteskel.c: (_vte_skel_destroy):
* src/vtetree.c: (_vte_tree_new), (_vte_tree_destroy):
* src/vtexft.c: (_vte_xft_set_background_image), (_vte_xft_clear):
Remove superfluous checks and run-time checked type casts.
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
As part of Bug 397439.
* src/debug.c:
* src/iso2022.c: (_vte_iso2022_ambiguous_width_guess),
(_vte_iso2022_state_new), (_vte_iso2022_state_set_codeset),
(process_8_bit_sequence), (process_cdata), (process_control),
(_vte_iso2022_process):
* src/keymap.c: (_vte_keymap_map):
* src/matcher.c: (_vte_matcher_init), (_vte_matcher_create),
(_vte_matcher_destroy):
* src/pty.c: (_vte_pty_run_on_pty), (_vte_pty_fork_on_pty_name),
(_vte_pty_fork_on_pty_fd), (_vte_pty_set_size),
(_vte_pty_get_size), (_vte_pty_ptsname), (_vte_pty_open_unix98),
(_vte_pty_open_with_helper), (_vte_pty_open), (main):
* src/reaper.c: (vte_reaper_emit_signal),
(vte_reaper_child_watch_cb), (vte_reaper_init),
(vte_reaper_finalize):
* src/reflect.c: (text_changed_insert), (text_changed_delete):
* src/ring.c: (_vte_ring_insert), (_vte_ring_insert_preserve),
(_vte_ring_remove), (scrolled_off), (main):
* src/slowcat.c: (main):
* src/table.c: (_vte_table_printi), (_vte_table_print):
* src/trie.c: (char_class_string_extract):
* src/vte.c: (_vte_invalidate_cursor_once),
(vte_terminal_emit_selection_changed), (vte_terminal_emit_commit),
(vte_terminal_emit_emulation_changed),
(vte_terminal_emit_encoding_changed),
(vte_terminal_emit_child_exited),
(_vte_terminal_emit_contents_changed),
(vte_terminal_emit_cursor_moved), (vte_terminal_emit_eof),
(vte_terminal_emit_char_size_changed),
(_vte_terminal_emit_status_line_changed),
(vte_terminal_emit_increase_font_size),
(vte_terminal_emit_decrease_font_size),
(_vte_terminal_emit_text_inserted),
(_vte_terminal_emit_text_deleted),
(vte_terminal_emit_text_modified),
(vte_terminal_emit_text_scrolled), (vte_terminal_deselect_all),
(vte_terminal_match_check_internal), (vte_terminal_match_check),
(vte_terminal_emit_adjustment_changed),
(vte_terminal_queue_adjustment_changed),
(_vte_terminal_adjust_adjustments), (vte_terminal_scroll_pages),
(vte_terminal_maybe_scroll_to_bottom), (vte_terminal_set_encoding),
(_vte_terminal_set_pointer_visible), (vte_terminal_new),
(vte_terminal_generate_bold), (_vte_terminal_insert_char),
(display_control_sequence), (vte_terminal_fork_command),
(vte_terminal_emit_pending_text_signals),
(vte_terminal_process_incoming), (vte_terminal_io_write),
(vte_terminal_send), (vte_terminal_im_commit),
(vte_terminal_im_preedit_start), (vte_terminal_im_preedit_end),
(vte_terminal_im_preedit_changed),
(vte_terminal_configure_toplevel),
(vte_terminal_hierarchy_changed), (vte_terminal_style_changed),
(vte_terminal_key_press), (vte_terminal_paste_cb),
(vte_terminal_match_hilite_clear), (vte_terminal_match_hilite),
(vte_terminal_clear_cb), (vte_terminal_copy_cb),
(vte_terminal_copy), (vte_terminal_paste),
(vte_terminal_start_selection), (vte_terminal_extend_selection),
(vte_terminal_autoscroll), (vte_terminal_motion_notify),
(vte_terminal_button_press), (vte_terminal_button_release),
(vte_terminal_focus_in), (vte_terminal_focus_out),
(vte_terminal_set_font_full), (vte_terminal_set_size),
(vte_terminal_handle_scroll), (vte_terminal_set_emulation),
(vte_terminal_set_termcap), (vte_terminal_reset_rowdata),
(vte_terminal_fc_settings_changed), (vte_terminal_init),
(vte_terminal_size_request), (vte_terminal_size_allocate),
(vte_terminal_show), (vte_terminal_unrealize),
(vte_terminal_finalize), (vte_terminal_realize),
(vte_terminal_draw_cells), (_vte_terminal_map_pango_color),
(vte_terminal_paint), (vte_terminal_scroll),
(vte_terminal_class_init), (vte_terminal_get_type),
(vte_terminal_copy_clipboard), (vte_terminal_paste_clipboard),
(vte_terminal_copy_primary), (vte_terminal_paste_primary),
(vte_terminal_background_update),
(vte_terminal_queue_background_update),
(vte_terminal_set_background_saturation),
(vte_terminal_set_background_tint_color),
(vte_terminal_set_background_transparent),
(vte_terminal_set_background_image),
(vte_terminal_set_background_image_file),
(vte_terminal_set_word_chars):
* src/vteaccess.c: (emit_text_caret_moved),
(emit_text_changed_insert), (emit_text_changed_delete),
(vte_terminal_accessible_update_private_data_if_needed),
(vte_terminal_accessible_invalidate_cursor),
(vte_terminal_accessible_finalize),
(vte_terminal_accessible_get_text),
(vte_terminal_accessible_get_text_somewhere),
(vte_terminal_accessible_text_init),
(vte_terminal_accessible_component_init),
(vte_terminal_accessible_factory_new):
* src/vteapp.c: (main):
* src/vtebg.c: (vte_bg_root_pixmap), (_vte_bg_resize_pixbuf):
* src/vtedraw.c: (_vte_draw_new):
* src/vtepango.c: (_vte_pango_set_text_font):
* src/vtepangox.c: (_vte_pango_x_set_text_font):
* src/vteseq.c: (vte_terminal_emit_deiconify_window),
(vte_terminal_emit_iconify_window),
(vte_terminal_emit_icon_title_changed),
(vte_terminal_emit_window_title_changed),
(vte_terminal_emit_raise_window), (vte_terminal_emit_lower_window),
(vte_terminal_emit_maximize_window),
(vte_terminal_emit_refresh_window),
(vte_terminal_emit_restore_window),
(vte_terminal_emit_move_window), (vte_terminal_emit_resize_window),
(vte_sequence_handler_set_title_internal),
(vte_sequence_handler_decset_internal), (vte_sequence_handler_bt),
(vte_sequence_handler_application_keypad),
(vte_sequence_handler_normal_keypad),
(vte_sequence_handler_window_manipulation):
* src/vtetc.c: (main):
* src/vtexft.c: (_vte_xft_set_text_font):
s/fprintf(stderr,/g_printerr(/
2007-01-17 Chris Wilson <chris@chris-wilson.co.uk>
Only invalidate groups of inserted chars and not the whole bbox.
This speeds up applications like vim which maintain a status line
at the bottom of the screen. Fixes bug 161342.
* src/vte-private.h:
* src/vte.c: (update_regions), (_vte_invalidate_cells),
(_vte_invalidate_all), (_vte_terminal_scroll_region),
(vte_terminal_process_incoming), (reset_update_regions),
(remove_update_timeout), (update_repeat_timeout), (update_timeout):
2007-01-15 Behdad Esfahbod <behdad@gnome.org>
Bug 387171 – vte fails to install on FreeBSD due to missing header
Patch from Roy Marples
* src/vteseq.c: #include <limits.h>
2007-01-15 Behdad Esfahbod <behdad@gnome.org>
Bug 396831 – Unable to compile without X
Patch from Chris Wilson
* src/vtebg.c (_vte_bg_display_sync), (vte_bg_root_pixmap): Add stubs.
2007-01-09 Ryan Lortie <desrt@desrt.ca>
Bug 394890 – Segfault when running vte or gnome-terminal
* src/vtetc.c (_vte_termcap_find_string): change 'int' to 'gssize' to
match previous fixup. Hopefully that does it. :)
2007-01-08 Behdad Esfahbod <behdad@gnome.org>
Released vte-0.15.1.
* NEWS: Updated.
* configure.in: Bumped version to 0.15.1.
* src/Makefile.am: Bumped libtool version to 10:8:1.
2006-12-29 Ryan Lortie <desrt@desrt.ca>
Small fix to the previous patch.
* src/vtetc.c (_vte_termcap_find_string_length): 'int' is not the same
as 'gssize' on 64bit platforms, causing compile errors.
2006-12-27 Ryan Lortie <desrt@desrt.ca>
Bug 354061 – Excessive use of strlen by _vte_termcap_create
* src/vtetc.c: near-complete rewrite to use a GMappedFile rather than
reading a line at a time with excessive strlen/realloc use.
* str/matcher.c: this shouldn't be calling the strip code as the
strings it has are already unescaped.
2006-12-27 Ryan Lortie <desrt@desrt.ca>
Bug 387475 – Gtk-Warning spew in gnome-terminal
Problem introduced by fix to bug 356552.
* src/vte.c (vte_invalidate_cursor_periodic): Add a temporary backward
compatibility hack to prevent GObject from spewing warnings about
missing GtkSettings properties in old GTK versions.
2006-12-20 Behdad Esfahbod <behdad@gnome.org>
Bug 387482 – Variable modified in signal handler should be volatile
Patch from Bastien Nocera
* gnome-pty-helper/gnome-pty-helper.c: Make variable "done" volatile.
2006-12-08 Behdad Esfahbod <behdad@gnome.org>
Red Hat Bug 218626: "last -ad" print junk in last column
* gnome-pty-helper/gnome-utmp.c (write_logout_record),
(write_login_record): Don't gettimeofday directly into ut.ut_tv.
That overruns on x86_64.
2006-12-05 Behdad Esfahbod <behdad@gnome.org>
Released vte-0.15.0.
* NEWS: Updated.
* configure.in: Bumped version to 0.15.0.
* src/Makefile.am: Bumped libtool version to 10:7:1.
2006-12-05 Ryan Lortie <desrt@desrt.ca>
Bug 356552 – cursor timeout runs all the time
* src/vte-private.h: Rework how cursor blinking works.
* src/vte.c: Rework how cursor blinking works. Only register the
cursor blink callback when cursor blink is enabled and the window
is focused.
2006-11-16 Mariano Suárez-Alvarez <mariano@gnome.org>
Bug 307396 – Mouse scroll mode not controllable
* src/vte.c(vte_terminal_scroll): make the scrollwheel scroll by tenths of
a screen (or 1 line, whichever is bigger) instead of half screens.
2006-11-16 Mariano Suárez-Alvarez <mariano@gnome.org>
Bug 356602 – const cast warning fixes for libvte
Patch by Ryan Lortie (desrt)
* src/matcher.h: Use const char * where appropriate.
* src/matcher.c: Use const char * where appropriate. Cast g_strdup
to (GCacheDupFunc) to avoid a warning.
* src/vtetc.h: Use const char * where appropriate.
* src/vtetc.c: Use const char * where appropriate. Cast g_strdup
to (GCacheDupFunc) to avoid a warning.
* src/vte.c: Use const char * where appropriate.
2006-11-01 Rich Burridge <rich.burridge@sun.com>
* src/vteaccess.c:
Fixed bug #150858 - In gnome-terminal, the deleted character
is reported as "space".
2006-10-13 Behdad Esfahbod <behdad@gnome.org>
* po/POTFILES.in: Include vteseq.c
2006-10-11 Mariano Suárez-Alvarez <msuarezalvarez@arnet.com.ar>
Bug 337252 – ALT + Arrow keys don't work in irssi through gnome-terminal
* src/keymap.c (_vte_keymap_key_add_key_modifiers): Match the (newer)
xterm behavior when reporting modifiers to things running in a terminal.
2006-10-02 Behdad Esfahbod <behdad@gnome.org>
Released vte-0.14.1.
* NEWS: Updated.
* configure.in: Bumped version to 0.14.1.
* src/Makefile.am: Bumped libtool version to 10:6:1.
2006-10-02 Behdad Esfahbod <behdad@gnome.org>
Bug 358344 – autoscroll only works one way in fullscreen [PATCH]
Patch by Egmont Koblinger
* src/vte.c (vte_terminal_autoscroll),
(vte_terminal_motion_notify): Fix forward autoscrolling in fullscreen
mode.
2006-09-20 Behdad Esfahbod <behdad@gnome.org>
Bug 353756 – font setting cleanup
* src/vte.c (vte_terminal_set_font_full): Use 'monospace' family if no
font is set on a terminal widget
* src/vte.c (vte_terminal_set_font_from_string_full): Don't
g_return_if_fail(strlen(name) > 0). An empty string is a perfectly
valid pango font description string.
* src/vte.c (vte_terminal_show): Make sure we have a font loaded.
* src/vteapp.c (main): Don't fallback on "Monospace 12". Let the
widget decide what font to use if no font is set.
2006-09-18 Ryan Lortie <desrt@desrt.ca>
Bug 356616 – libvte broken with new autotools
* configure.in:
* src/Makefile.am: Fix broken variable substitution for newer
versions of automake.
2006-09-13 Behdad Esfahbod <behdad@gnome.org>
Bug 354024 – Suppress multiple warnings for missing control sequence
handlers
Patch from Chris Wilson
* src/vte.c (vte_terminal_handle_sequence): Suppress multiple warnings
for missing control sequence handlers in non-debugging builds.
2006-09-13 Behdad Esfahbod <behdad@gnome.org>
Bug 354620 – vte-0.14.0: undefined C code
Patch from Ales Nosek
* src/ssfe.c (inschar), (dokbdchar): Replace "*(tmp+1)=(*tmp--);"
with something well-defined.
2006-09-08 Behdad Esfahbod <behdad@gnome.org>
* src/Makefile.am: Define G_LOG_DOMAIN=Vte.
2006-09-04 Behdad Esfahbod <behdad@gnome.org>
Released vte-0.14.0.
* NEWS: Updated.
* configure.in: Bumped version to 0.14.0.
* src/Makefile.am: Bumped libtool version to 10:5:1.
2006-08-31 Behdad Esfahbod <behdad@gnome.org>
Bug 340631 – Printed lines containing tab characters are not wrapped
correctly
* src/vteseq.c (vte_sequence_handler_ta): make sure we don't move the
cursor back when tabbing past the end of the line.
* src/pty.c:
* src/ring.c:
* src/trie.c:
* src/vte.c:
* src/vtebg.c:
* src/vtetc.c:
Minor doc syntax update.
2006-08-26 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c (vte_terminal_get_text_range_maybe_wrapped): Followup on
the fix for bug 350236. It was causing empty lines not to be copied.
2006-08-24 Behdad Esfahbod <behdad@gnome.org>
Released vte-0.13.7.
* NEWS: Updated.
* configure.in: Bumped version to 0.13.7.
* src/Makefile.am: Bumped libtool version to 10:4:1.
2006-08-24 Behdad Esfahbod <behdad@gnome.org>
Bug 352365 – font caching problem for not-found glyphs
* src/vtexft.c (_vte_xft_font_for_char): Add caching on a missing
path. This only affects the second time a character is looked up.
* src/vtexft.c (_vte_xft_font_close), (_vte_xft_font_for_char),
(_vte_xft_char_width): Remove g_assert()'s that are not needed, as
we will definitely crash pretty soon if the assertion is not true
anyway.
2006-08-24 Behdad Esfahbod <behdad@gnome.org>
Bug 350236 – Cannot copy text containing invalid character sequences
* src/vte.c (vte_terminal_get_text_range_maybe_wrapped): Fix another
bug in my rewritten selection code, that was assuming that
last_nonempty character is one byte long.
2006-08-24 Behdad Esfahbod <behdad@gnome.org>
Bug 352439 – URL highlighting seriously broken
* src/vte.c (vte_terminal_get_text_range_maybe_wrapped): Followup to
changes made for bug 350623. Put back the g_array_set_size(), in the
correct place this time.
2006-08-22 Behdad Esfahbod <behdad@gnome.org>
Bug 351494 – Gnome-terminal doesn't kills bash on tab close
Patch from Aivars Kalvans
* src/vte.c (vte_terminal_unrealize): Undo the change from bug 348814.
Dispose draw in unrealize again, but also set has_fonts to FALSE.
2006-08-20 Behdad Esfahbod <behdad@gnome.org>
Released vte-0.13.6.
* NEWS: Updated.
* configure.in: Bumped version to 0.13.6.
* src/Makefile.am: Bumped libtool version to 10:3:1.
2006-08-17 Behdad Esfahbod <behdad@gnome.org>
Bug 351696 – crash on Terminal
* src/vteseq.c (vte_sequence_handler_set_title_internal): Check
->window is not NULL before setting icon/window title.
2006-08-16 Willie Walker <william.walker@sun.com>
Bug 350623 – Accessible text getTextAtOffset is broken
* src/vte.c (vte_terminal_get_text_range_maybe_wrapped): Do not
resize array before calling vte_g_array_fill since it
nullifies any effect vte_g_array_fill will have.
2006-08-16 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c (vte_terminal_get_text_range_maybe_wrapped): Make sure
attr.column is initialized.
2006-07-31 Behdad Esfahbod <behdad@gnome.org>
Released vte-0.13.5.
* NEWS: Updated.
* configure.in: Bumped version to 0.13.5.
* src/Makefile.am: Bumped libtool version to 10:2:1.
2006-07-30 Behdad Esfahbod <behdad@gnome.org>
Bug 158200 – terminal backspace behavior not set to UTF-8 mode
Based on patch from Egmont Koblinger
* src/vte.c (_vte_terminal_setup_utf8),
(vte_terminal_set_encoding), (_vte_terminal_fork_basic),
(vte_terminal_set_pty): Make sure UTF-8 state is correctly set
when pty changes.
2006-07-27 Behdad Esfahbod <behdad@gnome.org>
Bug 348814 – crash on Terminal
Patch from Aivars Kalvans
* src/vte.c (vte_terminal_unrealize): Do not dispose draw in
unrealize.
2006-07-24 Behdad Esfahbod <behdad@gnome.org>
Released vte-0.13.4.
* NEWS: Updated.
* configure.in: Bumped version to 0.13.4.
* src/Makefile.am: Bumped libtool version to 10:1:1.
2006-07-24 Behdad Esfahbod <behdad@gnome.org>
Bug 336947 – [patch] Redundant vte_terminal_set_font_full() calls
Patch from Aivars Kalvans
* src/vte-private.h:
* src/vte.c (vte_terminal_set_font_full), (vte_terminal_init),
(vte_terminal_realize):
AVoid redundant set_font_full and invalidate_all calls.
2006-07-19 Behdad Esfahbod <behdad@gnome.org>
Bug 134800 – gnome-termnal hung up when input by ATOK
Patch from Yukihiro Nakai <nakai@gnome.gr.jp>
* src/vte.c (vte_terminal_unrealize): Delay _vte_draw_free().
2006-07-19 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c (vte_terminal_extend_selection): Oops. Fix selection
that I broke recently.
2006-07-11 Behdad Esfahbod <behdad@gnome.org>
Bug 339983 – gnome-pty-helper should log username
Patch from Brian Cameron
* gnome-pty-helper/gnome-pty-helper.c (pty_remove), (shutdown_pty),
(pty_add), (open_ptys):
* gnome-pty-helper/gnome-pty.h:
* gnome-pty-helper/gnome-utmp.c (write_logout_record):
Log username if system supports it.
2006-07-10 Behdad Esfahbod <behdad@gnome.org>
Released vte-0.13.3.
* NEWS: Updated.
* configure.in: Bumped version to 0.13.3.
* src/Makefile.am: Bumped libtool version to 10:0:1.
2006-07-10 Behdad Esfahbod <behdad@gnome.org>
Bug 141985 – vte does not respond to 'CSI 2 1 t' or 'CSI 2 0 t' with
the correct window/icon title
Patch from Mariano Suárez-Alvarez
* src/vte.c (vte_terminal_realize), src/vteseq.c
* (vte_sequence_handler_set_title_internal): Set window/icon titles.
2006-07-10 Behdad Esfahbod <behdad@gnome.org>
Bug 121904 – copy-paste of empty line
Bug 25290 – Small UI tweak to select-by-word (only select only letter
at a time for non-word characters)
Bug 339986 – Patch to select localized strings exactly
* src/vte-private.h:
* src/vte.c (_vte_terminal_set_default_attributes),
(_vte_terminal_insert_char), (vte_terminal_is_word_char),
(vte_same_class), (vte_terminal_get_text_range_maybe_wrapped),
(vte_terminal_extend_selection):
* src/vteseq.c (vte_sequence_handler_screen_alignment_test):
Fix a bunch of selection-related issues. We now recognize explicitly
put space at the end of lines, and copy/paste it. The other change is
that non-wordchar characters are not grouped together. Also fixes the
fallback on Unicode properties that I added two commits ago.
2006-07-10 Behdad Esfahbod <behdad@gnome.org>
Bug 311855 – Race in vte leads to blocking of input.
Patch from Kalle Raiskila
* src/vte-private.h:
* src/vte.c (_vte_terminal_connect_pty_write),
(_vte_terminal_disconnect_pty_write), (vte_terminal_init):
Use a mutex for pty_output_source.
2006-07-10 Behdad Esfahbod <behdad@gnome.org>
Bug 339986 – Patch to select localized strings exactly
Patch from Takao Fujiwara
* src/vte.c (vte_terminal_is_word_char): Fall back on Unicode
properties for non-ASCII characters or when no array is set.
2006-07-10 Behdad Esfahbod <behdad@gnome.org>
Bug 342396 – Ctrl-space sends " ", not NUL.
* src/keymap.c (_vte_keymap_map): Fix keymap lookup bug that I
introduced during the char*->char[] work on 2006-04-18.
2006-07-10 Behdad Esfahbod <behdad@gnome.org>
Bug 345377 – real transparency
Patch from Kristian Høgsberg <krh redhat.com>
* doc/reference/tmpl/vte.sgml:
* doc/reference/vte-sections.txt:
* python/vte.defs:
* src/vte-private.h:
* src/vte.c (vte_terminal_set_opacity), (vte_terminal_init),
(vte_terminal_background_update):
* src/vte.h:
* src/vteapp.c (main):
* src/vtedraw.c (_vte_draw_set_background_color):
* src/vtedraw.h:
* src/vteft2.c (_vte_ft2_set_background_color):
* src/vtegl.c (_vte_gl_set_background_color):
* src/vtepango.c (_vte_pango_set_background_color):
* src/vtepangox.c (_vte_pango_x_set_background_color):
* src/vteskel.c (_vte_skel_set_background_color):
* src/vtexft.c (_vte_xft_create), (_vte_xft_set_background_color),
(_vte_xft_clear):
Add vte_terminal_set_opacity().
2006-07-05 Behdad Esfahbod <behdad@gnome.org>
* src/Makefile.am: Allow _vte_debug_.* into exported symbols.
2006-06-21 Behdad Esfahbod <behdad@gnome.org>
Bug 345514 – -no-undefined doesn't work with latest libtool
* src/Makefile.am: Remove -no-undefined.
2006-06-12 Behdad Esfahbod <behdad@gnome.org>
Released vte-0.13.2.
* NEWS: Updated.
* configure.in: Bumped version to 0.13.2.
* src/Makefile.am: Bumped libtool version to 9:2:0.
2006-06-12 Behdad Esfahbod <behdad@gnome.org>
Bug 344666 – Problems with *_CFLAGS and *_LDFLAGS in makefiles
Patch from Stepan Kasal <kasal@ucw.cz>.
* src/Makefile.am (AM_CFLAGS, AM_LDFLAGS, *_CFLAGS, *_LDADD):
Replace @FOO@ references by $(FOO), remove redundant (or buggy)
occurences of `@CFLAGS@'.
* gnome-pty-helper/Makefile.am (AM_CFLAGS, AM_LDFLAGS): Likewise.
* python/Makefile.am (vtemodule_la_CFLAGS): Likewise.
* src/Makefile.am (AM_CFLAGS): Add $(FT2_CFLAGS).
2006-06-08 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c (remove_display_timeout): Fix typo which may have been
causing things like crashes. Reported by muntyan. Also reordered
some code around update_timeout for better matching the current
timeouts in style.
2006-06-07 Behdad Esfahbod <behdad@gnome.org>
Bug 339529 – gnome-terminal (vte) crashes when detatched window is
closed
* src/vte.c (vte_invalidate_region): Bail out if terminal->window is
NULL.
2006-05-27 Behdad Esfahbod <behdad@gnome.org>
Bug 342549 – uninitialized var (coverity)
Patch from Paolo Borelli.
* src/vte.c (vte_cell_is_selected): Remove uninitialized var ret.
2006-05-27 Behdad Esfahbod <behdad@gnome.org>
Bug 342082 – vte_invalidate_region() may check whether terminal is
realiazed or not
Patch from Kouhei Sutou.
* src/vte.c (vte_invalidate_region): Return if not realized.
2006-05-22 Behdad Esfahbod <behdad@gnome.org>
Bug 340363 – vte Cygwin build fixes
Patch from Cygwin Ports maintainer
* configure.in, src/keymap.c, src/pty.c, src/ssfe.c, src/trie.c,
src/utf8echo.c, src/vte.c, src/vteseq.c, src/vtetc.c: Check and
include syslimits.h and ncurses/curses.h
2006-05-22 Behdad Esfahbod <behdad@gnome.org>
Bug 341793 – vte.h doesn't need to include X11/Xlib.h
Patch from Kouhei Sutou
* src/vte.h: Don't #include <X11/Xlib.h>
2006-05-17 Wouter Bolsterlee <uws+gnome@xs4all.nl>
* configure.in: Require intltool 0.35.0 to have
translations in the dist tarballs.
2006-05-17 Behdad Esfahbod <behdad@gnome.org>
Released vte-0.13.1.
* NEWS: Updated.
* configure.in: Bumped version to 0.13.1.
* src/Makefile.am: Bumped libtool version to 9:1:0.
2006-05-14 Behdad Esfahbod <behdad@gnome.org>
* NEWS, ChangeLog: Add vim and emacs footers for UTF-8.
2006-04-27 Behdad Esfahbod <behdad@gnome.org>
Bug 339980 – nativeecho needs glib in LDADD to build on Solaris
Patch from Brian Cameron.
* src/Makefile.am: Fix it.
2006-04-26 Behdad Esfahbod <behdad@gnome.org>
Bug 331803 – style needs to be attached/detached to the window on
realize/unrealize
Patch from Benjamin Berg <benjamin@sipsolutions.net>.
* src/vte.c: (vte_terminal_unrealize), (vte_terminal_realize):
attach and detach the style of the terminal widget.
2006-04-25 Behdad Esfahbod <behdad@gnome.org>
* src/Makefile.am: Pass -no-undefined linker flag.
2006-04-23 Behdad Esfahbod <behdad@gnome.org>
Released vte-0.13.0.
* NEWS: Updated.
* configure.in: Bumped version to 0.13.0.
* src/Makefile.am: Bumped libtool version to 9:0:0.
2006-04-23 Behdad Esfahbod <behdad@gnome.org>
Bug 339448 – selection doesn't respect hard newlines
* src/vte.c (vte_terminal_get_text_range_maybe_wrapped): Add newline
to the end of each line that is not soft-wrapped.
2006-04-23 Behdad Esfahbod <behdad@gnome.org>
Bug 148720 – Word selection erroneously captures text from next line
Patch from Chris Heath.
* src/vteseq.c (vte_sequence_handler_cd), (vte_sequence_handler_ce),
(vte_sequence_handler_clear_current_line),
(vte_sequence_handler_clear_above_current): Reset soft_wrapped flag.
2006-04-23 Behdad Esfahbod <behdad@gnome.org>
Bug 126376 – Uncoinditional definition of _XOPEN_SOURCE breaks build
on NetBSD
Patch from Dan Winship.
* configure.in:
* gnome-pty-helper/configure.in: Define XOPEN_SOURCE on solaris only.
2006-04-23 Behdad Esfahbod <behdad@gnome.org>
Bug 97719 – Selection: double/triple click doesn't cross line boundaries
Patch from Chris Heath.
* src/vte.c (vte_same_class): Fix problem with selecting whitespace
from adjacent lines, on word selection.
2006-04-22 Behdad Esfahbod <behdad@gnome.org>
Bug 160782 – Vte isn't multi-screen safe
Patch from Benedikt Meurer.
* src/vte.c (vte_terminal_unrealize), (vte_terminal_realize):
* src/vtebg.c (vte_bg_native_new), (_vte_bg_display_sync),
(vte_bg_root_pixmap), (vte_bg_get_for_screen), (vte_bg_init),
(vte_bg_get_pixmap), (vte_bg_get_pixbuf):
* src/vtebg.h:
* src/vteft2.c (_vte_ft2_set_background_image):
* src/vtegl.c (_vte_gl_set_background_image):
* src/vtepango.c (_vte_pango_set_background_image):
* src/vtepangox.c (_vte_pango_x_set_background_image):
* src/vtexft.c (_vte_xft_set_background_image): Handle per-screen
backgrounds.
2006-04-22 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c (vte_terminal_cursor_new), (vte_terminal_clipboard_get):
* src/vteapp.c (take_xconsole_ownership):
* src/vtebg.c (vte_bg_native_new), (_vte_bg_display_sync),
(vte_bg_root_pixmap):
* src/vtedraw.c (_vte_draw_get_colormap):
* src/vtefc.c (_vte_fc_transcribe_from_pango_font_description),
(_vte_fc_defaults_from_gtk):
* src/vtepango.c (_vte_pango_start), (_vte_pango_set_text_font):
* src/vtepangox.c (_vte_pango_x_set_text_font):
* src/vterdb.c (_vte_rdb_get):
* src/vteseq.c (vte_terminal_beep),
(vte_sequence_handler_window_manipulation):
* src/vtexft.c (_vte_xft_char_exists), (_vte_xft_text_extents),
(_vte_xft_font_open):
* src/vtegl.c: Remove obsolete #ifde GTK_CHECK_VERSION(2,2,0) checks.
2006-04-22 Behdad Esfahbod <behdad@gnome.org>
Bug 330441 – Remove libzvt support
Patch from Guilherme de S. Pastore <gpastore@gnome.org>
* configure.in, src/Makefile.am, src/reflect.c: remove remnants
from the old, broken, and unmaintained libzvt.
2006-04-21 Behdad Esfahbod <behdad@gnome.org>
Bug 328850 – Crash when pasting selection
* src/vte.c: Protect against passing NULL selection to strcmp.
2006-04-20 Behdad Esfahbod <behdad@gnome.org>
* doc/reference/tmpl/internals.sgml:
* doc/reference/tmpl/reaper.sgml:
* doc/reference/tmpl/vte-unused.sgml:
* doc/reference/tmpl/vte.sgml:
* doc/reference/tmpl/vteaccess.sgml:
* doc/reference/vte-sections.txt: Misc fixes and updates.
* python/vte.defs:
* python/vte.override: Updates.
Bug 160134 – mouse events occurring past column 95 are not passed
through to terminal application
Based on patch from Sean Estabrooks.
* src/vte.h:
* src/vte.c (vte_terminal_feed_child_binary): New public function.
* src/vte.c (vte_terminal_send_mouse_button_internal),
(vte_terminal_maybe_send_mouse_drag): Use feed_child_binary.
2006-04-19 Behdad Esfahbod <behdad@gnome.org>
Bug 135230 – Feature request to attach VTE to existing pty
Based on patch from eric@brouhaha.com, John Swensen, and
Chris Moller <cmoller@redhat.com>
* src/vte.c:
* src/vte.h:
* python/vte.defs:
* doc/reference/vte-sections.txt: Added vte_terminal_set_pty().
2006-04-18 Behdad Esfahbod <behdad@gnome.org>
Bug 337442 – [patch] Reduce .plt section
* src/Makefile.am: Pass export-symbols-regex to libtool.
2006-04-18 Behdad Esfahbod <behdad@gnome.org>
* src/caps.c (_vte_capability_init), src/caps.h:
* src/keymap.c (_vte_keymap_map), src/keymap.h: Make some data
structures const by changing char * to char [].
* src/vte.c (vte_update_delay_timeout), (vte_update_timeout),
(vte_terminal_extend_selection), (_vte_terminal_fudge_pango_colors):
Fix warnings and adapt to above changes.
2006-04-18 Behdad Esfahbod <behdad@gnome.org>
* configure.in, po/LINGUAS: Use intltool 0.34.90 format.
2006-04-12 Behdad Esfahbod <behdad@gnome.org>
Bug 142247 – use of uninitialized value
* src/pty.c: Initialize the arbitrary byte that we send on the pipe
to zero.
2006-04-12 Behdad Esfahbod <behdad@gnome.org>
Bug 149633 – gnome-terminal messes up boxdrawing chars aligment
* src/vte.c: Try to use the font first for all graphic characters.
This results in better looking graphics with modern fonts.
2006-04-12 Behdad Esfahbod <behdad@gnome.org>
Bug 144456 – UK pound currency symbol rendered incorrectly
* src/vte.c: Offset characters drawn in draw_graphic for padding.
2006-04-12 Behdad Esfahbod <behdad@gnome.org>
Bug 307403 – xticker doublefree
* src/xticker.c: Avoid double free.
2006-04-10 Behdad Esfahbod <behdad@gnome.org>
Bug 337877 – Patch to use po/LINGUAS
Patch from Michiel Sikkes.
* configure.in, po/LINGUAS: Move list of translations to po/LINGUAS.
2006-04-06 Behdad Esfahbod <behdad@gnome.org>
Bug 337552 – Insufficient version requirement for gtk+
* configure.in: Depend on Gtk+ 2.6.
2006-03-30 Behdad Esfahbod <behdad@gnome.org>
Bug 168251 – add support for 256 colors terminals
Patch from dann@godzilla.ics.uci.edu.
* src/vte-private.h, src/vte.c, src/vteseq.c: Implement support
for 256 colors.
2006-03-30 Behdad Esfahbod <behdad@gnome.org>
Bug 120276 – Wishlist: Support Rectangular Selection
Patch from Pedro de Medeiros.
* src/vte.c, src/vte-private.h: Implement block (rectangular)
selection using ctrl+mouse.
2006-03-30 Behdad Esfahbod <behdad@gnome.org>
Bug 336117 – [patch] Use g_slice API
Patch from Aivars Kalvans.
* src/*.c: Use g_slice instead of g_malloc for structs.
Also, replace g_string_new("") with g_string_new(NULL).
2006-03-30 Behdad Esfahbod <behdad@gnome.org>
Branchpoint for vte-0-12.
2006-03-30 Guntupalli Karunakar <karunakar@indlinux.org>
* configure.in: Added "dz" (Dzongkha) to ALL_LINGUAS.
2006-03-26 Behdad Esfahbod <behdad@gnome.org>
Bug 336128 – vim scrolling issues - emulation errors
* src/vteseq.c (vte_sequence_handler_sf): Update start and end
when updating insert_delta.
2006-03-15 Behdad Esfahbod <behdad@gnome.org>
Bug 334385 – Use intltool
* Makefile.am, configure.in: Add intltool support.
* src/iso2022.c, src/reaper.c, src/vteaccess.c, src/vteapp.c,
src/vtebg.c, src/vtexft.c, src/vte.c: Include glib/gi18n-lib.h
instead of #ifdefing gettext stuff.
* src/vte.c (vte_terminal_class_init): Use GETTEXT_PACKAGE instead
of PACKAGE in bindgettextdomain.
2006-03-14 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c (vte_terminal_size_allocate): More tweaks to the
previous changes. Reported by dholbach again.
2006-03-13 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c (vte_terminal_size_allocate): Put the stuff changed in
previous commit in their original order. Problem reported by
dholbach.
2006-03-13 Behdad Esfahbod <behdad@gnome.org>
Bug 104841 – scrolling doesn't work inside "screen" windows
* src/vte.c (vte_terminal_size_allocate): Fix restricted scrolling
region readjustment. Moreover, do not do unnecessary updates when
number of rows & columns has not changed.
2006-03-13 Behdad Esfahbod <behdad@gnome.org>
Bug 333768 – vteapp debug stuff should be conditional
Patch from Egmont Koblinger.
* src/vteapp.c: Make pwd and setting env vars conditional on debug.
2006-03-08 Behdad Esfahbod <behdad@gnome.org>
Released vte-0.12.0.
* NEWS: Updated.
* configure.in: Bumped version to 0.12.0.
2006-03-09 Abel Cheung <maddog@linuxhall.org>
* configure.in: Readd kn to ALL_LINGUAS and make sure everything
builds fine.
2006-03-08 Behdad Esfahbod <behdad@gnome.org>
Released vte-0.11.21.
* NEWS: Updated.
* configure.in: Bumped version to 0.11.21.
* configure.in: Removed kn from ALL_LINGUAS, as it was breaking
the build.
2006-03-08 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c, src/vte-private.h: Fix vte_update_timeout repeat to
25ms. (bug #333776, Egmont Koblinger)
2006-03-07 Abel Cheung <maddog@linuxhall.org>
* configure.in: Added "kn" "zh_HK" to ALL_LINGUAS.
2006-02-28 Behdad Esfahbod <behdad@gnome.org>
* src/vte-private.h: Step up COALESCE_TIMEOUT and DISPLAY_TIMEOUT
from 2ms to 10ms. This is more compatible with the updated timeout
that we are doing at around 25ms.
2006-02-27 Behdad Esfahbod <behdad@gnome.org>
* MAINTAINERS: Added.
2006-02-25 Behdad Esfahbod <behdad@gnome.org>
Released vte-0.11.20.
* NEWS: Updated.
* configure.in: Bumped version to 0.11.20.
2006-02-25 Behdad Esfahbod <behdad@gnome.org>
* src/vtexft.c: (_vte_xft_font_for_char): Rever the patch to
optimize memory usage by releasing fonts that aren't needed early.
Because that was inserting destroyed fonts into cache. Closes bug
#332580 and reverts bug #309322.
2006-02-25 Behdad Esfahbod <behdad@gnome.org>
Released vte-0.11.19.
* NEWS: Updated.
* configure.in: Bumped version to 0.11.19.
2006-02-17 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c: Make shift+insert paste PRIMARY and ctrl+shift+insert
paste CLIPBOARD (switched them. bug #123844)
2006-02-17 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c: Better update-timeout handling. Always delay updates
a bit. Schedule updates as G_PRIORITY_DEFAULT_IDLE. And, set delay
as the number of lines, in milliseconds.
2006-02-14 Behdad Esfahbod <behdad@gnome.org>
* src/vteseq-gen.c (main): Return 0. (bug #331178)
2006-02-14 Behdad Esfahbod <behdad@gnome.org>
* gnome-pty-helper/gnome-pty-helper.c (main): Use getpwnam to
correctly log multiple users with the same UID. (bug #319564,
patch from Laszlo (Laca) Peter.
2006-02-13 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c (update_timeout): Only discontinue timer if nothing
was updated in the last cycle.
2006-02-13 Behdad Esfahbod <behdad@gnome.org>
* gnome-pty-helper/gnome-pty-helper.c: Fix race condition when
shutdown_helper may be called again from the signal handler when
it's already running. (bug #331056)
2006-02-13 Behdad Esfahbod <behdad@gnome.org>
* configure.in: Do not prepend X_LIBS and X_CFLAGS to LIBS and
CFLAGS. (bug #331021, Sylvain BERTRAND)
2006-02-13 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c (vte_terminal_key_press): Handle Ctrl+Shift+Insert to
paste PRIMARY.
2006-02-11 Behdad Esfahbod <behdad@gnome.org>
Released vte-0.11.18.
* NEWS: Updated.
* configure.in: Bumped version to 0.11.18.
2006-02-11 Behdad Esfahbod <behdad@gnome.org>
* src/iso2022.c: Change INVALID_CODEPOINT from 0xFFFF to 0xFFFD.
(bug #317235, Egmont Koblinger)
2006-02-11 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c (_vte_invalidate_cells): Guard more against off values.
2006-02-10 Behdad Esfahbod <behdad@gnome.org>
Update the build infrastructure. make distcheck works now!
* autogen.sh: Use a generic autogen.sh that uses gnome-common.
* configure.in: Simplify gtk-doc stuff. Update to newer syntax.
* Makefile.am, src/Makefile.am, doc/reference/Makefile.am: Updated.
2006-02-10 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c (_vte_invalidate_cells): Throttle invalidating to at most
40 times per second, using a timeout.
2006-02-10 Behdad Esfahbod <behdad@gnome.org>
* src/vteseq.c: Removed the huge sequence handler table. Changed to
use the compact tables in vteseq-table.h.
* src/vteseq-gen.c: Generator containing the table removed from above,
that generates compact tables.
* src/vteseq-table.h: Table generated by above. Can be regenerated
using make.
* src/Makefile.am: Adjusted.
* src/vteapp.c: Set default font to Monospace instead of Sans.
2006-02-10 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c: Allocate terminal->pvt using GObject private data.
2006-02-10 Behdad Esfahbod <behdad@gnome.org>
Moved all sequence handler codes into a separate file.
* src/vte.c: Stuff moved to other files.
* src/vte-private.h: Includes all struct definitions from vte.c.
* src/vteseq.c, src/vteseq.h, src/vteseq-list.h: The sequence
handlers are all here now.
2006-02-09 Behdad Esfahbod <behdad@gnome.org>
* src/vteapp.c: Make a couple debug messages conditional on
DEBUG_MISC.
2006-02-03 Behdad Esfahbod <behdad@gnome.org>
* src/vte.c: Warning cleanup. A couple were actually bugs.
* src/vteapp.c: No need to run $SHELL by default. Handled
by vte.c now. A bug was causing nothing to be run...
2006-02-03 Behdad Esfahbod <behdad@gnome.org>
* src/debug.c, src/debug.h, src/matcher.c: Add the debug
flag TRIE for printing out the trie (previous was using
MISC.)
* src/vte.c (vte_invalidate_cells): Update row_count and
column_count when clamping their respective _start values.
* src/vte.c (vte_terminal_extend_selection, _vte_terminal_select_text):
Pass row_count to vte_invalidate_cells(), instead of row_stop.
* src/vteapp.c: Run $SHELL by default.
2006-02-01 Behdad Esfahbod <behdad@gnome.org>
* doc/reference/tmpl/internals.sgml: Added to CVS.
* vte/src/vte.c: Fix selection vs. primary that have been
borked forever. Closes bug #123844.
2006-01-30 Guilherme de S. Pastore <gpastore@gnome.org>
* src/trie.c: applied patch from Tomas Mraz to fix a double
free. Closes bug #161337.
2006-01-30 Erdal Ronahi <erdal.ronahi@gmail.com>
* configure.in: added ku (Kurdish) to ALL_LINGUAS
2006-01-28 Guilherme de S. Pastore <gpastore@gnome.org>
* src/Makefile.am: add -DG_DISABLE_ASSERT to CFLAGS.
* NEWS: updated.
* vte.spec: bumped version to 0.11.17.
2006-01-28 Guilherme de S. Pastore <gpastore@gnome.org>
* src/vte.c: only try to guess the user's shell when actually
forking, so we avoid unnecessary work if the application
already has to do that itself.
2006-01-15 Guilherme de S. Pastore <gpastore@gnome.org>
* src/: applied patch from Kjartan Maraas that replaces g_return
functions with g_assert. Should give an 8% speed boost.
2006-01-14 Guilherme de S. Pastore <gpastore@gnome.org>
* doc/reference/Makefile.am: install more than *.html, based on the
patch from Ed Catmur. Closes bug #321909.
2006-01-14 Olav Vitters <olav@bkor.dhs.org>
* src/caps.c: Support save and restore cursor position using \033[s
and \033[u. Reported by Dag Wieers. Fixes bug 170032.
2005-12-31 Olav Vitters <olav@bkor.dhs.org>
* vte.pc.in: Backup patch from Steve Langasek. It needs pkg-config
changes.
2005-12-12 Kjartan Maraas <kmaraas@gnome.org>
* vte.pc.in: Cleanups for the pkg-config file.
Patch from Steve Langasek. Closes bug #322240.
2005-12-12 Kjartan Maraas <kmaraas@gnome.org>
* python/vte.override: python-vte seems to have a small bug in
the override file that prevents the forkpty() method to be generated.
The attached patch fixes this problem. Patch from Michael Vogt.
Closes bug #169201.
2005-11-30 Kjartan Maraas <kmaraas@gnome.org>
* src/vte.c: (vte_terminal_preedit_length): Remove some
unused code.
(vte_terminal_process_incoming): Don't emit signals for every
character that's output. Patch from Padraig O'Briain. Huge
performance gain when a11y is activated.
2005-11-16 Timur Jamakeev <timurj@cvs.gnome.org>
* confgiure.in: Added 'ky' to ALL_LINGUAS
2005-11-08 Kjartan Maraas <kmaraas@gnome.org>
* NEWS: Update.
* Makefile.am:
* autogen.sh:
* configure.in:
* python/Makefile.am:
I'm attaching a patch that modernizes the python binding
build stuff. Notably, it excludes python/vte.c from the dist.
Right now as it stands, the file is disted, which means people's
builds will not work unless they build against pygtk 2.8,
which makes this bug somewhat important. Patch from Manish Sing
Closes bug #320931.
2005-11-01 Bill Haneman <billh@gnome.org>
* src/vteaccess.c:
(vte_terminal_accessible_get_text):
Swap offsets if start > end; fixes crasher
bug #153405. Patch from padraig o'briain,
thanks to Kjartan for review.
2005-10-02 Kjartan Maraas <kmaraas@gnome.org>
* src/vtebg.c: (_vte_property_get_pixmaps):
* src/vterdb.c: (_vte_property_get_string):
Fix gdk warnings. Patch from Michele Baldessari.
Closes bug #309025.
2005-09-16 Kjartan Maraas <kmaraas@gnome.org>
* src/vtexft.c: (_vte_xft_font_for_char): Optimize memory
usage by releasing fonts that aren't needed early. Patch
from Mike Hearn. Closes bug #309322.
2005-08-13 Kjartan Maraas <kmaraas@gnome.org>
* gnome-pty-helper/gnome-pty-helper.c: (init_msg_pass):
Make VTE work on NetBSD, OpenBSD (sparc and macppc).
Reported by Adrian Bunk, patches by Dan Winship and
Rich Edelman. Closes bug #126554.
2005-08-12 Kjartan Maraas <kmaraas@gnome.org>
* src/vtetc.c: (_vte_termcap_destroy): Don't crash
if there's no termcap file. Michele Baldessari
Closes bug #312260.
2005-08-12 Kjartan Maraas <kmaraas@gnome.org>
* configure.in: Correct test for recvmsg(). Patch from
Robert Basch. Closes bug #304815 and possibly bug #122055.
2004-08-10 Kjartan Maraas <kmaraas@gnome.org>
Patch from: Padraig O'Briain <padraig.obriain@sun.com>
Closes bug #113590.
* src/vte.c, src/vteint.h:
Add new functions to support accessible text selection:
_vte_terminal_get_selection, _vte_terminal_get_start_selection,
_vte_terminal_get_end_selection, _vte_terminal_select_text,
_vte_terminal_remove_selection
* src/vteaccess.c:
(xy_from_offset): Fix for offset being entire text.
(vte_terminal_accessibility_selection_changed): VteTerminal's
selection-changed signal handler which emits text-selection-changed
signal.
(vte_terminal_accessible_initialize): Connect to VteTerminal's
selection-changed signal.
(vte_terminal_accessible_get_n_selections) Add implementation.
(vte_terminal_accessible_get_selection) Add implementation.
(vte_terminal_accessible_add_selection) Add implementation.
(vte_terminal_accessible_remove_selection) Add implementation.
(vte_terminal_accessible_set_selection) Add implementation.
2005-08-05 Kjartan Maraas <kmaraas@gnome.org>
* gnome-pty-helper/gnome-pty-helper.c: (exit_handler), (main):
Clean up utmp/wtmp under vncserver if things fall apart under
the terminal. (Dave Lehman). Closes bug #312373
2005-07-26 Michele Baldessari <michele@pupazzo.org>
* python/vte.override (_wrap_vte_terminal_set_colors):
pyg_boxed_get should be on item not py_palette.
Reported with fix by Ethan Glasser-Camp <glasse@rpi.edu>
Closes bug #311570
2005-07-25 Michele Baldessari <michele@pupazzo.org>
* src/vtepango.c (_vte_pango_create): Initialize
PangoContext * data->ctx with NULL. Closes bug #126262
2005-07-21 Danilo Šegan <danilo@gnome.org>
Fixes #149925.
* src/vte.c (vte_terminal_io_read): Added simple comment for
translators.
2005-07-07 Matthias Clasen <mclasen@redhat.com>
* src/vte.c (vte_terminal_unrealize): Unset the user data
on the gdk window.
2005-06-15 Theppitak Karoonboonyanan <thep@linux.thai.net>
* configure.in: Added 'th' (Thai) to ALL_LINGUAS.
2005-06-11 Kjartan Maraas <kmaraas@gnome.org>
* NEWS: Update some.
* doc/reference/tmpl/reaper.sgml:
* doc/reference/tmpl/vte-unused.sgml:
* doc/reference/tmpl/vte.sgml:
* doc/reference/tmpl/vteaccess.sgml: Docs updates.
* src/vte.c: (vte_terminal_init), (vte_terminal_finalize),
(vte_terminal_get_accessible), (vte_terminal_class_init):
Apply patch from Padraig O'Briain <padraig.obriain@sun.com>
to fix a crash. Closes bug #119913.
2005-06-09 Kjartan Maraas <kmaraas@gnome.org>
* src/vte.c: (vte_terminal_style_changed):
Fix a crash when reparenting. Closes bug #169326.
Patch from Michele Baldessari.
2005-06-05 Ignacio Casal Quinteiro <nacho.resa@gmail.com>
* configure.in: Added 'gl' to ALL_LINGUAS.
2005-04-29 Kjartan Maraas <kmaraas@gnome.org>
* src/table.c: (_vte_table_literal_new), (_vte_table_free),
(_vte_table_addi), (_vte_table_matchi), (_vte_table_match),
(_vte_table_printi): Final bits of the memory reduction patch
from Aivars Kalvans. bug #160993 comment #9
* src/vte.c: (vte_terminal_scroll_region): Patch from Egmont
Koblinger to fix some scrolling issues. bug #164153
* vte.spec: Bump version.
2005-04-07 Abduxukur Abdurixit <abduxukur.abdurixit@t-systems.ch>
* configure.in: Added "ug" to ALL_LINGUAS.
2005-04-01 Adi Attar <aattar@cvs.gnome.org>
* configure.in: Added "xh" to ALL_LINGUAS.
2005-03-31 Steve Murphy <murf@e-tools.com>
* configure.in: Added "rw" to ALL_LINGUAS.
2005-03-29 Kjartan Maraas <kmaraas@gnome.org>
* autogen.sh: Use head -n 1 instead of head -1 to avoid
warning about the latter being deprecated in newer versions.
Reported by Ali Akcaagac. Closes bug #156022.
* vte.spec: Bump version
2005-03-16 Manish Singh <yosh@gimp.org>
* python/vtemodule.c: Remove stray underscores so python module
works again. Fixes bug #150760.
2005-03-14 Kjartan Maraas <kmaraas@gnome.org>
* src/Makefile.am:
* src/interpret.c: (main):
* src/matcher.c: (_vte_matcher_add), (_vte_matcher_init),
(_vte_matcher_create), (_vte_matcher_destroy), (_vte_matcher_new),
(_vte_matcher_free):
* src/matcher.h:
* src/vte.c: (vte_terminal_set_emulation), (vte_terminal_init):
* src/vtetc.c: (_vte_termcap_create), (_vte_termcap_destroy),
(_vte_termcap_new), (_vte_termcap_free):
* src/vtetc.h: Add patch for excessive memory consumption when
opening new tabs. This patch makes struct _vte_matcher and
struct _vte_termcap shared between terminals and should reduce
memory consumption with multiple tabs a lot. Patch from Aivars
Kalvans <kalvans at inbox lv>. From bug #160993.
2005-03-14 Kjartan Maraas <kmaraas@gnome.org>
* src/vte.c: (vte_terminal_scroll_region),
(vte_sequence_handler_al), (vte_sequence_handler_dl),
(vte_sequence_handler_sr), (vte_sequence_handler_insert_lines),
(vte_sequence_handler_delete_lines), (vte_terminal_handle_scroll):
Back out one of the fedora patches since it apparently causes
screen corruption for some users. It was rumored to have issues
from the start, so...
2005-03-02 Kjartan Maraas <kmaraas@gnome.org>
* src/vte.c: (vte_terminal_process_incoming): Fix the
crash in minicom when resizing the window. Closes
bug #163814. Also adjust the coalesce and display timeouts.
This makes g-t and xterm behave just about the same visually
but g-t is still a bit faster when using the same font and
utf8.
2005-03-02 Kjartan Maraas <kmaraas@gnome.org>
* src/Makefile.am: Add vtetree.[ch]
* src/vte.c: (vte_terminal_draw_row): Don't use a GArray
but use calloc'ed memory to speed up things further.
From bug #137864. Patch from Benjamin Otte.
* src/vtetree.c: (_vte_tree_new), (_vte_tree_destroy),
(_vte_tree_insert), (_vte_tree_lookup): New file
* src/vtetree.h: New file
* src/vtexft.c: (_vte_xft_font_open), (_vte_xft_font_close),
(_vte_xft_font_for_char), (_vte_xft_char_width): Use the new
functions to speed up things. From bug #137864. Patch from
Benjamin Otte. There are still two patches in there that don't
apply cleanly any more. Will look at those later.
* vte.spec: Bump version.
2005-02-28 Kjartan Maraas <kmaraas@gnome.org>
* src/vte.c: (vte_sequence_handler_send_primary_device_attributes):
Patch from Mariano to make vte claim to be the right type terminal.
Closes bug #130671.
2005-02-28 Kjartan Maraas <kmaraas@gnome.org>
* src/iso2022.c: (_vte_iso2022_is_ambiguous),
(_vte_iso2022_find_nextctl):
* src/uniwidths:
* src/vte.c: (vte_terminal_catch_child_exited), (vte_terminal_eof),
(vte_terminal_process_incoming), (vte_terminal_feed),
(vte_terminal_init), (vte_terminal_finalize), (vte_terminal_reset),
(add_display_timeout), (add_coalesce_timeout),
(remove_display_timeout), (remove_coalesce_timeout),
(vte_terminal_stop_processing), (vte_terminal_start_processing),
(vte_terminal_is_processing), (display_timeout),
(coalesce_timeout):
* src/vtexft.c: (_vte_xft_drawcharfontspec), (_vte_xft_draw_text):
Apply fix from Fedora package for performance problems. Closes
bug #143914. Patch was written by Søren Sandmann.
2005-02-28 Kjartan Maraas <kmaraas@gnome.org>
* src/vte.c: (vte_terminal_scroll_region): Fix for
problem with redrawing when scrolling back then forward
Closes bug #122150. Patch from Benjamin Otte.
2005-02-28 Kjartan Maraas <kmaraas@gnome.org>
* src/vte.c: (vte_terminal_unrealize): Fix a crash
when trying to use input methods. From Fedora.
Closes bug #168213.
2005-02-28 Kjartan Maraas <kmaraas@gnome.org>
* src/vte.c: (vte_terminal_scroll_region),
(vte_sequence_handler_al), (vte_sequence_handler_dl),
(vte_sequence_handler_sr), (vte_sequence_handler_insert_lines),
(vte_sequence_handler_delete_lines), (vte_terminal_handle_scroll):
Another patch from fedora. Make sure the screen is fully redrawn
before scrolling. Apparently this patch has some issues, but those
were found to be small enough to apply in Fedora, so I guess
the same holds true here. Closes bug #168212
2005-02-28 Kjartan Maraas <kmaraas@gnome.org>
* src/iso2022.c: (_vte_iso2022_process): Apply another
patch from Fedora. This should fix some screen corruption
with multibyte charsets. Closes bug #168211 and possibly
others.
2005-02-28 Kjartan Maraas <kmaraas@gnome.org>
* src/vte.c: (vte_terminal_adjust_adjustments),
(vte_terminal_maybe_scroll_to_bottom),
(vte_terminal_update_insert_delta), (vte_terminal_handle_scroll),
(vte_terminal_set_scroll_adjustment), (vte_terminal_size_allocate):
Apply patch from Fedora to fix some scrolling issues. Closes
bug #168210 and possibly others.
2005-02-15 Kjartan Maraas <kmaraas@gnome.org>
* src/vte.c: (vte_terminal_visibility_notify): Fix black
backgrounds in new terminals. Fix from Jon Nettleton
<nettleton at gmail com>. Closes bug #125364. Has been
in Fedora Core for months already.
2005-02-15 Kjartan Maraas <kmaraas@gnome.org>
* src/keymap.c: (_vte_keymap_map): Fix keypad behaviour
to be like xterm. Closes bug #128099. Fix is from
<jylefort at brutele be> and has been used in Fedora the last
three months at least.
2005-02-15 Kjartan Maraas <kmaraas@gnome.org>
* src/vteregex.h: Don't include <config.h> here. It breaks
building on AIX and can cause problems for l10n. Closes
bug #161352.
2005-02-15 Kjartan Maraas <kmaraas@gnome.org>
* src/dumpkeys.c: Fix build on NetBSD and Darwin.
Patch from Adrian Bunk <bunk at stusta de>. Closes
bug #126377.
2004-12-07 Rajesh Ranjan<rranjan@redhat.com>
* configure.in: included the hi locale in ALL_LINGUAS
2004-11-16 nalin
* src/vte.c(vte_terminal_io_read,vte_terminal_io_write): silence a
couple of warnings by expecting a GIOCondition instead of a
GtkInputCondition as a parameter.
2004-11-16 nalin
* autogen.sh: accept more, newer versions of autoconf/automake. Treat
autoconf >= 3 as acceptable instead of just > 3.
2004-11-16 nalin
* src/vte.c(vte_terminal_sequence_handler_scroll_up_or_down): add.
* src/vte.c(vte_terminal_sequence_handler_scroll_up_once): add.
* src/vte.c(vte_terminal_sequence_handler_scroll_down_once): add.
* src/vte.c(vte_terminal_sequence_handler_scroll_up): add.
* src/vte.c(vte_terminal_sequence_handler_scroll_down): add.
* src/table.c(_vte_table_addi): expand "%m" locally so that we can
distinguish between control sequences which differ only in the number
of numeric arguments they expect. This means we have a new upper
limit on the length of a numeric argument list we'll recognize.
* src/caps.c(_vte_xterm_capability_strings): remove alternates for
strings which include '%m' as a specifier -- that's handled at the
matching layer now.
* src/vte.c(vte_terminal_paste_cb): drop the supplied data if it isn't
valid UTF-8 (Red Hat #119099).
* src/keymap.c(_vte_keymap_map): try xterm variants if we're xterm, not
the other way around.
2004-08-18 David Lodge <dave@cirt.net>
* configure.in: Added "ang" to ALL_LINGUAS.
2004-08-18 Kjartan Maraas <kmaraas@gnome.org>
* configure.in: Added «nb» to ALL_LINGUAS.
2004-08-16 Christian Rose <menthos@menthos.com>
* configure.in: Added "bs" to ALL_LINGUAS.
2004-08-13 Gora Mohanty <gmohanty@cvs.gnome.org>
* configure.in: Added "or" to ALL_LINGUAS.
2004-07-17 Dinesh Nadarajah <dinesh_list@sbcglobal.net>
* ta.po: Added tamil Translation
2004-05-02 nalin
* src/reaper.c(vte_reaper_add_child): pass the global reaper in as
data when adding the child source, not the terminal which called us.
Stop accepting a data argument, because we'd discard it anyway. Return
the ID of the source which is added, if that happens.
* configure.in: define VTE_INVALID_SOURCE for internal use.
2004-05-01 nalin
* README: add pointers to info on bidirectional text and shaping.
2004-05-01 nalin
* src/vte.c(vte_terminal_get_text_maybe_wrapped): add a parameter to
control whether or not trailing whitespace is trimmed (padraig.obriain,
#141148).
* src/vte.c,src/vte.h(vte_terminal_get_text_include_trailing_spaces):
add as a wrapper for the new vte_terminal_get_text_maybe_wrapped()
(padraig.obriain, #141148).
* src/vteaccess.c(vte_terminal_accessible_update_private_d): use
vte_terminal_get_text_include_trailing_spaces to ensure that we get
trailing spaces (padraig.obriain, #141148).
* src/vte.c(vte_terminal_insert_char): clean up some autowrap stuff.
2004-04-30 nalin
* vte.pc.in, vte-uninstalled.pc.in: declare the defaultemulation
variable as one kind of variable, not that other kind (#141515).
2004-04-30 nalin
* src/vte.c(vte_terminal_button_release): complete selection if we were
selecting, not just if Shift is held down (allows Press Shift, Press
Button, Release Shift, Release Button in addition to already-recognized
Press Shift, Press Button, Release Button, Release Shift) (#121905).
* vte.spec: buildrequire gtk-doc, manually copy png images at
install-time.
2004-04-29 nalin
* src/vte.c, NEWS, doc/reference/vte-sections.txt,
doc/reference/tmpl/vte-unused.sgml: documentation updates.
* doc/reference/tmpl/reaper.sgml: note that we just proxy for glib 2.4
child_watch functionality, if present.
2004-04-29 nalin
* python/vte.defs: include get_default_emulation binding.
2004-04-29 nalin
* vte.spec: update version to 0.11.11
2004-04-29 nalin
* src/vte.c(vte_terminal_unrealize): don't unref our accessible peer;
it may be accessed while we're unrealized, causing it to be destroyed
and re-created needlessly (#128049).
* src/vte.c(vte_terminal_finalize): unref our accessible peer.
2004-04-29 nalin
* src/vte.c(vte_terminal_finalize): don't clear the child's PID early,
so that we'll SIGHUP it properly (the kernel should do that anyway,
but...) (#128291).
2004-04-29 nalin
* src/vte.c(vte_terminal_insert_char): only deselect the current
selection if just-inserted text affected the selected region of the
screen (#135259).
2004-04-29 nalin
* README: assorted updates.
* configure.in: check for <sys/termios.h>
* src/pty.c: include <sys/termios.h> if found (#141392).
* src/dumpkeys.c, src/mev.c, src/pty.c, src/ssfe.c, src/vte.c: do the
same.
* doc/reference/vte-sections.txt: add several functions which are new
but which weren't in the generated docs.
* doc/reference/vte-unused.txt: sort.
2004-04-29 nalin
* src/vte.c(vte_terminal_scroll_region): remove stray debug printfs.
2004-04-29 nalin
* configure.in: add a --with-default-emulation argument (part of
#115750). Use AS_HELP_STRING wherever we need help strings.
* vte.pc.in, vte-uninstalled.pc.in: add DefaultEmulation variable
* vte.spec: specify "xterm" as the default-emulation, even though it's
the default default
* termcaps/Makefile.am: build and install the default emulation's
termcap, assuming it's some kind of xterm variant.
* src/keymap.c(_vte_keymap_map): check for xterm-xfree86 definitions
if the terminal type includes xterm, not if it exactly matches xterm
* src/reaper.c(vte_reaper_add_child): add. The glib 2.4 SIGCHLD
watcher requires us to register particular PIDs for monitoring, so now
we require applications to do so.
* src/reaper.c(vte_reaper_child_watch_cb): add.
* src/reaper.c(vte_reaper_init): Don't hook the SIGCHLD handler if
we're running under glib 2.4, expect to use the g_child_watch
mechanism.
* src/vte.c: remove hard-coded definition of VTE_DEFAULT_EMULATION,
to be picked up from config.h instead.
* src/vte.c(vte_sequence_handler_cs): remove stray debug printfs.
* src/vte.c(vte_terminal_insert_char): only do what we were doing for
xn if LP was also set (#141445).
* src/vte.c(vte_terminal_get_default_emulation): add.
* src/vte.c(_vte_terminal_fork_basic): call vte_reaper_add_child for
new children.
2004-04-27 nalin
* src/vte.c(vte_terminal_fork_command): more clearly document what
the argv and envv arguments are expected to contain (#127979).
* src/vte.c(vte_terminal_insert_char): attempt to more closely match
the behavior of am and xn on terminals -- if am is set {if xn is set,
autowrap should only happen before a character is output, and then only
if it's a graphic character, otherwise we autowrap after a character is
output}
2004-04-21 nalin
* src/vte.c(vte_terminal_get_text_range_maybe_wrapped): also trim back
lines which are nothing but whitespace (#140765).
* src/vte.c(vte_terminal_configure_toplevel): invalidate the whole
window if we're "transparent", because we don't get expose events
unless some portion of our area came out from behind something else,
but we still need to repaint it (#122243).
2004-04-20 nalin
* doc/reference/tmpl/reaper.sgml: document the child-exited signal.
* doc/reference/tmpl/vte.sgml: document the emulation-changed and
encoding-changed signals.
2004-04-20 nalin
* Makefile.am: add rule for generating vte-uninstall.pc (Gman, #136129)
* vte-uninstalled.pc.in: add (Gman, #136129)
2004-04-19 nalin
* src/vte.c(vte_terminal_key_press): don't steal keys from the input
method.
2004-04-19 nalin
* src/pty.c(_vte_pty_set_utf8): toggle the IUTF8 flag, if
it was defined at compile-time (maybe for #129317).
* src/vte.c(vte_terminal_set_encoding): call _vte_pty_set_utf8.
* src/vte.h (vte_terminal_anti_alias_get_type): declare.
* src/vtebg.c(vte_bg_get_pixmap): Optimisation to fix the ridiculous
amount of time required to render solid colour or extremely small
image tiled backgrounds. This fixes bug #123903. (desrt)
* src/vtebg.c(vte_bg_root_pixmap): move resize code into a separate
function.
* src/vtebg.c(vte_bg_get_pixmap): Resize all image sources, in case
we're using a very small image file for the background.
2004-04-19 nalin
* python/Makefile.am: move python module to site-packages/gtk-2.0,
which is added to the search path only by pygtk 2 (#92252).
2004-04-19 nalin
* python/vte.override: define a modulename override so that the
Terminal class is registered in the proper namespace so that python's
help() builtin sees the Terminal class (#130267).
2004-04-19 nalin
* src/vte.c(vte_terminal_anti_alias_get_type): add, for the sake of
bindings.
2004-04-19 nalin
* src/vte.c(vte_terminal_key_press): call GtkWidget's key_press_event
callback for keys, in case GtkWidget has pre-programmed behavior for
that key (#133878).
* configure.in, gnome-pty-helper/configure.in: quote names of defined
functions (#133222).
* configure.in: make compilation of gnome-pty-helper actually
conditional (#133077).
* src/vte.c(vte_terminal_process_incoming): Doh #132610, actually
call vte_terminal_emit_contents_changed() when the contents change.
2004-04-19 nalin
* src/vte.h, src/vte.c (vte_terminal_set_font_full): Add (#134429).
* src/vteglyph.c(_vte_glyph_cache_set_font_description): take a
VteTerminalAntiAlias argument.
* src/vteft2.c, src/vtegl.c, src/pango.c, src/pango.x, src/vtexft.c
(*_set_text_font): take a VteTerminalAntiAlias argument.
2004-04-19 Victor Zverovich <vitaut@users.sourceforge.net>
* src/vte.h src/vte.c: Added default signal handlers to
VteTerminalClass (#137961). [NOTE: ABI change.]
2004-04-19 nalin
* src/vte.c(vte_terminal_configure_toplevel): don't re-invalidate
everything, apparently unnecessary (#122243). Might need to back this
out if I ever remember what specific combination of software and
versions prompted its addition in the first place.
* src/vte.c(vte_terminal_class_init): tell gettext that messages
retrieved from this domain should be returned in UTF-8 (#139542).
2004-04-19 nalin
* configure.in: don't disable use of deprecated APIs unless asked
to do so.
* src/keymap.c(_vte_keymap_GDK_space): add Meta case (gafton).
* src/vtefc.c(_vte_fc_width_from_pango_stretch): add.
* src/vtefc.c(_vte_fc_transcribe_from_pango_font_description): handle
PangoStretch characteristics using _vte_fc_width_from_pango_stretch.
* src/vteregex.c: add random comments.
* src/vte.c(VteTerminal): track the "xn" terminal attribute.
2004-04-10 Guntupalli Karunakar <karunakar@freedomink.org>
* configure.in: Added "gu" (Gujarati) to ALL_LINGUAS.
2004-03-20 Gareth Owen <gowen72@yahoo.com>
* configure.in: Added en_GB to ALL_LINGUAS
2004-03-10 Alexander Winston <alexander.winston@comcast.net>
* configure.in: Added en_CA to ALL_LINGUAS.
2004-03-04 Guntupalli Karunakar <karunakar@freedomink.org>
* configure.in: Added "pa" for Punjabi to ALL_LINGUAS.
2004-02-07 Robert Sedak <robert.sedak@sk.htnet.hr>
* configure.in: Added "hr" (Croatian) to ALL_LINGUAS.
2004-02-02 Martin Kretzschmar <m_kretzschmar@gmx.net>
* docs/reference/Makefile.am: use gtk-doc in xml-mode.
* docs/reference/vte-docs.sgml: sgml->xml, update to DocBook XML
4.1.2 DTD (fixes Bug #132945)
2004-02-02 Alastair McKinstry <mckinstry@computer.org>
* configure.in: Added 'ga' to ALL_LINGUAS
* po/ga.po: Added Gaeilge (Irish) translation.
2004-01-27 Åsmund Skjæveland <aasmunds@fys.uio.no>
* configure.in: Added 'nn' to ALL_LINGUAS
* po/nn.po: Added Norwegian Nynorsk translation.
2003-12-20 Arafat Medini <lumina@silverpen.de>
* configure.in: Added Arabic Locale "ar" to ALL_LINGUAS
2003-12-10 Tõivo Leedjärv <toivo@linux.ee>
* configure.in: Added et to ALL_LINGUAS.
2003-12-06 Iñaki Larrañaga <dooteo@euskalgnu.org>
* configure.in: Added "eu" (Basque) to ALL_LINGUAS.
2003-10-14 Christian Rose <menthos@menthos.com>
* configure.in: Added "ne" to ALL_LINGUAS.
2003-10-07 Žygimantas Beručka <uid0@tuxfamily.org>
* configure.in: Added "lt" to ALL_LINGUAS.
2003-09-15 nalin
* src/vteapp.c: add options for exercising the cursor and highlight
colors.
* src/debug.c: flush output streams when we check if debugging is
enabled, because we'll probably output a string next.
* src/iso2022.c: don't print a zero-length string. Yay compiler
warnings.
* src/interpret.c: use g_print() instead of fprintf() to print.
* src/keymap.c,src/ssfe.c: include <stdarg.h>, hopefully fixing
bug #121880 (or not).
2003-09-15 nalin
* python/vte.defs: add specs for set_color_cursor and
set_color_highlight.
2003-09-15 nalin
* src/vte.h,src/vte.c: add vte_terminal_set_color_cursor.
* src/vte.h,src/vte.c: add vte_terminal_set_color_highlight (#69776).
* src/vte.c(vte_terminal_determine_colors): add parameters for
specifying if the cell being rendered is the cursor or is highlighted,
probably for being selected. If either flag is set, and we've been
given a color to use for the purpose by a caller, use the supplied
color, else use inverse colors.
2003-09-15 nalin
* src/iso2022.c(process_control): don't reset the conversion state
when we hit an end-of-line. I wasn't reading RFC1468 closely enough,
as it states that each line begins in the same encoding as the end of
the previous line, and read "application should reset before end-of-
line" as "terminal resets at end-of-line" (bug #122156).
2003-09-11 nalin
* src/vteapp.c: silence a compiler warning.
2003-09-11 nalin
* README: ask for LC_* in addition to LANG if weird spacing errors
crop up.
* src/vteconv.c,src/vteconv.h: add wrappers for _vte_conv which weed
out some warnings.
* src/iso2022.c: use _vte_conv_cu instead of _vte_conv.
* src/trie.c: use _vte_conv_cu instead of _vte_conv.
* src/vte.c: give _vte_terminal_fudge_pango_colors a return type again.
* src/vtebg.c: ifdef out vte_bg_source_name, which is unused.
* src/vtebg.c,src/vterdb.c: wrap calls to gdk_property_get to weed out
some compiler warnings.
2003-09-11 nalin
* src/vte.c(vte_terminal_draw_cells_with_attributes): properly resolve
colors and cell properties to drawing colors.
* src/vte.c(_vte_terminal_fudge_pango_colors): add a function for
mapping GTK+ white-on-black preedit text to default reverse-colored
text for the terminal.
* src/vte.c(_vte_terminal_translate_pango_cells): don't bother
doing anything with the attribute for a range if the list is NULL.
Fudge white-on-black text to default colors in reverse so that it
works when the terminal is in a black-on-white color scheme.
2003-09-11 nalin
* src/vte.c(_vte_terminal_apply_pango_attr): map weight attributes to
the terminal's bold attribute.
2003-09-11 nalin
* src/vte.c(_vte_terminal_map_pango_color): add.
* src/vte.c(vte_terminal_im_preedit_changed): don't discard the
attributes list for the preedit string -- save them.
* src/vte.c(vte_terminal_draw_cells_with_attributes): add.
* src/vte.c(vte_terminal_paint): use draw_cells_with_attributes to
use the preedit attributes list when drawing the preedit string. This
changes the way the preedit string is presented to the user, but it
now looks [more] like GTK+ suggests it should look, so it should be a
good change.
2003-08-13 nalin
* src/caps.c: add sequences for linux-console-cursor-attributes, which
we'll ignore (bug #108232).
2003-08-13 nalin
* configure.in: if we don't find the python headers (even if we found
python), disable compilation of python bindings (bug #116756). Make the
checks for python support sequential for easier maintenance.
* python/vte.defs: add def for vte_terminal_match_set_cursor_type. Make
the color argument to vte_terminal_set_background_tint_color const.
* python/vte.override(_wrap_vte_terminal_forkpty): add.
* python/vte.override(_wrap_vte_terminal_fork_command): don't leak envv.
2003-08-13 nalin
* src/vte.c(vte_terminal_fork_command,vte_terminal_forkpty): doc update
to note that directory and envv can be NULL for both.
2003-08-13 nalin
* src/vteapp.c(main): if -S is passed, use forkpty to start a child that
just counts until killed with Ctrl-C.
2003-08-13 nalin
* doc/reference/vte-sections.txt: add vte_terminal_forkpty.
* src/pty.c(_vte_pty_run_on_pty): exit on any error, to avoid leaving
random unreaped children running. Accept NULL command indicating that
no exec() should occur, but still error out if command isn't NULL and
exec() fails.
* src/pty.c(_vte_pty_fork_on_pty_name,_vte_pty_fork_on_pty_fd): store
0 as the new child's PID if we're the child.
* src/pty.c(main): don't run "tty" by default, test the forkpty() case
instead.
* src/vte.c(vte_terminal_fork_command): rename to
_vte_terminal_fork_basic. Remove code to replace NULL command with
the user's shell.
* src/vte.c(vte_terminal_fork_command): new! wrap
_vte_terminal_fork_basic, replacing a NULL command with the user's
shell.
* src/vte.c(vte_terminal_forkpty),src/vte.h: new! wrap
_vte_terminal_fork_basic, passing NULL for the command and argv
arguments (bug #116450).
* src/Makefile.am: update shared library version.
2003-08-12 nalin
* configure.in: if <ft2build.h> isn't found, then we can't use any
freetype-specific bits, and that's not useful. Error out, and say
that we need freetype 2.0.2 or newer, which introduced this header
into the procedure (bug #116341).
2003-08-12 nalin
* src/vte.c: don't create an accessible peer at init() time in
debug mode.
* gnome-pty-helper/gnome-pty-helper.c(struct pty_info): add a field to
keep track of whether or not we created a lastlog record.
* gnome-pty-helper/gnome-pty-helper.c(shutdown_pty): also try to
write a logout record if pi->lastlog is true, because in doing so we
free pi->data, closing a leak (bug #116091).
2003-08-12 nalin
* src/vteapp.c(resize_window): don't add the padding in when calculating
the new window size.
2003-08-12 nalin
* doc/reference/tmpl/vte.sgml: note that dimensions passed in with
the resize-window signal include padding (more of bug #119141).
2003-08-12 nalin
* src/vte.c(vte_sequence_handler_character_attributes,
vte_sequence_handler_decset_internal): remove redundant type checks.
* src/vte.c(all signal handlers): return a boolean indicating whether
or not to exit the processing loop instance early to allow the
application to deal with some input (usually along the lines of a
signal requesting that the terminal be resized) (bug #118938).
2003-08-12 nalin
* python/vte.override(get_text,get_text_range): reorder arguments to
match the order for the C versions (#118882).
* python/vte.override(get_text,get_text_range,call_callback): fix
refcounting and callback argument marshalling (bug #118882).
* python/vte-demo.py: exercise get_text() on "window-raise" signals.
2003-08-12 Padraig O'Briain <padraig.obriain@sun.com>
* src/vteaccess.c:
(vte_terminal_initialize): New function containing initialization code
previously in vte_terminal_accessible_new. Also set role in
this function.
(vte_terminal_accessible_class_init): Specify function pointer for
vte_terminal_initialize.
(vte_terminal_accessible_get_type): Do not set instance data size or
GInstanceInitFunc. Remove vte_terminal_accessible_init.
This fixes bug #119694.
2003-08-11 nalin
* python/vte.override: add binding for get_padding() (bug #118834).
2003-08-11 nalin
* python/vte.override: add binding for get_cursor_position()
(bug #118800).
2003-08-11 nalin
* python/vte.defs: give length parameters for feed() and feed_child()
default values of -1 (bug #118711).
* python/vte.override: use the length parameter if it's supplied to the
feed() and feed_child() methods.
2003-08-11 nalin
* python/vte.override: add overrides for feed() and feed_child()
methods which use the length of the string as given in C, to hopefully
allow passing NUL bytes around as part of strings (bug #118711). Make
the length parameter optional, and ignored, to try to avoid breaking
existing Python code in an obvious way.
2003-08-11 nalin
* src/vte.c(vte_terminal_start_selection,vte_terminal_extend_selection):
drop an unnecessary cast-and-check, which we don't need because we have
no use for the GtkWidget pointer to the terminal. Fix initial shift-
click (bug #118106).
2003-08-11 nalin
* configure.in: error out if we don't find ncurses, curses, or
libtermcap development headers (bug #117754).
2003-08-11 nalin
* autogen.sh: export WANT_AUTOCONF_2_5 for the sake of Mandrake autoconf
wrapper (bug #119066).
2003-08-05 nalin
* src/vte.c(vte_sequence_handler_decset_internal,
vte_sequence_handler_window_manipulation): include the widget's padding
widths in resize requests (bug #119141).
2003-07-30 nalin
* autogen.sh: check for autoconf-2.51, autoconf-2.50, autoconf-2.5 when
looking for autoconf 2.5x (bug #118627).
2003-07-21 nalin
* gnome-pty-helper/configure.in: define _XOPEN_SOURCE_EXTENDED,
_XOPEN_SOURCE, and __EXTENSIONS__ for Solaris, as we do in the top-level
configure (#117636).
2003-07-16 nalin
* gnome-pty-helper/configure.in: check for grantpt in libc and then
in libpt. Check for openpty in libc before checking libutil. Check for
sendmsg in libc before checking libsocket (with libnsl) (#117636).
2003-07-11 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in: Added Walloon (wa) to ALL_LINGUAS
2003-07-10 nalin
* src/vteregex.h, src/vteregex.c: add.
* src/vte.c: use interfaces from vteregex for doing dingus matching.
2003-07-03 nalin
* src/vte.c(vte_sequence_handler_return_terminal_status): return an
empty string in response to the ENQ control sequence instead of "xterm".
Report and patch from Mariano Suárez-Alvarez (#116495).
2003-06-27 nalin
* src/iso2022.c: treat the "big5hkscs" encoding as an East Asian
encoding, which uses ambiguous widths (#116078). Report and patch
from Roger So.
* src/dumpkeys.c, src/iso2022.c, src/iso8859mode.c, src/nativeecho.c,
src/utf8echo.c, src/utf8mode.c, src/vte.c: don't use the literal escape
character, express it as an octal sequence.
2003-06-16 nalin
* src/caps.c: add vertical-tab and form-feed to the list of control
sequences.
* src/vte.c(vte_controL_sequence_handler_form_feed): add.
* src/vte.c(vte_controL_sequence_handler_vertical_tab): add.
2003-06-16 nalin
* src/vteaccess.c(xy_from_offset): fix a compiler warning.
2003-06-16 nalin
* src/vteint.h: add. Move private VteTerminal stuff which needs to be
shared with other modules in the library here.
* src/vtedraw.c, src/vtedraw.h: add get_char_width(), for use in drawing
the cursor.
* src/vte.c(vte_invalidate_cursor_once): if the character under the
cursor doesn't fit into its cell, expose the column to the right of
it so that we can paint into the adjacent cell.
* src/vte.c(vte_terminal_paint): when clearing the area behind the
cursor or drawing the hollow rectangle to indicate its position when
we don't have focus, use the visible width of the character instead
of just assuming it will fit. This complies better with assertion 2.
2003-06-09 nalin
* src/vte.c(vte_terminal_set_encoding): set the encoding for the iso2022
converter (spotted by havill).
2003-06-04 nalin
* src/vtebg.c, src/vterdb.c: sync the display before trapping errors
to ensure that any errors we'll get will be handled before we remove
the error handlers.
2003-06-03 nalin
* src/vtebg.c(_vte_bg_get_pixmap, _vte_bg_get_pixbuf): trap X errors
while retrieving the contents of the root pixmap.
* doc/ambiguous.txt: add.
* README: update.
* vte.spec: rebuild.
Tue Jun 3 15:50:38 2003 Jonathan Blandford <jrb@redhat.com>
* src/pty.c (n_read): add a missing break in the switch statement.
2003-06-03 Kenneth Rohde Christiansen <kenneth@gnu.org>
* configure.in: Added Limburgish (li) to ALL_LINGUAS.
2003-06-02 nalin
* src/Makefile.am: start using libtool versioning in earnest.
2003-06-01 nalin
* src/vtegl.c(_vte_gl_set_text_font): compile fix.
2003-05-30 nalin
* src/vte.c(vte_sequence_handler_decset_internal): fix logic for
skipping over particular settings so that setting 1048 actually works.
* src/vte.c(vte_terminal_process_incoming): in debug mode, print out
characters with codepoints higher than 255 in hex rather than decimal.
* src/iso2022.c(_vte_iso2022_ambiguous_width): rename to
_vte_iso2022_ambiguous_width_guess because that's all we can do without
more context.
* src/iso2022.c(_vte_iso2022_ambiguous_width): add for using the
current encoding to determine what the width of an ambiguously-wide
character should be. This seems to work better.
2003-05-30 Padraig O'Briain <padraig.obriain@sun.com>
* src/vteaccess.c: Add implementation for get_character_extents,
get_offset_at_point and get_run_attributes. This fixes bug #110770.
Add casts to fix complier warnings on Solaris.
* src/vtexft.c (_vte_xft_text_extents): Do not call return as function
returns void. Fixes compiler error on Solaris.
2003-05-29 nalin
* src/vteapp.c: require -i for icon-title-changed messages, which got
really annoying really fast.
* src/trie.c(main): use g_quark_from_static_string for static strings.
2003-05-29 nalin
* src/vte.c(vte_terminal_send): fix newline stuffing (used in linefeed
mode).
* src/vte.c(vte_unicode_strlen): rename to vte_unichar_strlen.
* src/vte.c(vte_terminal_set_title_internal): don't leak the new title
in the unlikely cases.
* src/vte.c(vte_terminal_process_incoming): be more careful with control
characters to avoid cases where we could be tricked into a loop.
* src/vteapp.c: emit a message when the icon title is changed.
2003-05-29 nalin
* src/vte.c(vte_terminal_process_incoming): handle control characters
in the middle of control sequences.
* src/vte.c(vte_sequence_handler_cm): fix origin mode.
* src/vte.c(vte_sequence_handler_cv): fix origin mode.
* src/vte.c(vte_sequence_handler_cs): snap the cursor to the scrolling
region which is set.
* src/table.c(_vte_table_extract_number): extract a number digit by
digit as we do in the trie parser.
* src/vte.h: declare 'struct vte_char_attributes' again to restore API
back compat with 0.10.x.
* src/iso2022.c(_vte_iso2022_sequence_length): don't recognize PM
messages -- Xterm doesn't do anything with them and we don't want to
appear to hang when we're really just waiting for the end of the
message.
2003-05-28 nalin
* src/vtefc.c(_vte_fc_defaults_from_rdb): only apply DPI if we were
able to get a value.
* src/vterdb.c, src/vterdb.h: use the display and screen of a passed-in
widget if asked to do so, else use screen 0 of the default display.
2003-05-28 nalin
* configure.in: check for GTK+ 2.2, and if found, force use of
multihead-safe APIs to try to flush out some bugs.
* src/vte.c, src/vteapp.c, src/vtedraw.c, src/vtefc.c, src/vteglyph.c:
clean up some sloppy multihead changes.
* src/vte.c, src/vte.h (vte_terminal_match_set_cursor_type): add.
* src/vtedraw.c, src/vtedraw.h: add a draw_char() method which is
allowed to fail.
* src/vte.c(vte_terminal_draw_graphic): separate the width of a column
and the number of columns to be drawn. Use _vte_draw_char() to avoid
crude approximations of characters when we have a font for them.
2003-05-21 nalin
* src/vte.c(vte_terminal_scroll_region): force an entire window repaint
if we're supposed to scroll the background but we're not scrolling the
entire window. This means we need to repaint the scrolled region, and
to keep things looking right, we need to repaint everything.
* src/vteapp.c(main): enable visible bell if we're disabling the
audible bell, and vice-versa.
* src/vte.c: flesh out some doc comments.
* doc/reference/tmpl/vte.sgml: flesh out some notes on signals.
2003-05-21 nalin
* src/vteconv.c(_vte_conv): pass zero bytes which trigger EILSEQ
through and keep going.
* src/vteconv.c: replace use of g_utf8_strlen with an internal function
which doesn't stop counting at NUL characters.
2003-05-21 nalin
* src/interpret.c: use _vte_matcher_free_params_array.
* src/vte.c(vte_invalidate_cursor_once): add a parameter for indicating
if this is a "cursor blink" (periodic) refresh, and if it is set and
the cursor isn't supposed to blink, suppress the invalidate.
2003-05-21 nalin
* src/iso2022.c(_vte_iso2022_process): free the temporary array.
* src/matcher.c(_vte_matcher_free_params_array): add.
* src/vte.c: use _vte_matcher_free_params_array instead of the local
copy, which is removed.
* src/interpret.c, src/table.c, src/trie.c: use
_vte_matcher_free_params_array to free parameter arrays instead of
g_value_array_free, which doesn't take care of the pointer values.
* src/vte.c(vte_sequence_handler_set_title_internal): only attempt to
close the conversion descriptor if it was opened successfully.
* src/vteapp.c: add the -k option to spin after gtk_main() returns.
* src/vtefc.c: make copies of patterns with FcPatternDuplicate so that
we know where all of the returned patterns came from.
* src/vtexft.c(_vte_xft_font_for_char): set the item in the pattern
array to NULL if we successfully opened a font using the pattern.
2003-05-20 nalin
* src/iso2022.c: clarify comments near one of the warning messages.
* src/vtefc.c(_vte_fc_transcribe_from_pango_font_description): unref
the Pango context, which was created for us.
* src/vtepango.c: keep track of the Pango context, and unref it when
it is no longer needed.
2003-05-20 nalin
* src/Makefile.am: try juggling the CFLAGS and LIBS order to let the
xft CFLAGS/LIBS take precedence over everything else (#113335).
2003-05-20 nalin
* src/ssfe.c: compile fix for Solaris, patch from #113344.
2003-05-20 nalin
* src/vte.c: remove no-longer-used tree structure.
* src/vtefc.c: free strings returned by g_object_get().
2003-05-20 nalin
* src/vte.c(vte_terminal_realize): create the terminal's draw structure.
* src/vte.c(vte_terminal_unrealize): free the terminal's draw structure.
* src/vteapp.c(main): enforce a clean shutdown by requiring that the
terminal and top-level window are both finalized before gtk_main()
returns.
2003-05-20 nalin
* src/vte.c(vte_terminal_finalize): properly send a SIGHUP to the child
process if it hasn't already exited (#112505).
* src/vteapp.c: don't exit on EOF, only on child-exited.
* src/vte.c(vte_sequence_handler_sf): increment the scrolling offset
to avoid flickering when the application has defined a scrolling region
with top row == 1.
2003-05-19 nalin
* src/iso2022.c, src/keymap.c, src/mev.c, src/vtebg.h, src/vteglyph.h:
remove comma from end of enum declaration (#111925).
* src/vtetc.c: don't use parameter-as-array-size compiler
extension (#111925).
* src/ssfe.c: don't assume that the compiler interprets \e correctly,
use %c with value of 27 instead (#111925).
* doc/reference/Makefile.am: obey CPPFLAGS and LDFLAGS (#111925).
* gnome-pty-helper/gnome-utmp.c: only include <utmp.h> if HAVE_UTMP_H
was defined (#111925).
* src/keymap.c, src/ssfe.c: unconditionally include <term.h> if we
defined HAVE_CURSES or HAVE_NCURSES, as having the header is a
precondition for defining either (#111925).
* src/iso2022.c: make each array have at least one element (#111925).
* src/pty.c, src/gnome-login-support.c: try to open /dev/ptc if opening
/dev/ptmx fails due to ENOENT (#111925).
2003-05-19 nalin
* src/vteapp.c: don't exit on eof, just child-exited.
* src/vte.c(vte_terminal_eof): don't disconnect from SIGCHLD on eof,
the child might still be running.
2003-05-19 nalin
* src/Makefile.am: change all instances of "termcap" to "vtetc".
* src/termcap.c, src/termcap.h: rename to vtetc.c, vtetc.h, to avoid
conflicts with system headers.
2003-05-19 nalin
* src/keymap.c: fix KP_PageDown in application keypad mode (#113187).
* src/reaper.c: add a finalize method which properly cleans things up
so that the singleton can at least theoretically be destroyed (part of
a fix for #112172).
* src/vte.c: obtain a ref to a reaper object whenever we are waiting
for a child to exit.
* po/POTFILES.in: add more source files for scanning.
* src/iso2022.c: rework pieces to handle incomplete sequences at the
end of input. Check for 8-bit SS2 and SS3 in case of EILSEQ. Build
a fake ISO-8859-1 map for conversions using invalid maps.
* src/iso2022.c(_vte_iso2022_state_free): free the state's buffer.
* src/vteconv.c: internalize UTF-8 to UTF-8 conversions, fix handling
of incomplete sequences at the end of the available data.
* src/vte.c: implement send/receive and automatic linefeed modes.
* src/vte.c(vte_sequence_handler_sr): invalidate the row which contains
the cursor to ensure that it doesn't leave a trail.
* src/vte.c(vte_sequence_handler_return_terminal_id): add.
* src/vte.c(vte_terminal_feed_child_using_modes): add.
2003-05-19 Telsa Gwynne <hobbit@aloss.ukuu.org.uk>
* configure.in: Add cy (Welsh) to ALL_LINGUAS
2003-05-13 nalin
* src/iso2022.c(_vte_iso2022_find_nextctl): don't recognize 8-bit
SS2 and SS3 by default, it breaks UTF-8 and other encodings (#112879).
2003-05-13 nalin
* src/vtedraw.c, src/vtedraw.h: add _vte_draw_needs_repaint() to
indicate if the drawing back-end can only handle entire-window paints.
* src/vteconv.c: return a value from _vte_conv_close(), even though
it isn't used.
* src/vte.c(vte_terminal_paint): don't look at drawing starting at
negative row or coumn offsets.
* src/vtegl.c: prefer glX double-buffering to GDK's, and use double-
buffered possibly-direct windows instead of indirect pixmaps.
2003-05-12 nalin
* src/vtebg.c(_vte_bg_get_pixmap, _vte_bg_get_pixbuf): account for the
foreign root pixmap not having a colormap by default, using the root
window's colormap if it doesn't already have one set.
2003-05-12 nalin
* src/iso2022.c(_vte_iso2022_state_new): if we can't convert from the
locale encoding to UTF-8, use UTF-8 as the locale encoding (#112614).
* src/vtegl.c(_vte_gl_start): enable point smoothing.
2003-05-08 nalin
* src/vtedraw.c, src/vtedraw.h (_vte_draw_get_colormap): let the caller
control whether or not we return the default colormap.
* src/vtegl.c: enable blending. Don't specify any buffer depths. Set
the current drawable before we do any drawing. Call gluOrtho2D with
the right args to set up the right projection.
* src/vteskel.c: quiet compiler warning by removing a "const".
* src/vtedraw.c: juggle the preferred render order again.
2003-05-08 Abel Cheung <maddog@linux.org.hk>
* configure.in: Added "mk" to ALL_LINGUAS.
2003-05-07 nalin
* src/iso2022.c: let OSC command sequences be subject to code
conversion again (#112485).
2003-05-07 nalin
* src/vteconv.c, src/vteconv.h: add VteConv as a thin wrapper around
GIConv.
* src/iso2022.c: use VteConv.
* src/matcher.c(_vte_matcher_find_valid_encoding): remove.
* src/matcher.c(_vte_matcher_wide_encoding): remove.
* src/trie.c: use VteConv.
* src/utf8echo.c: use VteConv.
* src/vte.c: use VteConv (#112446).
2003-05-06 nalin
* src/vte.c: add "Since: 0.11" to documentation for functions which
aren't available in the 0.10 series.
* src/iso2022.c: default G2 to JIS0201, G3 to JIS0212 for Japanese,
because they appear to not be used by anyone else.
* vte.spec: merge with .spec file from RHL.
2003-05-06 nalin
* src/vtegl.c: get text rendering semi-working.
2003-05-06 nalin
* src/vteft2.c, src/vtegl.c, src/vtepango.c, src/vtepangox.c,
src/vtexft.c: when setting up backgrounds, don't deref an existing
background before fetching a new one, in case they're the same.
* src/vteglyph.c(_vte_glyph_draw): fix computation of the input offset.
* src/vtegl.c: implement drawing of backgrounds.
2003-05-06 nalin
* src/iso2022.c(_vte_iso2022_map_J): include the whole JIS0201 map
instead of just the lower half.
* src/iso2022.c(_vte_iso2022_map_get): set the and_mask to clear the
high bits of pairs before looking them up in the maps.
* src/iso2022.c(_vte_iso2022_fragment_input): recognize the 8-bit
versions of SS2 and SS3.
* src/iso2022.c(_vte_iso2022_process_control): recognize the 8-bit
versions of SS2 and SS3.
2003-05-06 Danilo Šegan <dsegan@gmx.net>
* configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
2003-05-05 nalin
* src/debug.h: include <glib.h> for gboolean type definition.
* src/matcher.c: include "config.h" and "debug.h".
* src/matcher.h: use G_BEGIN_DECLS/G_END_DECLS
* src/table.h: use G_BEGIN_DECLS/G_END_DECLS
* src/termcap.h: include <glib.h>, again for gboolean.
* src/vtebg.h,src/vterdb.h,src/vtergb.h: adjust macro used to prevent
multiple inclusions to match the rest of the tree.
* src/vtefc.c(_vte_fc_patterns_from_pango_font_desc): provide a callback
which can be used to override all defaults.
* src/vtegl.h,src/vtexft.h: don't include "config.h"
* src/vteglyph.c, src/vteglyph.h: add _vte_glyph_get_uncached().
2003-05-04 nalin
* gnome-pty-helper/gnome-login-support.c(n_read,n_write): if ERESTART
is defined, treat it like EINTR and EAGAIN.
* src/pty.c(n_read,n_write): if ERESTART is defined, treat it like
EINTR and EAGAIN.
2003-05-02 nalin
* configure.in: define _XOPEN_SOURCE_EXTENDED, _XOPEN_SOURCE, and
__EXTENSIONS__ to get definitions for msg_control and msg_controllen
on Solaris (#112036).
* src/vtedraw.c(_vte_draw_set_scroll): don't try to return a value from
this void function (#112036). Patch from Hidetoshi Tajima.
* src/xticker.c: don't include getopt.h, which isn't even needed for
regular getopt() (#112036). Patch from Hidetoshi Tajima.
2003-05-01 nalin
* src/vtebg.c(vte_bg_set_root_pixmap,vte_bg_root_pixmap): remove some
debugging g_print() calls.
* src/iso2022.c(process_cdata): skip over NUL bytes (#112022).
* src/vte.c(vte_terminal_background_update): map the bgcolor values to
a pixel value before setting the window background color.
* src/nativeecho.c(main): echo NUL bytes if asked to do so.
2003-05-01 nalin
* src/vtebg.c, src/vtebg.h: add a singleton object for managing
copies of background images, either the desktop background, an
in-memory pixbuf, or an on-disk file, with tinting. Using a single
store for this stuff lets multiple widgets share images and should
reduce both CPU and memory consumption in applications which create
more than one VteTerminal instance with similar settings.
* src/vtedraw.c, src/vtedraw.h: adapt the set_background_pixbuf()
interface to the vtebg method and rename to set_background_image().
* src/vteft2.c, src/vtegl.c, src/vtepango.c, src/vtepangox.c,
src/vteskel.c, src/vtexft.c: update to work with newer vtebg/vtedraw
interfaces.
* src/vte.c(vte_terminal_filter_property_changes): remove in favor
of vtebg method. Manage background state for vtebg.
2003-05-01 Kang Jeong-Hee <Keizi@mail.co.kr>
* doc/reference/Makefile.am: s/index.sgml/index.html/.
There's no index.sgml in html directory, but a index.html.
2003-04-29 nalin
* src/vte.c(vte_sequence_handler_local_charset): remove the unused
DEFAULT_ISO_8859_1 case.
* src/vte.c(vte_terminal_class_init): don't call
_vte_matcher_narrow_encoding(), because we don't need it any more.
Change the error message emitted when _vte_matcher_wide_encoding()
fails (#111925), and mark it for translation.
* src/trie.c(main): don't call _vte_matcher_narrow_encoding() just
to print its result.
* src/vte.c(vte_terminal_set_encoding): include the right codeset name
in the error message.
* src/vteglyph.c(_vte_glyph_get): mark error message for translation.
* src/matcher.c, src/matcher.h: remove _vte_matcher_narrow_encoding().
Make tables of strings "const".
2003-04-29 nalin
* src/vte.c(vte_terminal_unrealize): set the IM context's client window
to NULL before unreferencing it to avoid crashes when preedit is active.
2003-04-29 nalin
* src/keymap.c: add keymaps for GDK_slash and GDK_question (#108299).
2003-04-29 nalin
* src/vterdb.c(_vte_rdb_get): use INT_MAX instead of LONG_MAX when
passing in the maximum length, because it's returned in an int.
2003-04-29 nalin
* src/iso2022.txt: fix the UTF-8 sample text which corresponds to the
ISO-2022-KR sample text so that it actually matches the text.
2003-04-29 nalin
* src/iso2022.c(_vte_iso2022_map_U): add map for CP437.
* src/unitable.CP437: add.
* src/mkunitables.sh: add CP437.
* src/Makefile.am: add unitable.CP437 to the file list.
2003-04-29 nalin
* src/iso2022.c(_vte_iso2022_process_control): accept and warn about
bogus map names (#110300).
2003-04-28 nalin
* src/vte.c(vte_invalidate_cursor_once): rework to simplify the logic
of how many cells to invalidate when we have a preedit string.
* src/vte.c(vte_terminal_paint): draw the preedit string correctly for
cases more complicated than the default IM (seems to fix #111767).
* src/vterdb.c(_vte_rdb_get): use g_strncpy() and the property length
to avoid going past the end of the possibly-not-nul-terminated string.
* src/Makefile.am: build a standalone vterdb binary.
2003-04-28 nalin
* src/vte.c(vte_terminal_insert_char): add another flag to skip over
sanity-checking the buffer when adding characters.
* src/vte.c(vte_terminal_process_incoming): sanity-check the buffer
only when necessary to save time.
* src/vte.c(vte_terminal_scroll_region): invalidate the region which
is exposed when we scroll so that the entire cell gets redrawn, avoiding
clipping problems (#111683).
* src/vte.c(vte_terminal_paint): fix math for determining where to
stop drawing.
* src/vte.c(vte_terminal_fill_rectangle): rename to ..._int to reduce
confusion over which internal drawing commands are offset and which are
not.
* src/vte.c(vte_terminal_insert_char): if performing a single
substitution, check the encoded width of the output char, not the
input char, which doesn't have one.
2003-04-28 nalin
* src/vterdb.c, src/vterdb.h: add routines for pulling Xft antialiasing
and hinting options from the resource database.
* src/vtefc.c(_vte_fc_patterns_from_pango_font_desc): apply settings
from the resource database after applying settings from GTK+.
* src/vtefc.c(_vte_fc_defaults_from_rdb): added, for adding default
settings based on the resource database.
2003-04-27 nalin
* src/vtefc.c(_vte_fc_defaults_from_gtk): complain when the installed
version of GTK+ doesn't support reporting Xft antialiasing and hinting
settings.
2003-04-25 nalin
* src/vte.c(vte_sequence_handler_sf): freeze the window when scrolling
down in a restricted scrolling area again.
2003-04-23 nalin
* src/iso2022.c(_vte_iso2022_state_set_codeset): save the new codeset.
* src/iso2022.c(process_cdata): compare the new codeset to the name of
the UTF-8 codeset instead of the local codeset to see if we need to
notify callers of a change.
2003-04-23 nalin
* src/vte.c(vte_sequence_handler_sf): don't use the window freeze count
to check if it's safe to scroll using gdk_window_scroll(), require other
parts of this widget to declare it unsafe for those cases.
2003-04-23 nalin
* src/vtexft.c(_vte_xft_char_width): take an explicit XftFont instead
of figuring out which one to use ourselves.
* src/vtexft.c(_vte_xft_draw_text): pass the XftFont which we're already
using to _vte_xft_char_width to save a call to _vte_xft_font_for_char.
2003-04-23 nalin
* autogen.sh: accept libtool 1.5 in addition to 1.4 (#15968).
2003-04-23 nalin
* src/vte.c,src/vte.h: (_vte_terminal_accessible_ref): add.
* src/vteaccess.c(vte_terminal_accessible_new): call
_vte_terminal_accessible_ref to ensure that accessible signals are
going to be emitted.
2003-04-23 nalin
* src/dumpkeys.c: formatting fixup.
* src/iso2022.c: formatting fixups. Try using U+FFFF as the "invalid"
marker character instead of '?', because it's actually invalid.
* src/pty.c: formatting fixup.
* src/reflect.c: formatting fixup.
* src/ring.c: formatting fixup.
* src/ssfe.c: formatting fixups.
* src/trie.c: formatting fixup.
* src/vte.c: formatting fixups.
* src/vte.c(vte_terminal_get_accessible): don't add a weak pointer to
the AtkObject if it isn't a valid AtkObject. Only emit text-changed
signals if we managed to create a valid accessible peer.
* src/vteaccess.c: formatting fixups.
* src/vteaccess.c(vte_terminal_accessible_init): unset the EXPANDABLE
Atk state. Set the RESIZABLE state.
* src/vteaccess.c(vte_terminal_accessible_class_init): Remove
spurious(?) call to bind_textdomain.
* src/vteaccess.c(vte_terminal_accessible_get_type): check if the
accessible peer of our peer's ancestor is derived from GtkAccessible,
and if it isn't derive from GtkAccessible instead of that.
* src/vteaccess.c(vte_terminal_accessible_get_type): register our
factory type.
* src/vteaccess.c, src/vteaccess.c: add VteTerminalAccessibleFactory.
* src/vtedraw.c: formatting fixup.
2003-04-23 nalin
* src/vte.c(vte_terminal_background_update): always refetch the
root pixmap if we don't currently have a background image (#111386).
2003-04-23 nalin
* src/vteaccess.c: implement an AtkComponent interface (part of
#110770).
* src/vteaccess.c(vte_terminal_accessible_focus_in): set the focus
state on the accessible peer (part of #110770).
* src/vteaccess.c(vte_terminal_accessible_focus_out): unset the focus
state on the accessible peer (part of #110770).
* src/vteaccess.c(vte_terminal_accessible_init): connect to the widget's
visibility-notify signals.
* src/vteaccess.c(vte_terminal_accessible_finalize): disconnect from
the widget's visibility-notify signals.
2003-04-23 nalin
* src/vte.c(vte_terminal_background_update): don't bother generating
a new pixmap or panning the pixbuf -- we can use the desaturated
pixbuf directly now (#111386).
* src/vte.c(vte_terminal_paint): use the drawing offsets because we
don't regenerate new background pixmaps when the window is moved.
* src/vte.c(vte_terminal_draw_cells): add jittered bold text back in,
fell out in the drawing overhaul (#111430).
2003-04-22 nalin
* src/iso2022.c(_vte_iso2022_fragment_input): account for valid CSI
sequences which were missed earlier.
2003-04-22 nalin
* src/vte.c(vte_terminal_eof): dispose of the PTY completely.
* src/vte.c(vte_terminal_child_exited): dispose of the PTY completely.
2003-04-22 nalin
* configure.in: add missing check for recvmsg.
* gnome-pty-helper/gnome-login-support.c: formatting and spelling fixes.
* gnome-pty-helper/gnome-login-support.c(n_read): reorganize.
* gnome-pty-helper/gnome-login-support.c(n_write): add.
* gnome-pty-helper/gnome-login-support.h: add prototype for n_write.
* gnome-pty-helper/gnome-pty-helper.c: only define the I_SENDFD version
of pass_fd() if I_SENDFD is defined, to clarify compile errors when it
isn't defined.
* src/pty.c(main): exercise session logging.
* src/pty.c(_vte_pty_open_with_helper): add more debug messages.
2003-04-22 nalin
* src/iso2022.c(_vte_iso2022_map_get): force visible widths to 2 columns
for CJK maps which use 2 bytes per character.
* src/iso2022.c(_vte_iso2022_fragment_input): recognize CSI/OSC/PM
sequences as control sequences and not raw text, allowing us to treat
them specially later.
* src/iso2022.c(process_control): pass CSI/OSC/PM sequences through
unmodified (without going through maps).
2003-04-22 nalin
* src/vte.c(vte_invalidate_cursor_once): don't bother doing anything if
we're fully obscured (related to #102703).
2003-04-22 nalin
* src/vteapp.c(main): stop messing with fontconfig's list of font
directories.
2003-04-22 nalin
* configure.in: rework link order so that xft2 is linked before anything
else. You're still screwed if you link with both xft1 and xft2 libs,
but maybe this'll help (#107285).
2003-04-22 nalin
* src/vteglyph.c: fix a couple of #errors.
* src/vte.c(vte_invalidate_cells): if the area we're invading is on the
edge, invalidate the edge as well.
* src/pty.c: implement and use wrappers for read and write which handle
EINTR and EAGAIN.
* src/vte.c(vte_terminal_scroll_region): don't use gdk_window_scroll if
the window is frozen for updates.
* src/vte.c(vte_terminal_sequence_handler_sf): when scrolling down while
we have a defined scrolling region, freeze the window to avoid flicker
when we update the scrolling offsets (#108058).
2003-04-21 nalin
* gnome-pty-helper/gnome-login-support.c(n_read): don't bail out if
read() returns -1 and errno is either EINTR or EAGAIN, candidate fix for
#107534.
2003-04-21 nalin
* src/vte.c(vte_terminal_io_read): add a couple of assertions here
just to be sure (#108066).
2003-04-21 nalin
* src/pty.c(_vte_pty_ptsname): don't depend on PATH_MAX being
available and correct (#109805).
* src/vte.c(vte_terminal_set_termcap): don't depend on PATH_MAX being
available and correct (#109805).
* src/vte.c(vte_terminal_io_read): fix signed/unsigned comparison
(#108066).
2003-04-21 nalin
* Makefile.am: add MESSAGE-OF-DOOM to EXTRA_DIST
* src/keymap.c: make Alt+Return generate ESC newline (#108863).
2003-04-21 nalin
* src/Makefile.am: drop unitable.KSC5601
* src/iso2022.c: fixup comment re: KS X 1001 (#107119).
* src/mkunitables.sh: add two characters from KS X 1001:1998 (#107119).
2003-04-21 nalin
* src/vte.c(vte_terminal_eof): don't try to process incoming data if
there isn't any (#110946).
* src/vtexft.c: mark a warning message for translation.
* src/vtegl.c: make the warning when glX isn't available debug-only.
2003-04-21 nalin
* src/vteglyph.c: use #if HAVE_DECL_XXX instead of #ifdef HAVE_DECL_XXX,
noted by Bob Doan.
2003-04-20 nalin
* src/vtexft.c: work around for garbled glyphs when drawing runs of
text using multiple fonts while mixing bitmap and antialiased fonts
2003-04-17 nalin
* src/vte.c: add missing prototype for vte_terminal_process_incoming().
2003-04-17 nalin
* src/vteglyph.c(_vte_glyph_get): quiet a compiler warning.
* src/iso2022.c: use KSX-1001 instead of KSC-5601 for Korean (#107119),
add maps for CNS 11643 planes 3,4,5,6,7 (can't test them, but hey).
Rework so that we get the data before it's passed to g_iconv(), and
return gunichars.
* src/interpret.c: adapt to changes in the iso2022 interfaces.
* src/vte.c: adapt to changes in the iso2022 interfaces.
* src/mkunitables.sh: add snippets for KSX 1001.
* src/iso2022.txt: add iso-2022-cn example text.
2003-04-17 nalin
* src/vte.c(vte_terminal_process_incoming): invalidate a larger
rectangle to fix behavior wrt openi18n assertion 2.
2003-04-16 nalin
* src/vte.c(vte_terminal_paint): fix logic error drawing the cursor
which caused ALTGR characters to always be used. Draw the preedit
string in the right location.
* src/vte.c(vte_invalidate_cursor_once): expose the visible width of
the preedit string, not its length.
2003-04-15 nalin
* src/vteaccess.c: fix broken debug message.
2003-04-15 nalin
* src/vte.c: make row_data a structure containing an array instead of a
simple array. Add a field to row data structures which tracks whether
or not we soft-wrapped from this line to the next one. Make use of the
field when copying text and selecting by "line" (#105189).
* src/reflect.c: put the label in a scrolled window to avoid mad loops
when we resize it to accomodate more text, which shrinks the terminal,
which removes text from the label, which resizes it to be smaller, which
gives the terminal more space, which adds text to the viewable area,
which requires a bigger label, and so on.
* src/vte.c: move vte_terminal_get_text_range logic into
vte_terminal_get_text_range_maybe_wrapped for internal use,
vte_terminal_get_text likewise.
2003-04-14 nalin
* src/vte.c: don't snap the beginning of selection to the next line in
select-by-line mode.
2003-04-14 nalin
* configure.in, src/vteglyph.c: fix macro invocations so that when
LCD and GRAY2/GRAY4 pixel modes are supported by freetype, we don't
get confused by them.
* src/vtepango.c, src/vtepangox.c: fix background scrolling.
2003-04-14 nalin
* autogen.sh: require automake 1.6, 1.5 chokes on AM_LDFLAGS, which 1.7
wants instead of LDFLAGS(!). Require autoconf 2.52 or newer, because
older versions bail on configure.in.
* configure.in: Check if ft_render_mode_mono, FT_RENDER_MODE_NORMAL,
FT_PIXEL_MODE_MONO, ft_pixel_mode_mono, FT_PIXEL_MODE_GRAY2,
FT_PIXEL_MODE_GRAY4, FT_PIXEL_MODE_GRAY, ft_pixel_mode_grays,
FT_PIXEL_MODE_LCD are declared.
* src/vte.c, src/vteapp.c, src/vtefc.c, src/vtepango.c: handle being
built with GTK+ 2.0 or 2.2.
* src/vtegl.c: disable for GTK+ < 2.2.0.
* src/vtepangox.c: use a PangoX context instead of a Pango context
when determining font metrics.
* src/vteglyph.c: handle the twisty maze of load and render options and
pixel modes various versions of freetype support.
2003-04-14 nalin
* configure.in: disable pangox, xft, glx drawing if run invoked with
the --without-x flag.
* vte.pc.in: include CFLAGS found by AC_PATH_XTRA when built with X.
* src/iso2022.c(_vte_iso2022_substitute_single): clean up and ensure
that ambiguous widths are respected.
* src/iso2022.c, src/iso2022.h: add _vte_iso2022_unichar_width().
* src/vte.c: remove old xft2/xft1/pango/pangox/core drawing code,
making draw the only supported method. Remove most dependencies on
gdkx and Xlib, except for root pixmap ID watching.
* src/vtedraw.c: only use pangox, xft if X_DISPLAY_MISSING is not
defined.
* src/vtedraw.c, src/vtedraw.h: add get_using_fontconfig() method.
* src/vte.c(vte_terminal_get_using_xft): use
_vte_draw_get_using_fontconfig(), which is what apps really want to
know when they call this function.
* src/vtegl.c: wrap in #ifndef X_DISPLAY_MISSING.
* src/vtepangox.c: wrap in #ifndef X_DISPLAY_MISSING.
* src/vtexft.c: wrap in #ifndef X_DISPLAY_MISSING.
* src/vteglyph.c(_vte_glyph_cache_set_description): use horizontal
advance instead of bitmap width when calculating display widths.
Rename to _vte_glyph_cache_set_font_description.
2003-04-09 nalin
* src/vte.c: add back some variables which are used after all.
2003-04-09 nalin
* configure.in: add specific checks for PangoX and glX.
* src/vteft2.c, src/vteft2.h: add drawing method using freetype and
GdkRGB.
* src/vteglyph.c, src/vteglyph.h: add.
* src/vtepangox.c, src/vtepangox.h: add drawing method using PangoX.
* src/vtergb.c, src/vtergb.h: add.
* src/vtegl.c, src/vtegl.h: add placeholder drawing method using
freetype and glX.
* src/Makefile.am: add newly-added source files to libvte.la target.
* src/vtedraw.c, src/vtedraw.h: add get_visual and get_colormap
methods so that drawing methods can override the default visual and
colormap. Rename get_text_base() to get_text_ascent(), which is more
correct. Remove scroll(), which would just wrap gdk_window_scroll().
* src/vte.c: fix logic for choosing alternate render methods when
VTE_USE_XFT is "0".
* src/vteapp.c: add -- option to stop parsing options with getopt.
* src/vtefc.c: fix incorrect DPI read due to type mismatch (#109513).
2003-03-31 Laurent Dhima <laurenti@alblinux.net>
* configure.in: Added "sq" to ALL_LINGUAS.
2003-03-26 nalin
* src/Makefile.am: specify AM_CFLAGS and AM_LDFLAGS instead of CFLAGS
and LDFLAGS so that automake 1.7 doesn't kick us to the curb
2003-03-13 Christian Rose <menthos@menthos.com>
* configure.in: Added "ml" to ALL_LINGUAS.
2003-03-07 nalin
* src/vte.c(vte_terminal_paint): adjust coordinates for the border when
clearing rectangles.
* src/vteskel.c, src/vteskel.h: add.
* src/vtedraw.c: use the skeleton drawing code.
2003-03-07 nalin
* src/vte.c(vte_terminal_visibility_notify): watch for Visibility
events.
* src/vte.c(vte_invalidate_cells,vte_invalidate_all): don't synthesize
an expose event if we're fully obscured, that's just silly.
2003-03-06 nalin
* src/vte.c, src/vte.h(vte_terminal_set_background_tint_color): take a
const GdkColor* instead of a non-const color.
2003-03-06 nalin
* python/vte.defs: regenerate.
* python/vte.override: update for vte_char_attributes rename.
2003-03-06 nalin
* src/vte.c, src/vte.h, src/vteaccess.c: rename struct
vte_char_attributes to VteCharAttributes, fixup some docs.
* doc/reference: finish up docs.
2003-03-05 nalin
* vte.pc.in: add FT2_LIBS and FT2_CFLAGS to our libs and cflags. Add
xft >= 2.0 and fontconfig as hard requirements.
2003-03-05 nalin
* src/vtedraw.c: don't spit out which rendering method we're using
except in debug mode.
2003-03-05 nalin
* src/vtepango.c, src/vtexft.c: don't print "Bogus font." when we think
the font metrics are screwy.
2003-03-05 nalin
* configure.in: require Xft2 and fontconfig, drop Xft1. Require
freetype2.
* src/Makefile.am, src/xticker.c: add xticker, useless but interesting.
* src/vte.c, src/vte.h: add vte_terminal_set_scroll_background() to
enable background scrolling (where supported by the drawing code).
* src/vteapp.c: set the tinting color to the default background color
to see what that's like. Add -s option to toggle scrolling backgrounds.
* src/vtefc.c, src/vtefc.h: add. For converting PangoFontDescriptions
to sorted lists of FcPatterns suitable for passing to XftFontOpenPattern
or FT_New_Face.
* src/vtedraw.c, src/vtedraw.h: add. New drawing layer.
* src/vtepango.c, src/vtepango.h: add. Drawing layer using Pango.
* src/vtexft.c, src/vtexft.h: add. Drawing layer using Xft2.
* src/vte.c: add render type VteRenderDraw for transitional period in
preparation for nuking other drawing code. Merge HAVE_XFT bits into
HAVE_XFT2 areas. Nuke Xft1-specific stuff. Move drawing of lines
and rectangles to dedicated functions. Always call vte_unichar_width()
instead of g_unichar_iswide().
2003-03-04 nalin
* src/vte.c(vte_sequence_handler_set_title_internal): fix swap of
one variable for another which prevented stripping of control chars,
spotted by Nam SungHyun.
2003-03-04 nalin
* src/vte.c(vte_terminal_insert_char): wrap properly when a scrolling
region is set (#107559).
2003-02-28 Takeshi AIHANA <aihana@gnome.gr.jp>
* po/ja.po: Added Japanese translations from gnome-2-2.
2003-02-26 nalin
* src/iso2022.c(_vte_iso2022_substitute,_vte_iso2022_substitute_single):
force characters substituted through the ACS map to have width of 1.
2003-02-26 nalin
* src/vte.c(vte_terminal_font_open_xft,vte_terminal_font_open_pango):
use an array of codepoints instead of a UTF-8 string so that we can
check for lack of font coverage in Xft fonts.
2003-02-26 nalin
* src/vte.c: formatting fixups.
2003-02-26 nalin
* src/vte.c(vte_terminal_font_open_xft,vte_terminal_font_open_pango):
patch from Jungshik Shin for detecting and handling fonts where ASCII
characters are double-width (#106618)
2003-02-26 Taneem Ahmed <taneem@eyetap.org>
* configure.in: Added "bn" to ALL_LINGUAS.
2003-02-25 nalin
* src/vteapp.c(main): take a shot at implementing xconsole-like
functionality when started with the -C flag: we open /dev/console and
TIOCCONS it, and just feed data to the widget until we lose ownership
of the MIT_CONSOLE_$(hostname) clipboard.
2003-02-25 Samúel Jón Gunnarsson <sammi@techattack.nu>
* configure.in: added "is" to ALL_LINGUAS.
2003-02-24 nalin
* src/vte.c(vte_sequence_handler_window_manipulation): don't report the
user-settable title and icon strings to applications, based on H D
Moore's "Terminal Emulator Security Issues" (CAN-2003-0070).
* src/vte.c(vte_sequence_handler_set_title_internal): strip out control
characters just to be on the safe side.
2003-02-24 nalin
* src/vte.c(vte_sequence_handler_decset_internal): home the cursor when
we switch to the alternate screen (#105075).
2003-02-23 Duarte Loreto <happyguy_pt@hotmail.com>
* configure.in: Added "pt" to ALL_LINGUAS.
2003-02-21 Metin Amiroff <metin@karegen.com>
* configure.in: Added az to ALL_LINGUAS.
2003-02-20 nalin
* src/keymap.c(_vte_keymap_map): in debug mode, skip coverage assertions
for specific keys (GDK_2 - GDK_8).
* src/keymap.c: remove unshifted entries for GDK_2 - GDK_8 (#106667)
2003-02-20 nalin
* src/vte.c(vte_terminal_im_commit,vte_terminal_paste_cb): stop
gratuitously resetting the IM context.
* src/vte.c(vte_terminal_process_incoming): correctly determine when
we have an IM context -- it should be iff we're realized.
* src/vte.c(vte_terminal_key_press/release): only filter keypresses
through the IM context if we're realized, otherwise it doesn't exist.
2003-02-20 nalin
* src/vte.c(vte_terminal_paint): reverse that last change -- don't
always assume proportional text.
* src/vte.c(vte_sequence_handler_ta): eliminate dead code.
2003-02-20 nalin
* src/vte.c(vte_terminal_draw_row): move the initial drawing x left
whenever we back up to a previous cell to avoid drawing fragments.
* src/vte.c(vte_terminal_paint): always assume non-monospaced text,
because the "missing glyph" glyph consistently looks screwy otherwise.
2003-02-20 nalin
* src/vte.c(vte_terminal_feed_child): don't reset the input method
here -- it may be in the middle of something (Red Hat #81542).
* src/vte.c(vte_terminal_im_commit): reset the input method when we
get text committed (Red Hat #81542).
2003-02-19 nalin
* src/vte.c(vte_terminal_focus_in,vte_terminal_focus_out): if we're not
currently realized, don't try to tell our IM context that our focus
state changed, because we don't have one. While we're at it, it's
silly to try to force the cursor to be drawn when we're not realized,
either.
* src/vte.c(vte_terminal_background_update): disconnect self, just in
case we were called directly while still queued, which would otherwise
leak the source, leading to potential problems later (Red Hat #84368).
2003-02-19 nalin
* src/vte.c(vte_terminal_scroll_window): use gdk_window_scroll if the
first row to be scrolled is the first visible row, not just if it's the
first row we ever saw (Red Hat #83472).
2003-02-19 nalin
* src/vte.c(vte_terminal_button_press): grab input focus on button 1
press (#106573, Red Hat #84384).
2003-02-19 nalin
* src/vte.c(vte_terminal_sequence_handler_bt): add missing chunk of
fix for backtab.
2003-02-19 nalin
* src/vte.c: turn on update debugging if VTE_DEBUG_FLAGS includes
"updates"
2003-02-19 nalin
* src/keymap.c: add map entries for unmodified digit keypresses.
2003-02-19 nalin
* src/vte.c(vte_terminal_match_add): use the default cursor by default,
so that we don't look weird to people who aren't used to the cursor
changing this way.
* configure.in: forcibly define VTE_DEBUG to "1" when we define it.
2003-02-19 nalin
* src/vteaccess.c: emit focus-event signals from the accessible peer
when the widget receives focus-in and focus-out events, noted by
Marc Mulcahy.
2003-02-18 Roozbeh Pournader <roozbeh@sharif.edu>
* configure.in: Added "fa" to ALL_LINGUAS.
2003-02-18 nalin
* src/vte.c, src/vte.h: add vte_terminal_match_set_cursor() (#105986).
2003-02-18 nalin
* src/Makefile.am: add @LDFLAGS@ to all of the LDADD clauses, hopefully
fixing #105415.
2003-02-17 nalin
* src/vte.c(vte_terminal_sequence_handler_cs): recognize and discard
invalid arguments (#57453).
2003-02-17 nalin
* src/keymap.c: add map entries for Ctrl+digit keys (#106193, Red Hat
#83563).
2003-02-17 Alessio Frusciante <algol@firenze.linux.it>
* configure.in: Added "it" (Italian) to ALL_LINGUAS.
2003-02-16 Dmitry G. Mastrukov <dmitry@taurussoft.org>
* configure.in: Added Belarusian to ALL_LINGUAS.
2003-02-14 nalin
* src/vte.c(vte_terminal_sequence_handler_bt): fix to move back to the
leftmost column if there are no previous tabstops, exercised by
make menuconfig.
2003-02-14 nalin
* src/vte.c(vte_terminal_background_update): handle pixbufs with
n_channels != 3.
2003-02-14 nalin
* src/interpret.c: handle width masks now that we're encoding widths for
all characters.
2003-02-14 nalin
* src/vte.c: more comments to keep myself from getting confused later.
2003-02-13 nalin
* src/vte.c: change the coalescing timeout to 2ms.
2003-02-13 nalin
* src/vte.c(vte_terminal_io_read): attempt to coalesce data received
within about 10ms to reduce load on the X server on systems where the
scheduler wakes us up as soon as we have a few bytes available. Based
on a suggested fix by msw.
* src/vte.c(vte_terminal_io_read): never free buf, it's not a heap
variable any more. Spotted by msw.
2003-02-12 nalin
* src/vte.c(vte_terminal_finalize): close fd leak.
* src/vte.c(vte_terminal_fork_command): close potential fd leak.
2003-02-12 nalin
* src/reflect.c(main): handle cases where the widget has no data and
returns NULL when we ask for it.
2003-02-12 nalin
* src/reflect.c(main): do a complete read of the widget before we
start off in main to ensure we have accurate data.
* src/vteaccess.c(vte_terminal_accessible_update_private_data_if_needed):
only attempt to free the previous snapshot if it existed.
2003-02-12 nalin
* src/reflect.c(main): connect to signals before any get emitted.
* src/vteaccess.c: use a GString to store snapshot text so that we
always have proper length information.
2003-02-12 nalin
* src/reflect.c(text_changed_delete): spit out a warning if we receive
an out-of-range text_changed::delete signal.
2003-02-11 nalin
* src/genwidths, src/uniwidths: add data for tracking ambiguous-width
Unicode characters.
* src/iso2022.c, src/iso2022.h: add _vte_iso2022_is_ambiguous() for
checking if a character is ambiguous, and _vte_iso2022_ambiguous_width()
for guessing how wide it should be based on the current locale. Rename
_vte_iso2022_get/set_width to ...encoded_width to clarify the intent,
ditto for the related macros.
* src/table.c,src/trie.c: use renamed macros for reading encoded widths.
* src/iso2022.c(_vte_iso2022_substitute_single,_vte_iso2022_substitute):
handle ambiguous widths properly, and always encode a width.
* src/Makefile.am: use the default LDFLAGS, I think.
* src/vte.c,src/vte.h: add vte_terminal_set_background_tint_color().
* src/vte.c(vte_terminal_unrealize): unhook from background update
sources, because we may not have a display after that.
* src/vte.c(vte_terminal_size_allocate): only queue a background update
if we're in transparent mode and either we've been moved or we have no
background yet. If our size changed, force a repaint.
* src/vte.c(vte_sequence_handler_window_manipulation): snip off the
padding along the edges when responding to requests for the window size
and location -- apps have no way to query it.
* src/vte.c(vte_terminal_get_text_range): skip over fragments properly.
* src/vte.c(vte_terminal_draw_row): skip over fragments properly.
* src/vte.c(vte_unichar_width): rework in terms of the width checking
in the iso2022 module for consistency.
2003-02-06 Christian Rose <menthos@menthos.com>
* configure.in: Added "id" to ALL_LINGUAS.
2003-02-03 nalin
* src/vte.c(vte_terminal_size_allocate): suppress background updates if
we haven't moved and the background image already exists (#104868).
2003-01-31 nalin
* src/vte.c(vte_terminal_get_accessible): keep a weak pointer to the
accessible peer instead of a static pointer (part of #104909).
* src/vte.c(vte_terminal_finalize): if the accessible peer still exists,
remove its weak pointer before attempting to unref it.
* src/vte.c: rename accessible_exists member to accessible_emit, which
more accurately reflects its purpose.
* src/vteaccess.c(vte_terminal_accessible_update_private_data_if_needed):
always update the cursor position, in case text was added or removed
without the cursor itself moving.
* src/vteaccess.c(vte_terminal_accessible_get_text_somewhere): don't
emit a warning when the caller attempts to read the Nth character when
we have 0 to N-1, just return an empty string.
* src/vteaccess.c(vte_terminal_accessible_new): make the terminal peer
a weak pointer (part of #104909).
* src/vteaccess.c(vte_terminal_accessible_finalize): if the terminal
peer is not NULL, disconnect it as a weak pointer and don't bother
disconnecting from its signals (part of #104909). Add a debug message.
* src/vteaccess.c(vte_terminal_accessible_text_finalize): Add a debug
message.
2003-01-31 nalin
* src/vte.c(vte_unichar_isgraphic): rename to vte_unichar_is_graphic,
to match conventions used elsewhere.
* src/vte.c(vte_unichar_is_graphic): count 0xa3, 0x3c0, 0x2592,
0x25ae, 0x25c6 as graphic characters.
* src/iso2022.txt: add sample text using character set 0.
2003-01-30 Fatih Demir <kabalak@gtranslator.org>
* configure.in: Added "tr" (Turkish) to the languages' list.
2003-01-30 nalin
* MESSAGE-OF-DOOM: added, for scaring people away.
* vte.spec: bump to 0.11.x for development.
* src/mev.c(main): reset modes before quitting.
* src/vte.c(vte_terminal_button_press): don't always extend selection
when not in event mode.
2003-01-28 nalin
* configure.in: make debugging support an explicit option to configure.
don't automatically enable debugging in maintainer mode.
2003-01-27 nalin
* src/vte.c(vte_terminal_realize): create the "invisible" cursor using
a bitmap instead of a pixmap, changing it from a 1x1 black square to
nothing.
2003-01-27 nalin
* src/vte.c(vte_terminal_decset_internal): make the various mouse event
modes mutually-exclusive, because apps expect them to be (#104395).
* src/vte.c: add a prototype for vte_terminal_background_update before
it is used to silence a compiler warning.
2003-01-27 nalin
* src/vte.c(vte_terminal_realize): force a background update immediately
when we realize instead of queuing it up (#104381).
2003-01-26 Daniel Yacob <locales@geez.org>
* configure.in: Added "am" to ALL_LINGUAS.
2003-01-24 nalin
* src/vte.c(vte_terminal_background_update): fix declaration order
(#13795).
2003-01-24 Nam SungHyun <namsh@kldp.org>
* configure.in: Added "ko" to ALL_LINGUAS.
2003-01-23 nalin
* src/caps.c, src/vte.c: recognize and ignore attempts to set text
properties 21 and 2L, whatever those are (possible workaround #104154).
2003-01-23 nalin
* src/iso2022.c: accept "1" and "2" as aliases for "B" (#104257).
2003-01-23 nalin
* configure.in: check for curses if we don't have ncurses (the order
is ncurses, curses, libtermcap), as Solaris has neither ncurses nor
libtermcap. Reported by Brian Cameron.
* src/keymap.c, src/ssfe.c: accept either curses or ncurses as
equivalent.
2003-01-22 nalin
* src/Makefile.am, src/mev.c: add mev.
* src/vte.c(vte_sequence_handler_clear_screen): don't home the cursor
automatically.
* src/vte.c(vte_terminal_button_pressed): fix sense of shift overriding
event mode. Ignore double- and triple-click in event mode.
* src/vte.c(vte_terminal_scroll): in event mode, send button release
events to the terminal if it's expecting them.
* src/vte.c(vte_terminal_send_mouse_button_internal): clamp coordinates
to existing cells.
* src/vte.c(vte_terminal_maybe_send_mouse_drag): compare integral cell
locations, not floating point, when choosing whether or not to drop
events in cell tracking mode. Don't lose the modifiers.
* src/vte.c(vte_terminal_motion_notify): don't autoscroll in events
mode.
2003-01-22 nalin
* src/caps.c: accept OSC{number};{string}ST as set-text-parameters,
per XTerm docs (part of #104154).
* src/keymap.c: revert change to prepend "1;" to keys with
modifiers (#104139).
2003-01-22 Christian Rose <menthos@menthos.com>
* configure.in: Added "mn" to ALL_LINGUAS.
2003-01-21 nalin
* src/vte.c: streamline background images and transparency handling,
should use less memory now.
2003-01-20 nalin
* src/reflect.c: add some debugging messages if REFLECT_VERBOSE is
set in the environment.
2003-01-20 nalin
* src/Makefile.am, src/reflect.c: add reflect-text-view, for testing
with GtkTextView for sanity's sake.
2003-01-20 nalin
* src/reflect.c: account for atk_text_get_text() being 0-clean.
2003-01-20 nalin
* configure.in, src/Makefile.am, src/reflect.c: try to build reflect
with both vte and libzvt, building a useless binary if libzvt isn't
available.
2003-01-20 nalin
* src/vte.c: colors 90-97 and 100-107 are bold colors, noted and patched
by Matthijs Melchior (#103874).
2003-01-19 He Qiangqiang <carton@linux.net.cn>
* configure.in: Added "zh_CN" (Simplified Chinese) to ALL_LINGUAS.
2003-01-19 Marius Andreiana <marius galuna.ro>
* configure.in: added 'ro' to ALL_LINGUAS
2003-01-18 nalin
* src/vteaccess.c(update_private_data_if_needed): if the caret is past
the end of the text, count unichars properly. Compute the caret
location correctly.
* src/reflect.c: handle text-caret-moved signals and display the caret.
2003-01-18 nalin
* src/iso2022.c: update copyright dates.
* src/reflect.c: add.
* src/Makefile.am: add reflect (noinst).
* src/vteaccess.c(vte_terminal_accessible_get_text): always return a
string, even if it's zero-length. Properly detect and handle requests
that go right up to the last byte.
2003-01-18 Andras Timar <timar@gnome.hu>
* configure.in: Added "hu" to ALL_LINGUAS.
2003-01-17 nalin
* src/vte.c(vte_terminal_set_size): emit a "text-modified" signal,
because what you see changes when you resize the terminal.
2003-01-17 nalin
* src/vte.c(vte_terminal_paint): don't draw cursors below or above the
screen, correctly compute the clear area when drawing the cursor,
if we're ignoring padding in general because we're monospaced, also
ignore it when drawing the character under the cursor.
* src/vte.c(vte_terminal_io_read): eliminate dead code.
2003-01-17 nalin
* src/keymap.c(_vte_keymap_map): if we don't find an entry for the
requested key, and the terminal type is "xterm", retry using
"xterm-xfree86", possible fix for #103713.
* src/vte.c(vte_terminal_draw_row): fix handling of items with
width != 1 when computing runs.
2003-01-17 nalin
* src/iso2022.c: fix boneheaded "config.h" instead of "../config.h"
include, pointed out by Dan Mills and Brian Cameron.
2003-01-16 nalin
* configure.in: fix test for whether or not we need to check for termcap
* src/Makefile.am: override default includes to not prepend "." to the
include path, so that we can include the system <termcap.h> properly
* src/keymap.c: define the ncurses scratch buffer for use when we're
using termcap
2003-01-16 nalin
* configure.in: actually disable attempts to build python bindings if
pygtk-2.0 isn't found (#103676)
2003-01-14 nalin
* src/keymap.c(_vte_keymap_key_add_key_modifiers): if a key sequence
which needs modifiers doesn't have a numeric part, add "1" as the
numeric part before adding the modifiers. Spotted by msw.
2003-01-13 nalin
* src/ring.c, src/ring.h: add _vte_ring_insert_preserve(), which
scrolls lost items off the top instead of the bottom, as
_vte_ring_insert() does.
* src/slowcat.c (catfile): check that we didn't read an EOF before
attempting to write it. Skip the more complicated checks and just
check that the file pointer isn't stdin before closing it.
* src/ssfe.c: cleanups.
* src/vte.c(vte_sequence_handler_sf): add lines to the scrollback area
when scrolling is restricted but the top line of the area is the
topmost visible line (Red Hat #75900).
2003-01-13 nalin
* src/nativeecho.c, src/utf8echo.c: don't switch terminal modes before
or after echoing bytes -- doing so confuses me now.
* src/vte.c: make use of '?' to mark invalid data a compile-time define.
* src/vteaccess.c(vte_terminal_accessible_text_scrolled): properly
handle scrolling events with delta less than the window size (more
of #95901).
* src/vteaccess.c(vte_terminal_accessible_finalize): disconnect
from text-inserted, text-deleted, text-modified, text-scrolled,
cursor-moved, window-title-changed on finalize.
* src/vte.c(vte_terminal_key_press,vte_terminal_key_release,
vte_terminal_button_press,vte_terminal_button_release,
vte_terminal_motion_notify,vte_terminal_focus_in,vte_terminal_focus_out,
vte_terminal_scroll): track event modifiers in an object-local modifier
variable.
* src/vte.c(vte_terminal_key_press): always steal key events from the
input method if the meta key is down (#96006). Don't munge the cursor
or keypad modes before passing them to the keymapping routines. Stop
overriding the cursor mode on NumLock (doesn't appear to work as
documented in other terminals, needed to modify the keymap mode anyway
(#96364)).
* configure.in: define HAVE_XFT whenever HAVE_XFT2 is defined -- they're
more or less compatible (#103130).
2003-01-10 Abel Cheung <maddog@linux.org.hk>
* configure.in: Added "zh_TW" to ALL_LINGUAS.
2003-01-10 Dmitry G. Mastrukov <dmitry@taurussoft.org>
* configure.in: Added Russian to ALL_LINGUAS.
2003-01-09 nalin
* configure.in: disable the python bindings if we can't find python,
from Brian Cameron.
2003-01-09 nalin
* src/vte.c: don't just skip reading data if selection is in progress --
we wedge if we do that (#101739). Instead, temporarily stop reading
from the child pty.
* src/vte.c(vte_terminal_open_font_xft): if we get NULL when matching
fonts, use the desired pattern's name when displaying an error,
preventing a NULL dereference (#96769).
* configure.in: make building of python modules depend on configure
having been run with --enable-python. make --enable-python the default.
Fix an indentation error in the version check which chokes Python 2.2.2.
* src/vte.h, src/vte.c: add new signals to VteTerminalClass (NOTE: may
break ABI, so might as well add some padding)
* src/vteaccess.c: be more precise about locations in text_changed
signals (part of #95901)
* src/vte.c: get more selective about when we consider it necessary to
emit text-insert and text-delete events.
2003-01-07 nalin
* src/vte.c(vte_terminal_key_press): Only suppress meta-sends-escape on
Backspace if backspace is mapped to the delete sequence. (#100635)
2003-01-07 nalin
* src/vte.c(vte_terminal_setup_background): Use a lookup table
instead of a mess of floating point math when desaturating images.
2003-01-06 nalin
* src/vte.c(vte_terminal_init): Add the periodic blinking refresh
with the normal timeout instead of 0 to avoid wedging when we get
created without focus. Fix suggested by Dennis Haney (#102701).
2003-01-06 nalin
* src/vte.c: Use a simple XftPatternGetString/GetDouble pair instead
of XftNameUnparse, which isn't in older versions of Xft (#101142).
* src/vte.c: Add a flag to VteTerminalPrivate which we can use to keep
track of modifications, particularly if they remove text, and toggle
it in several sequence handlers.
* src/vte.c(vte_terminal_process_incoming): Also emit the "contents
changed" signal when the modified flag is TRUE, not enough to fix
#95901, but at least making some forward progress.
2003-01-05 Pauli Virtanen <pauli.virtanen@hut.fi>
* configure.in (ALL_LINGUAS): Added "fi" (Finnish).
2003-01-04 Stanislav Visnovsky <visnovsky@nenya.ms.mff.cuni.cz>
* configure.in: (ALL_LINGUAS) Added sk (Slovak).
* po/sk.po: Added Slovak translation.
2003-01-02 nalin
* configure.in: look for libncurses or libtermcap
* vte.pc.in: include other libraries (ncurses, termcap, socket,
whatever) in the list of libraries.
* src/keymap.c(_vte_keymap_map): for Home and End, consult libncurses
or libtermcap if we have no hard-wired mapping and there's none in the
termcap file. Should fix #100472, even in cases where Home and End
vary wildly from what I've got on my box.
* src/keymap.c: rename cursor/fkey_normal to cursor/fkey_default,
which makes a little more sense.
2003-01-02 Zbigniew Chyla <cyba@gnome.pl>
* configure.in: (ALL_LINGUAS) Added pl (Polish).
2002-12-22 Artis Trops <hornet@navigator.lv>
* configure.in: Added Latvian (lv) to ALL_LINGUAS.
2002-12-19 Yanko Kaneti <yaneti@declera.com>
* configure.in: (ALL_LINGUAS) Added Bulgarian (bg).
2002-12-18 nalin
* configure.in: complain if Xft2 and Xft aren't found.
* src/vte.c (vte_terminal_paint): if we're not double-buffered, clear
the drawing area before we draw text.
* src/vteapp.c: add -2 to toggle double-buffering.
2002-12-16 nalin
* src/vte.c (vte_terminal_key_press): wire Shift+Home/Shift+End to
scroll-to-top and scroll-to-bottom.
2002-12-13 nalin
* src/buffer.c: add a short test program.
* src/iso2022.c: use hard values instead of GDK defines in the 0 map.
Add _vte_iso2022_substitute_single() for performing a single mapping
operation.
* src/vte.c: use _vte_iso2022_substitute_single() instead of a local
mapping table when mapping line-drawing charset data, simplifies
maintenance of the mapping.
2002-12-12 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in: Added Catalan (ca), Spanish (es)
and Hebrew (he) to ALL_LINGUAS
2002-12-11 nalin
* configure.in: define VTE_USE_GNOME_PTY_HELPER if use of the helper
is enabled at compile-time (enabled by default).
* src/iso2022.c(_vte_iso2022_substitute): force characters received in
the line-drawing map to have width = 1 (more #99603), so that we can
distinguish them from line-drawing characters received in eucXX, which
have width = 2.
* src/vte.c(vte_terminal_insert_char): when mapping from line-drawing
to gunichars, force a width of 1.
* src/vte.c(vte_terminal_process_incoming): extend the bounding box
for updates one cell further to the right, in case the cursor is in
a cell which contains a wide character.
* src/pty.c(_vte_pty_start_helper): spit out a warning if the helper
isn't installed.
* src/pty.c: don't compile in any gnome-pty-helper-specific code if
VTE_USE_GNOME_PTY_HELPER isn't defined.
2002-12-10 nalin
* src/buffer.c, src/buffer.h: centralize buffer length sanity checks,
add some utility functions for stuffing things into buffers and pulling
them back out.
* src/debug.c, src/debug.h: add a lifecycle debug class, for tracking
down initialization order weirdness.
* src/pty.c: try to check that we can run the pty helper before
trying to run it, to avoid SIGPIPE failures when it's not installed.
* src/vte.c: never grab focus -- let the shell app deal with it.
Return TRUE from mouse motion and press/release events to keep them
from being passed up. (#101089)
2002-12-09 nalin
* configure.in: add "uk" to the list of languages.
* src/vte.h: remove the alternate attribute bit -- it's no longer
meaningful.
* python/vte.override: remove the alternate attribute, add the
strikethrough attribute.
* src/vte.c (vte_terminal_insert_char): perform drawing character set
to Unicode mapping at insertion time if the alternate attribute is set,
otherwise discarding the attribute. If the character being inserted is
a graphic character, force its width to 1 or 2 depending on the current
codeset (#99603).
* src/vte.c (xlfd_from_pango_font_description): take advantage of
XftXlfdParse if we were built with Xft, as it appears to handle family
aliases.
* src/vte.c (vte_terminal_draw_graphic): decide what to draw using
Unicode code points (instead of reverse mappings to drawing set), and
implement the double-thick versions of many of the existing glyphs.
Return a boolean indicating whether or not we drew something.
* src/vte.c (vte_terminal_draw_row): if vte_terminal_draw_graphic()
returns FALSE, try to draw the graphic character using the current font.
* src/vte.c (vte_terminal_paint): if vte_terminal_draw_graphic()
returns FALSE, try to draw the graphic character using the current font.
* src/caps.c: add the undocumented default 0 to the OSC set text
parameters sequence (#100468).
2002-12-03 nalin
* README: updates.
* src/iso2022.c, src/iso2022.h: add a width mask for overriding widths
for ambiguous Unicode characters, and _vte_iso2022_get_width() for
reading the width, using unused bits in Unicode in a manner similar to
http://www.cl.cam.ac.uk/~mgk25/ucs/iso2022-wc.html
* src/table.c,src/trie.c: strip out iso2022 widths when extracting
parameters of control sequences.
* src/vte.c: heed iso2022 widths when inserting characters into the
screen buffer, but clear then before storing them so that copy and
paste will continue to work.
* src/matcher.c, src/matcher.h: add matcher, a wrapper for table and
trie, and move _vte_table_narrow_encoding and _vte_table_wide_encoding
to this module.
2002-12-03 nalin
* src/pty.c: if TIOCSCTTY is defined, use it, even if it's redundant.
2002-12-02 nalin
* po: update-po
* src/utf8echo.c: change the default from resetting to the terminal's
default encoding before exiting to leaving it alone. Don't mess with
the terminal's encoding if stdout isn't connected to a terminal.
* src/nativeecho.c: add, for printing random bytes.
2002-12-02 nalin
* src/vte.c: don't zero-fill rows, space-fill them.
* src/vte.c(vte_terminal_is_word_char): Don't just fail if the
word_chars array doesn't exist.
2002-12-02 nalin
* acinclude.m4: add AC_CHECK_CC_OPT from ac-archive.
* configure.in: check for cfmakeraw, sys/select.h, compiler support
for -std= (#99698)
* doc/boxes.txt: change reference to online Docbook reference to the
charts at the Unicode web site.
* src/dumpkeys.c: make a best-effort at making a terminal raw on systems
where cfmakeraw() isn't available, from patch by Brian Cameron. Wait
for up to 1/50 of a second for more bytes we'll consider to be part of
a sequence.
* src/pty.c(getpt): ensure that the new terminal is opened in non-
blocking mode.
* src/trie.c: use g_unichar_digit_value() instead of subtracting '0'.
* src/vte.c: don't declare the xft_textitem member on non-Xft2 systems,
because it uses an Xft2-specific type (#99685).
* src/vteapp.c: add $pkgdatadir/fonts to the font path for testing.
2002-11-25 nalin
* src/vte.c: fix mapping of Unicode code chars 0x252c and 0x2534 which
incorrectly mixed them up (#99474).
* src/iso2022.c: fix mapping of 'v' and 'w' from special graphics to
Unicode, which masked the above bug.
2002-11-25 nalin
* src/vte.c: fix cd() to clear using the current colors.
2002-11-25 nalin
* termcaps/xterm: add ta back in -- it's not a key sequence.
2002-11-25 nalin
* src/vte.c: fix cd() to clear to the right of the cursor on the current
line instead of the entire line (#98844).
2002-11-25 nalin
* src/vte.c: add keyboard debug messages when we change keyboard modes.
* termcaps/xterm: remove kh definition.
2002-11-25 nalin
* src/keymap.c: make keypad arrow keys follow cursor mode (#98604).
2002-11-25 nalin
* src/keymap.c: sort out when we add modifiers to keys (#98094). Fix
Alt+Tab.
* termcaps/xterm: remove ta definition.
2002-11-25 nalin
* src/debug.c, src/debug.h: add keyboard debugging class.
* src/dumpkeys.c: refresh on Ctrl-L, reset on 'r'.
* src/keymap.c, src/keymap.h: add more setting combinations, and a
simplistic check for more complete coverage.
* src/vte.c: add debug messages for keyboard handling. Improve
detection of invalid coordinates as a signal that no text is selected
or hilited (#98946).
* termcaps/xterm.baseline: add a baseline copy of xterm from my termcap,
so that I can diff it more easily.
* termcaps/xterm: remove key definitions -- xterm's way more complicated
than the capability strings suggest.
2002-11-22 nalin
* configure.in: incorporate more correct check for the right version of
gtk-doc (#99314).
2002-11-15 Hasbullah BIn Pit <sebol@ikhlas.com>
* configure.in: Added "ms" to ALL_LINGUAS.
2002-11-11 nalin
* src/vte.c: ensure that when we select by line, we include all of the
last line, even if it's past the edge of the screen. Snap selection to
the beginning or end of a line when selecting lines which don't exist.
Only strip off whitespace if there's nothing but whitespace to the right
of the selection. Chuck the non-wrapping selection code.
2002-11-11 nalin
* src/vte.c: properly set the "selecting" flag again when we start
selection (#97923).
2002-11-11 nalin
* src/vte.c: rework selection so that word- and line-based selection
can wrap like XTerm does (#97057,#97719).
2002-11-07 nalin
* src/vte.h: doc fixes.
* src/dumpkeys.c: use the older alternate-screen decset value.
* src/vte.c: fixup screwups on extending selection (#97118).
2002-11-05 nalin
* src/vte.c: handle end-of-line selection correctly. Stop highlighting
selection on click, but don't lose it until new text is selected
(#97117).
* python/vte.override: fix binding for set_colors() to properly take a
list of colors for the palette (#97682).
* src/vte.c, src/vte.h: add increase-font-size and decrease-font-size
to allow mimicking XTerm's behavior on Shift/Control+KP_Add/KP_Subtract
* src/vteapp.c: handle increase-font-size and decrease-font-size.
2002-11-05 Abi Brady <morwen@evilmagic.org>
* src/vte.c: Add and implement the strikethrough attribute.
Change underline to be drawn using the ascent, rather than
arbritarily putting it two lines above the bottom of the
charcell - looks much better with large fonts.
2002-11-04 nalin
* NEWS: be more verbose.
* README: add more items to the TODO list so that I don't forget them.
* src/vte.c: ifdef out some of the selection code.
2002-10-30 nalin
* src/buffer.c, src/iso2022.c, src/vteaccess.c: add ident tags.
* src/vte.c: don't scroll-to-bottom if we're selecting (#97923).
2002-10-30 nalin
* src/vteapp.c: implement iconify, deiconify, raise, lower, maximize,
restore, refresh, resize, and move signals.
* src/vte.c: add vte_terminal_match_remove().
* src/vte.c (vte_sequence_handler_cb): clear the current column in
addition to columns to the left, spotted by Sam Varshavchik.
* src/vte.c: Use g_array_set_size() to clear arrays instead of
removing each element. Properly initialize new columns with just the
default colors and not other attributes (#96978).
* src/vte.c (vte_sequence_handler_ta): revert to non-overwriting tabs,
otherwise we got occasional drawing artifacts.
2002-10-30 Abi Brady <morwen@evilmagic.org>
* src/vte.c, src/vte.h : Support dim (halfbright) colours. All the
infrastructure for this was here already (apart from making sure bold
and half are mutually exclusive). Add API set_color_dim, and let
set_colors take a palette of size 24.
2002-10-29 Abi Brady <morwen@evilmagic.org>
* src/iso2022.c (_vte_iso2022_map_[J4]): Map to UCS, not keysyms.
(which differ > 0xff).
2002-10-28 Abi Brady <morwen@evilmagic.org>
* src/vte.c: Add line-drawing representation for full block. Draw
U+23BA-23BD. Fix drawing of U+23BD (scan line 9) and U+2592
(checkerboard) to use bottom line of the charcell, not the top line of
the one below.
* src/iso2022.c: Complete DEC Special Graphics to Unicode map.
2002-10-25 nalin
* src/vte.c (vte_terminal_match_check_internal): snip off final
newlines when we're matching, they're usually not wanted.
2002-10-24 nalin
* src/pty.c, src/pty.h: replace the simpler pty_open() function with
a logging version, adding the ability to specify a startup directory
(Red Hat #76529).
* src/vte.c, src/vte.h: replace the simpler fork_command() function with
a logging version, adding the ability to specify a startup directory
(Red Hat #76529).
* src/vteapp.c: modify call to handle new fork_command().
* python/vte.defs: update as above.
* python/vte.override: modify call to handle new fork_command(), adding
an optional "directory" argument.
2002-10-23 nalin
* src/vte.c: refactor the selection code, cleaning up when selection is
cleared/started/extended (#95783).
2002-10-22 nalin
* src/vte.c: rework how wide characters are stored to allow storing
tabs (#95958).
2002-10-21 nalin
* python/vte.override: wrap vte_terminal_get_text() and
vte_terminal_get_text_range(). Based on patch from ha shao (#96230).
2002-10-21 nalin
* src/vte.c, src/vte.h: add a user pointer argument to get_text
callbacks (#96230).
* src/Makefile.am: bump shared library version because we changed
a public function's signature. Take the opportunity to replace padding
fields which had previously been used up.
2002-10-21 jacob berkman <jacob@ximian.com>
* src/Makefile.am (EXTRA_DIST): include decset, osc, and window
2002-10-18 nalin
* src/iso2022.c: use character constants instead of hex constants.
* src/iso2022.txt: add more illustrations.
* src/decset: scriptlet to save some typing.
* src/vte.c: zero-terminate window and icon title strings again.
* src/decset, src/osc, src/window: add.
2002-10-18 nalin
* src/keymap.c: add a mapping for the escape key.
2002-10-18 nalin
* src/vte.c: implement decset 42 (enable/disable NRC processing), but
enable it by default. Implement decset 44 (margin bell).
* src/vte.c: do not trust the event->string. Use gdk_keyval_to_unicode
and the built-in keymapping to cope with the weirdness. Extend the
range of characters we controlify from 0x40-0x60 to 0x40-0x7f so that
lower-case ascii chars controlify (not a word, I know).
* src/keymap.c: add map entries for GDK_Return and GDK_KP_Enter for
GDK_CONTROL_MASK = cr, normal = lf.
2002-10-18 nalin
* src/vte.c: make sure that strings passed to a commit signal are zero-
terminated (#96131).
* python/Makefile.am: install the module in site-packages instead of a
subdirectory, which doesn't work on my system.
2002-10-17 nalin
* src/vte.c: remove vte_terminal_update_scroll_delta, which only did
things vte_terminal_adjust_adjustments already did and was only called
immediately after. Fill newly-added lines with the current attributes
if the current background isn't the default color (Red Hat #73853).
Implement ignored DECSET settings, so that we don't mistakenly complain
about settings not being implemented yet when we actually just want to
ignore them.
* vte.spec: 0.9.2
2002-10-17 nalin
* src/vte.c: force the first cursor redraw after focus-in to always be
in the foreground color (Red Hat #75908).
2002-10-17 nalin
* src/vte.c (vte_terminal_insert_char): force invalidation mode if
we're in insert mode to get the entire line redrawn. Spotted by msw.
2002-10-17 nalin
* configure.in: clean up tests for wint_t. Patch from Brian Cameron.
2002-10-17 nalin
* src/pty.c: close a possible race on systems where pty initialization
requires more than just opening the pty (for example, Solaris). Spotted
by Brian Cameron.
* src/utf8echo.c: don't reset to iso-8859-1 unless -r is used.
2002-10-16 nalin
* src/vte.c: remove a bogus assertion for a case which we were already
handling a little further down (incorrectly triggered by autowrap).
2002-10-16 nalin
* src/vte.c: adjust our adjustments whenever a line might scroll off
the top of the buffer. Fix computation of the new insertion delta to
ensure that it never goes below the scroll delta, which should fix the
resizing crashes (#94509, #95187, Red Hat #75871), and add some debug
assertions to verify this.
* configure.in, python/Makefile.am: build the python bindings as a
library, not a binary with wacky ldflags.
2002-10-15 nalin
* src/vte.c: don't try to close the pty at finalize time if we didn't
open it. Patch from ha shao.
* src/keymap.c, src/keymap.h: move the addition of modifiers into a
separate function. Add the function key strings from terminfo for
fkey_sun and fkey_hp cases. Make control+F1 = F13 only in vt220 mode.
* src/vte.c: apply modifiers to function keys in normal and legacy
modes.
2002-10-14 nalin
* src/vte.c: add super-bogus bold text mode (Red Hat #74779).
2002-10-14 nalin
* src/caps.c: recognize CSI-r (with no arguments) as resetting the
scrolling region in XTerm emulation (Red Hat #75902).
2002-10-14 nalin
* src/keymap.c: add mappings for GDK_Page_Up and GDK_Page_Down,
missed in the conversion.
* src/vte.c: steal GDK_KP_{Add,Subtract,Multiply,Divide} from the
input methods (Red Hat #75207).
2002-10-14 nalin
* configure.in: more $pkglibdir -> $libexecdir fixing.
* doc/Makefile.am: add rules for generating ps and text versions of the
ctlseqs docs.
* doc/reference/tmpl/vte.sgml: add snippet for "commit".
* python/python/vte.defs: update to add a binding for
vte_terminal_fork_logged_command().
* src/buffer.h: add a warning comment that these are private interfaces.
Wrap declarations in G_BEGIN_DECLS/G_END_DECLS.
* src/caps.h: add macros for the SS2/SS3 sequences.
* src/marshal.list: add a marshaller for the "commit" signal.
* src/keymap.c, src/keymap.h: move the getting-more-convoluted
keypress-handling code to a shell that parses tables of static info.
* src/vte.c: use the keymap for most non-printable keys. Add a "commit"
signal to allow an app to just use the terminal for displaying data and
grabbing input (missing functionality noted by ha shao). Obey the
application's desired meta-sends-escape setting. Recognize HP function
key mode. Recognize and handle legacy XTerm function key mode. Force
a redraw if the child application tries to switch to 80/132 columns,
even though we don't usually let them succeed. Don't try to send
keystrokes to the child pty when there is no child pty. Don't convert
final whitespace to newlines when copying text (Red Hat #74611).
* python/cat.py: test program for running without a command.
* termcaps/xterm: change the definitions for ku/kd/kl/kr to match
XTerm in normal cursor mode instead of application cursor mode.
2002-10-11 nalin
* src/vte.c: properly distinguish cursor key mode and keypad key mode,
obey application mode for cursor keys (#92941).
* src/pty.c: reset signal handlers before exec() (Red Hat #75341).
2002-10-11 nalin
* src/trie.c: change the typedef of wint_t here to match vte.c (now
a gunichar instead of a long). Spotted by Brian Cameron.
2002-10-11 Brian Cameron <Brian.Cameron@sun.com>
* configure.in: Changed to that wchar.h is included when checking for
wint_t on Solaris. This was needed because on Solaris wint_t is defined
to be a long, and in vte.c its definition was recently changed to be a
gunichar. This caused the compile to break on Solaris.
2002-10-10 nalin
* configure.in, src/pty.c, gnome-pty-helper/Makefile.am: fix the bits
I missed when fixing #95085.
2002-10-10 nalin
* src/vteapp.c, python/vte-demo.py: allow specifying the scrollback
buffer size.
* src/vte.c: if we don't have wint_t, typedef wint_t as a gunichar,
not a long.
2002-10-09 nalin
* src/buffer.c, src/buffer.h: add.
* src/interpret.c, src/vte.c: use _vte_buffer structures instead of
char arrays with separate lengths. Use a scratch buffer for holding
the results of conversions.
* src/vte.c: separate the pango and pangox drawing paths so that they're
easier to tweak and compare to each other.
* src/vte.c: ditch the smooth scrolling change, which won't work right
anyway (expose events don't get processed until after we finish
processing a chunk of data unless we explicitly request it, so using a
bbox is both simpler and faster). Use a mask when creating the cursor
we use for hiding the cursor.
2002-10-09 nalin
* vte.spec, gnome-pty-helper/Makefile.am: install gnome-pty-helper into
the libexecdir, not pkglibdir (#95085).
* src/vte.c: obey smooth/jump scrolling options, default is jump scroll.
Mon Oct 7 14:53:12 2002 Owen Taylor <otaylor@redhat.com>
* src/vte.c (vte_font_match): Fix over-aggressive
Xft => Fc conversion - need to call XftDefaultSubstitute to pick up Xft
X resources, not FcDefaultSubstitute.
2002-10-01 Stanislav Brabec <sbrabec@suse.cz>
* configure.in: Added cs to ALL_LINGUAS.
2002-09-24 nalin
* src/vte.c(vte_terminal_set_word_chars,vte_terminal_is_word_char):
if the list of word characters is NULL or zero-length, try to guess
with (g_unichar_isgraph() && !g_unichar_ispunct()), which seems to
produce reasonable results (#77134).
2002-09-24 nalin
* gnome-pty-helper/acinclude.m4: Fix HAVE_UT_UT_TV for cases where
the static initializer might not work right (#93774, patch from
Kalpesh Shah).
2002-09-24 nalin
* README, gnome-pty-helper/README: Doc fixups (mention gnome-terminal
instead of profterm, note the proper permissions for gnome-pty-helper,
#84505).
2002-09-20 nalin
* src/ring.c: Fix a ring-buffer manipulation bug (Red Hat #74290) which
might cause a new item to be inserted in the wrong location.
2002-09-19 nalin
* src/interpret.c: Munge input data the way the terminal does so that
conversion failures don't wedge us.
2002-09-19 Brian Cameron <Brian.Cameron@sun.com>
* src/vte.c: Backed out scrolldelay patches from 09-17 and 09-18 at
Nalin's request. Left in the patch which allows programs which
update the screen non-linearly like lynx to work properly.
2002-09-18 Brian Cameron <Brian.Cameron@sun.com>
* src/vte.c: Corrected a problem with yesterday's patch. I am now
properly calling g_source_remove on the scroll_delay timeout
function. This prevents VTE from core dumping if you start up
more than one VTE gnome-terminal and exit from one of them. Also
made the vte_scroll_timeout function a little cleaner by using
the VTE_IS_TERMINAL macro.
2002-09-17 Brian Cameron <Brian.Cameron@sun.com>
* src/vte.c: Fixed bug with my 09/11 speedup fix which caused programs
that update the screen non-linearly like lynx to update incorrectly.
Also included a speed improvement which delays the scroll-down for
70ms. Too fast to be noticeable to the user, but it speeds up VTE
greatly.
2002-09-13 nalin
* src/pty.c: Fix typo which broke builds on systems where MSG_NOSIGNAL
is defined.
2002-09-12 Brian Cameron <Brian.Cameron@sun.com>
* configure.in : Added -lsocket to LIBS if socket is in libsocket,
so VTE will compile on Solaris.
2002-09-12 jacob berkman <jacob@ximian.com>
* src/pty.c: only use MSG_NOSIGNAL if it's defined
* gnome-pty-helper/gnome-pty-helper.c (struct pty_info): remove
master_fd and slave_fd fields
(shutdown_pty): don't close master/slave fd's here...
(pty_add): don't take master/slave fd args
(open_ptys): ...close master/slave fd's right after passing them
this fixes a hang after closing a window on os x, not sure why...
* gnome-pty-helper/Makefile.am (install-exec-hook): remove
trailing / after $DESTDIR
* configure.in: AC_CHECK_FUNC() doesn't do AC_DEFINE(HAVE_FOO), so
do that for socket() and socketpair() if they are found
2002-09-12 nalin
* src/vte.c(vte_invalidate_cursor_once): Remove the invalidate_cells
parameter, because the function is a big no-op if FALSE, in which case
we should just not call it instead. (vte_terminal_process_incoming):
refresh the right number of rows after processing a block of data.
2002-09-12 Brian Cameron <Brian.Cameron@sun.com>
* src/vte.c Fixed minor error with my previous patch. This just makes
a warning go away.
2002-09-11 nalin
* src/pty.c: Reorder definitions to avoid implicit declaration warnings.
* configure.in: Check for socketpair(). Check for socket() in libc
before poking around in libsocket.
* gnome-pty-helper/configure.in: Check for openpty() in libutil as well,
and do so before we check for other functions.
2002-09-11 nalin
* configure.in, gnome-pty-helper/cofnigure.in: Test for sendmsg() with
AC_CHECK_FUNCS instead of AC_TRY_COMPILE.
* acconfig.h: Removed.
* src/pty.c: Formatting.
2002-09-11 Brian Cameron <Brian.Cameron@sun.com>
* configure.in: Added check for socket library and SendMsg
check.
* acconfig.h: Added this file with a HAVE_SENDMSG definition.
* gnome-pty-helper/configure.in: Added checks needed for the
source code, including the SendMsg check.
* src/pty.c: Corrected _vte_pty_pipe_open so it works on
Solaris.
*src/vte.c: Made some speed improvements so vte_invalidate_cells
is not called for every character in the while loop in
vte_process_incoming, but only once when the while loop is done.
2002-09-11 nalin
* gnome-pty-helper: Update from libzvt CVS.
* python/Makefile.am: Fix some automake breakage.
2002-09-11 nalin
* python/Makefile.am: Fix my broken merge of Jacob's patch to make
inability to build python modules non-fatal.
2002-09-11 nalin
* src/vte.c: Skip lookups for padding information if we're pretty sure
we're using a monospaced font.
2002-09-10 nalin
* src/vte.c: Fix from Brian Cameron for uninitialized GError in
vte_wc_from_unichar().
* src/interpret.c, src/iso2022.c, src/pty.c, src/ring.h, src/table.c,
src/table.h, src/trie.c, src/vte.c, src/vteaccess.c: Signed/unsigned
int/size_t/gsize and pointer typecast warning fixes from Brian Cameron.
* src/vte.c: Avoid invalidating the cursor in the cursor blink
timeout unless we have focus.
2002-09-10 Jacob Berkman <jacob@ximian.com>
* configure.in (ALL_LINGUAS: remove es until the file really gets
added. also it wasn't added alphabetically
2002-09-10 Pablo Gonzalo del Campo <pablodc@bigfoot.com>
* configure.in: Added "es" to ALL_LINGUAS
2002-09-10 nalin
* src/pty.c, src/pty.h: Add vte_pty_close() and
vte_pty_open_with_logging(), breaking the ABI.
* src/vte.c, src/vte.h: Add vte_terminal_fork_logged_command(), breaking
the ABI.
* gnome-pty-helper/*: Swallow the pty helper bits of gnome-libs,
but install into $pkglibdir instead of $sbindir so that existing
packages don't suddenly start breaking.
* src/termcap.c(_vte_termcap_find_string_length): Fix signature to
match the declaration in termcap.h. From patch by Jacob Berkman.
2002-09-06 nalin
* configure.in: Add $X_PRE_LIBS to the front of $X_LIBS, -lX11 and
$X_EXTRA_LIBS to the end of $X_LIBS. Remove some cruftiness and set
CPPFLAGS when checking for Xft. Check for the existence of wchar.h,
because it might not exist. Use an automake conditional to make
compilation of the Python bindings non-critical. From patch by
Jacob Berkman.
* src/pty.c: Silence compiler warning when exec() fails. From patch
by Jacob Berkman.
* src/interpret.c, src/vte.c: Stop including langinfo.h since we don't
call nl_langinfo() any more. Adapted from patch by Jacob Berkman.
* src/caps.c: Fill in a couple of missing initializers.
* src/vte.c, src/vte.h: Add accessor functions for use in language
bindings.
* python/vte.defs: Add defs for the new accessor functions.
* python/vte-demo.py: Add a scrollbar to the sample window, handle
more of the options the C version handles. Stop expecting additional
arguments with a signal that doesn't include any.
* python/Makefile.am: We only have one target, so don't bother with
target-specific primaries if we can avoid it (#92252).
* vte.pc.in: Note build dependencies on ATK, Pango, and PangoX.
2002-09-05 nalin
* src/caps.c, src/caps.h, src/debug.c, src/debug.h, src/interpret.c,
src/iso2022.c, src/iso2022.h, src/pty.c, src/reaper.c, src/ring.c,
src/ring.h, src/table.c, src/table.h, src/termcap.c, src/termcap.h,
src/trie.c, src/trie.h, src/utf8echo.c, src/vte.c, src/vteaccess.c,
src/vteapp.c: prefix library-internal interfaces with underscores so
that gtk-doc doesn't guess they're public.
* src/vte.c: return FALSE from focus-in/focus-out/expose handlers.
2002-09-05 nalin
* src/caps.h, src/debug.h, src/iso2022.h, src/marshal.h, src/ring.h,
src/table.h, src/termcap.h, src/trie.h: add giant warnings about how
these headers define library-internal interfaces.
* vte.spec: 0.8.18
2002-09-05 nalin
* docs/reference: first pass at writing documentation
* src/termcap.c: fix how'd-that-ever-work in vte_termcap_strip(), patch
from Brian Cameron. Take \\e as an alias for \\E, which is already
an alias for Escape.
* src/vte.c(vte_terminal_get_cursor): Return an absolute cursor position
instead of a relative position.
2002-09-04 jacob berkman <jacob@ximian.com>
* src/vte.c (vte_default_substitute): only compile the FC_HINT_STYLE
part if FC_HINT_STYLE is defined
2002-09-04 nalin
* src/vte.c: Add missing <fontconfig/fontconfig.h> include for Xft2,
spotted by Jacob Berkman.
2002-09-04 Brian Cameron <Brian.Cameron@sun.com>
* src/vte.c: Avoid double color deallocations with Xft.
* configure.in: Added stropts.h check for Solaris.
* src/vte.c: Do not send data to the slave if the length is zero.
Some shells on Solaris do not handle this well.
* src/pty.c: Added ptem/ldterm/ttcompat ioctls so VTE will work
on Solaris.
2002-09-03 nalin
* src/vte.c: Avoid double color deallocations with Xft.
2002-09-03 nalin
* src/vte.c: Handle color allocation failures with Xft better.
* src/vte.h: Clean up typedef declarations.
2002-09-03 nalin
* src/marshal.list, src/reaper.c, src/reaper.h, src/vte.c: Modify the
child-exited signal to pass a signed int and an unmodified exit status,
allowing the callback to check for normal/abnormal exit status.
2002-09-02 nalin
* src/vte.c: Don't send zero-length strings to the child -- it may not
be able to cope properly. Spotted by Brian Cameron.
2002-08-30 nalin
* src/vte.c: Handle cursor exposes correctly for multicolumn characters,
no matter which cell the cursor is in. Fix autoscrolling boundary
checks for when allocation.y != 0.
2002-08-30 nalin
* src/vte.c(vte_terminal_insert_char): Wrap correctly to avoid screwing
up multicolumn characters.
2002-08-30 nalin
* src/vte.c: Get smarter about when it's necessary to start messing
with our adjustments (Red Hat #73091). Change the way we clear the
screen so that all of the contents of the current screen become
scrollback data.
2002-08-30 nalin
* src/vte.c: Register VteTerminalEraseBinding with GObject as an
enumerated type.
* python/vte.defs: Update.
* python/vte.overrides: Ignore vte_terminal_get_text_range().
2002-08-30 nalin
* src/vte.c: Restore the focus-in/focus-out handlers -- the defaults
don't quite DTRT for us because they miss our im_context (#72946). When
setting the cursor location for the input method, make the Y coordinate
relative to the window, not the scrollback buffer. When resizing the
scrollback buffer, clamp the cursor to the set of possible locations,
not the visible locations.
2002-08-30 nalin
* src/vte.c: Initialize the pty master fd to -1 to avoid spurious
window resizes on fd 0.
* src/debug.c, src/debug.h: Add a "pty" debug message class.
2002-08-30 nalin
* src/iso2022.c: Fix a how'd-that-ever-work bug (not returning anything
from vte_iso2022_new()), spotted by Brian Cameron.
* configure.in: Use -Wall when building with gcc in maintainer mode.
* src/interpret.c, src/ring.h, src/table.c, src/trie.c, src/vte.c,
src/vteaccess.c: Warning cleanups.
2002-08-29 nalin
* src/vte.c: Clean up bookkeeping for mouse autoscrolling and adjustment
change notifications. Reset the scrolling and insertion deltas when
clearing the history.
* src/interpret.c: Don't dump data on incomplete conversion errors,
which we're going to retry anyway.
* src/iso2022.txt: Add iso-2022-kr examples (no workee -- uses GR).
2002-08-28 nalin
* src/vte.c, src/vte.h: Add vte_terminal_copy_primary and
vte_terminal_paste_primary(), because I really want to let
profterm decide default values for key bindings.
2002-08-28 Gustavo Noronha Silva <kov@debian.org>
* configure.in (ALL_LINGUAS): added pt_BR
2002-08-27 nalin
* src/vte.c: Stop autoscrolling on button release.
2002-08-27 nalin
* src/vte.c: When autoscrolling, clamp the new boundary to what the user
can see.
2002-08-27 nalin
* src/vte.c: Implement autoscroll (Red Hat #70481).
2002-08-27 nalin
* src/vte.c: Only perform cr-lf substitutions when pasting text, not
when inputting from a live user (Red Hat #72639). Bind GDK_ISO_Left_Tab
to kB. Formatting changes.
* termcaps/xterm: Bind kB to back-tab (Red Hat #70340).
2002-08-27 nalin
* src/vte.c: Don't tamper with the scrolling offsets -- they're updated
when we handle adjustment_changed notifications. Scroll instead of just
moving the cursor down when soft-wrapping to the next line. Avoid
emitting adjustment_changed when only the value has changed, likewise
for the value and the other fields of the adjustment.
2002-08-27 nalin
* src/vte.c: Keep cursor position and scrolling offsets from going
wonky when you resize, especially on the alternate screen. Suppress
duplicate adjustment_changed notifications.
* src/vteapp.c: Set the MIN_SIZE geometry hints so that we can resize
to unreasonably-small dimensions.
* src/ring.c, src/ring.h: Add vte_ring_new_with_delta().
2002-08-26 nalin
* src/vte.c: Add padding spaces after full lines as well -- spotted by
both notting and pjones.
2002-08-26 nalin
* src/vte.c: Don't deadlock when substitution fails, spotted by msw.
2002-08-26 nalin
* src/vte.c: If GDK_USE_XFT is set, check the value of GDK_USE_XFT, not
VTE_USE_XFT. Spotted by hp.
2002-08-25 nalin
* src/vte.c: Heed the reverse-video setting when painting character
cells again. Make selection and matching coordinates global, fixing
the selecting-while-scrolling case. Prevent overdraws into the padding
area on the right.
2002-08-25 nalin
* src/vte.c: Make nd() move right but not wrap -- according to Strang
it's undefined, but xterm doesn't wrap it. Separate do/DO from sf/SF
and up/UP from sr/SR, because the scrolling behavior is supposed to be
different. Add support for decset/decreset 7 (wraparound mode) and
1051 (Sun keyboard). Add support for DECALN. Remove some type checks
from run-time which the compiler can catch with certainty.
2002-08-25 Kjartan Maraas <kmaraas@gnome.org>
* configure.in: Added Norwegian (no) to ALL_LINGUAS.
2002-08-25 Pablo Saratxaga <pablo@mandrakesoft.com>
* configure.in: Added Vietnamese (vi) to ALL_LINGUAS
2002-08-22 nalin
* src/caps.c: Bind ENQ to "return-terminal-status".
* src/iso2022.c: Fix an off-by-one which incorrectly triggered an
assertion.
* src/vte.c: Implement send-primary/secondary-device-attributes. Bind
shift+insert to "paste PRIMARY". Guard against NULL window/icon title
when telling the child app what they are. Prevent DO(), up(), and UP()
from scrolling.
2002-08-22 nalin
* src/vteapp.c: Set geometry hints using the initial font setup.
2002-08-22 nalin
* src/vte.c, src/vte.h: Make use of the visible bell a separate option
from use of the audible bell, allowing both/neither to be used. Open
fonts right away again -- profterm reads the metrics right after calling
set_font(), so we have to open fonts ASAP. Rework the Xft/Pango/Xlib
decision code to be more consistent. Watch for style changes and reset
our font to the new style's font when we're already using the old
style's font.
2002-08-21 nalin
* src/iso2022.c(vte_iso2022_substitute): Take a vte_table as an
additional argument, and don't mess with text that's part of a control
sequence, even if it's in shifted-out text.
* src/table.c(vte_table_match): Speed up for the no-arguments-requested
case, which just became much more common.
2002-08-21 nalin
* src/vte.c(vte_terminal_draw_rows): Cap the maximum number of
characters we draw in a single call to vte_terminal_draw_cells at a
reasonable number.
2002-08-21 nalin
* src/table.c: Don't overwrite the original pattern pointers before
freeing the old value.
* src/vte.c: Use the same pango context whenever possible, to save on
PangoX startup time.
2002-08-20 nalin
* src/vte.c: Unref the output channel one more time when we're done
sending data to the child. Free the background data GDK property when
we're finished with it. Don't retrieve the pango context when drawing
unless Xft has already been disabled. Don't try to use the pango layout
to draw unless it's valid. Don't try to use the XftDraw item to draw
unless it's valid.
2002-08-20 nalin
* src/vte.c: Dispose of the updated substitution context properly when
processing blocks of input text. Spotted by Arjan van de Ven.
2002-08-20 nalin
* src/ring.c: Debug when rows get freed.
* src/vte.c: Maybe-release pango contexts after unreffing layouts which
refer to them. Decide on how we want to draw fonts before deciding
which fonts to draw, to avoid spurious font loading. Remove output tags
when the output tag's callback is about to return FALSE.
2002-08-20 nalin
* src/vte.c: Don't leak the hintstyle and rgba settings. Patch from
Arjan van de Ven. Free PangoX contexts when we're done with them,
spotted by Arjan van de Ven.
2002-08-19 nalin
* src/vte.c: Load fonts just-in-time to avoid spurious reloads. Don't
override the focus_in and focus_out event handlers -- the defaults DTRT.
* src/debug.c, src/debug.h: Add a RING debug class.
2002-08-19 nalin
* src/iso2022.c: Handle override maps which don't affect the font
palette correctly, resetting at newlines and escape marks. Process
bogon data correctly.
* src/iso2022.txt: Add some sample text.
2002-08-19 nalin
* src/vte.c: Fixup some fontconfig/Xft mixups. Set the hint style
instead of hinting when reading the GTK hint style setting (spotted
by katzj and otaylor).
2002-08-19 nalin
* src/vte.h, src/vte.c: Use gssize instead of ssize_t. Perform
substitutions while processing. Use PangoX contexts when we're using
the PangoX fontmap and when doing PangoX rendering.
2002-08-19 nalin
* src/mkunitables.sh,src/unitable.*: Add.
* src/iso2022.c, src/iso2022.h: Use unitables.
* src/caps.c: Remove sequences for designating character sets. Switch
to using a second passed-in buffer for storing results in case the
caller doesn't want substitutions done in-place.
* src/debug.c, src/debug.h: Add a substitution debug flag.
* src/interpret.c: Perform substitution.
* src/table.c, src/table.h: Use gssize instead of ssize_t.
* src/termcap.c, src/termcap.h: Use gssize instead of ssize_t.
* src/utf8echo.c: Use strtol, allowing users to specify code points in
hex format.
2002-08-14 nalin
* src/vte.c(vte_terminal_configure_toplevel): repaint the entire window
to ensure that any overdraw area we're not paying attention to at least
gets cleared to the background.
* src/vte.c(vte_terminal_locale_encoding): don't try to second-guess
the local encoding, just use the current charset as returned by
g_get_charset().
2002-08-14 nalin
* src/vte.c(vte_terminal_reset): drop pending incoming data on reset.
* src/vte.c: give reprocessing of pending input data a higher priority
than reading it from the child to prevent backlogs on corrupt or invalid
multibyte data from building up and whacking us exponentially.
2002-08-13 nalin
* src/vte.c(vte_sequence_handler_delete_lines): initialize lines added
to the current default colors. Spotted by jrb.
* src/vte.c(vte_terminal_set_font): don't try to pick up GTK Xft
settings unless we're using FontConfig. Patch from otaylor.
2002-08-11 nalin
* src/vte.c: reorder set/reset processing for decset so that 1049
properly represents the combination of 1047 and 1048 (#90027).
2002-08-11 nalin
* src/caps.c: properly escape a sequence which had a bare '%' in it.
2002-08-11 nalin
* src/vte.c: change Xft-related defaults match whichever version of GTK
we were built with (hopefully).
2002-08-11 nalin
* src/vte.c: don't bother with cursor blinking or freezing/thawing
updates when the widget isn't realized. Patch from Gustavo Giráldez.
2002-08-08 nalin
* src/vte.c: take extra steps to make sure that the cursor doesn't go
back into negative scrollback space.
2002-08-08 nalin
* src/vte.c(vte_terminal_invalidate_all): rewrite.
2002-08-08 nalin
* src/vte.c(vte_terminal_paint,vte_terminal_draw_cells): fill in the
background color when drawing the cursor, even if it's going to end up
as the default background color, spotted by Peter Jones. Draw the
cursor correctly if it's over a graphic character.
2002-08-07 nalin
* src/vte.c(vte_terminal_draw_cells): once again, avoid drawing NULs.
* src/vte.c: add a small pad to each edge (#89048).
* src/vteapp.c: handle widget padding.
2002-08-07 nalin
* src/interpret.c: look for $pkgdatadir/termcap/$TERM first, as the
widget does, before consulting /etc/termcap.
* src/ring.c(vte_ring_free): check for a non-NULL removal function
before calling it.
* src/vte.c(vte_terminal_key_press): add an option for doing
VT220-style or Sun/PC-style modified function keys. Default to VT220
for now, though, pending feedback.
* src/vte.c(vte_terminal_reset): scroll to the bottom when resetting.
2002-08-07 nalin
* src/vte.c(vte_terminal_draw_cells): don't trust XftDrawString32() to
advance linearly for monospaced fonts (#90164).
2002-08-07 nalin
* src/vte.c(vte_terminal_reset): reset the default setting as well
(#89506).
2002-08-07 nalin
* src/vte.c(vte_terminal_draw_cells): perform Xft remapping for Xft1,
switch back to PangoX.
2002-08-06 nalin
* src/vte.c(vte_terminal_set_encoding,
vte_sequence_handler_local_charset): use g_get_charset() instead of
nl_langinfo() to determine the default codeset, and to check if it's
UTF-8. Patch from Hidetoshi Tajima.
* src/vte.c(vte_terminal_set_encoding): don't leak conversion
descriptors when changing the encoding fails. Patch from Hidetoshi
Tajima.
* src/vte.c(vte_terminal_send): don't read past the converted string
when performing paste substitutions.
* src/vte.c: rework the straight-Pango rendering routines to call
normal Pango instead of PangoX.
* src/vte.c(vte_terminal_ensure_cursor): speed up the "add many cells"
case a bit.
2002-08-05 nalin
* src/vte.c(vte_cell_is_between): sort the two endpoints correctly and
provide a boolean to control whether or not the endpoint is "in".
* src/vte.c(vte_cell_draw_rows): check if a cell is selected using
the right indicator.
* src/vte.c(vte_terminal_get_text): when adding a newline to the end
of a returned line, don't show it as being in the rightmost column.
* src/vte.c(xlfd_from_pango_font_description): turn the DPI, pixel size,
and added info into wildcards.
* src/vte.c(vte_terminal_draw_cells): go back to drawing individual
cells when using Xlib.
* src/vte.c: Compute right-side padding as well as left.
* src/vte.c(vte_terminal_init): disable use of PangoX by default.
* src/vteapp.c: add -D to add the same patterns profterm does to test
dingus hiliting.
2002-08-03 Havoc Pennington <hp@redhat.com>
* src/vte.c (vte_terminal_setup_background): add a gdk_flush()
before the error trap pop, just for paranoia, may help with
#89049
2002-08-02 nalin
* src/vte.c(vte_terminal_send): Substitute carriage returns for
newlines when pasting text to the child, fixing weird paste behavior
in pico and friends.
2002-08-02 Christophe Merlet <christophe@merlet.net>
* configure.in: Added fr to ALL_LINGUAS.
2002-08-01 nalin
* src/pty.c, src/pty.h: Expose vte_pty_set_size() and get_size() to
localize terminal ioctl usage.
* src/ring.c(vte_ring_validate): Don't repeatedly compute the same
value when we know it won't change.
* src/vte.c(vte_wc_from_unichar): Implement for the non-STDC_ISO_10646
case, heavily based on patch from Hidetoshi Tajima.
* src/vte.c(vte_terminal_ensure_cursor): Don't initialize the local
data unless we have to.
* src/vte.c(vte_terminal_process_incoming): Don't insert NUL characters
into the display, matching behavior of xterm.
* src/vte.c: Clean up use of various G_PRIORITY values throughout to
allow for simpler tuning. Rewrite rendering code to use per-paint
PangoLayouts when they're needed, use Xft2's DrawCharSpec function when
available, and to cut down on X requests. Don't paint on expose events
if the window isn't realized, drawable, and at least partially visible.
Don't deselect previous selection when the user clicks unless there's
also a drag first.
2002-07-31 nalin
* src/pty.c: Include <termios.h> if available, per patch from Hidetoshi
Tajima.
* src/trie.c: Include missing <wchar.h>, spotted by Hidetoshi Tajima.
* src/vte.c: Initialize new lines created in insert_lines() to the
current default attributes like al() does.
2002-07-30 nalin
* configure.in: Check for wint_t and attempt to allow compiles even
when wint_t isn't defined (this type is used only debug code, so it
shouldn't break anything).
* src/caps.c: Remove "te" and "ti", which are logical, in the same way
"so" is, from the known capabilities lists. Add a "is a key" field to
the termcap list so that we don't match against keystrokes in case
they're also control sequences.
* src/interpret.c: Use tables instead of tries. Don't add key sequences
to the table.
* src/pty.c: Fix incorrect invocation in sample.
* src/reaper.c: Include stdlib.h to quiet compiler warning.
* src/trie.c, src/trie.h: Remove the unused precomputing routines.
* src/utf8echo.c: Switch to link with tables instead of tries.
* src/vte.c: Switch to using tables instead of tries. Map
cursor-backward to LE instead of le, which handles parameters right.
Don't add key sequences to the parsing table. Tune updates so that
they occur less often when we're processing large amounts of data from
the child. Add a 'status-line-changed' signal. Implement fs() and
fix ts(). Add ::get_status_line() to get the contents of the status
line. Obey it() when setting default tabstops. Implement
cursor_next_line(), cursor_lower_left(), cursor_preceding_line(),
cursor_horizontal_and_vertical_position(), erase_characters(), and
insert_blank_characters(). Implement nw().
2002-07-26 nalin
* src/vte.c: Initialize new lines added for al(). Spotted by jrb.
2002-07-25 Ole Laursen <olau@hardworking.dk>
* configure.in: Added Danish translation.
2002-07-25 nalin
* README: Note that bold isn't broken any more.
* termcaps/xterm: Note that k; was added.
* src/pty.c: Set the proper number of columns in the window size.
* src/ring.h: Change macro argument names to hopefully not step on
application code.
* src/vte.c: Set the terminal size to the default size as specified in
termcap at init-time.
2002-07-24 nalin
* src/pty.c: Add private vte_pty_set_size() function.
* src/pty.c, src/pty.h: vte_pty_open() takes size arguments now.
* src/vte.c: Open the PTY with the proper initial size.
2002-07-23 nalin
* src/ring.c, ring.h: Expose the ring implementation and convert several
simple functions into macros.
* src/vteapp.c: Pass all long options on to gtk_init().
2002-07-23 nalin
* src/vte.c: Fix realize/unrealize to be properly reversible. Use the
font from the default style unless we're explicitly given one.
* src/vteapp.c: Don't set base size or minimum size geometry hints when
sizing the terminal widget.
2002-07-22 nalin
* src/pty.c(vte_pty_ptsname): Fix an incorrect logic check.
2002-07-19 nalin
* src/vte.c(vte_terminal_set_color_internal): If we're changing the
background color, apply it to the widget's window as well, from msw.
2002-07-19 nalin
* src/vte.c: Undo the scrolling changes -- there too many combinations
of circumstances that cause them to not work right.
2002-07-18 nalin
* src/vte.c: Fudge the repaint line count by one when scrolling regions
to ensure that the old cursor gets repainted. Calculate the area which
needs to be repainted when reverse-scrolling correctly.
2002-07-18 nalin
* src/vte.c: Implement enough of set-mode and reset-mode to allow
toggling of insert mode using this sequence. Move all scrolling into
vte_terminal_scroll_region and use gdk_draw_drawable to avoid repainting
from scratch whenever possible.
2002-07-17 nalin
* configure.in: Actually set ALL_LINGUAS so translations get installed.
* README: Document the weirdness that is cursor movement around wide
characters.
* src/vte.defs: Bind set_color_bold().
* src/debug.c: Suppress warnings when $VTE_DEBUG_FLAGS isn't set.
* src/pty.c, src/reaper.c, src/termcap.c, src/trie.c: Provide for
debug messages in the test program.
* src/interpret.c, src/trie.c: Use libc stdio instead of g_print for
printing what might be part of a multibyte sequence because g_print
checks for validity.
* src/interpret.c, src/trie.c, src/utf8echo.c, src/vte.c: Use gunichar
instead of wchar_t in places where a gunichar is expected. Provide a
means for converting from wchar_t to gunichar for the sake of X11 calls
which want a wchar_t.
* src/trie.c: Provide vte_trie_wide_encoding() for finding a giconv
target which is hopefully compatible with gunichar. Likewise provide
vte_trie_narrow_encoding() to find one compatible with iso-8859-1.
* src/vte.c: Fall back to ISO-8859-1 if we can't set things up for the
current locale encoding at startup time. Fall back to the current
encoding if we can't perform a given dynamic switch.
2002-07-16 nalin
* configure.in: Set GETTEXT_PACKAGE correctly, noted by menthos.
2002-07-16 nalin
* src/vte.c (vte_terminal_set_colors): Guess at an appropriate bold
version of the foreground color instead of hard-coding in a default.
* src/vte.c, src/vte.h (vte_terminal_set_color_bold): Add.
2002-07-16 nalin
* src/trie.c: Correctly check for g_iconv_open() failure.
* src/vte.c (vte_terminal_set_encoding): Try to give a meaningful
error when g_iconv_open() fails, even though we're screwed.
2002-07-15 nalin
* src/vte.c: wrap the new Xft/fontconfig-specific code in HAVE_XFT
* src/vte.c: Revert some changes in how new cells were initialized,
removing various cosmetic problems.
* src/vte.c (vte_terminal_process_incoming): Discard the proper number
of characters when we don't recognize a sequence, previously we left
one byte that should have been removed.
2002-07-14 Havoc Pennington <hp@pobox.com>
* src/vte.c (vte_terminal_get_cursor_position): decrement spaces
as we go through the loop, it was nice and infinite.
2002-07-13 nalin
* src/vte.c (vte_terminal_get_text): Add the proper number of attribute
structs to the attribute array to fix crashes which occurred when the
buffer contains non-ASCII text (Red Hat #67930).
2002-07-12 nalin
* src/vte.c: Small optimization in the al() and dl() handlers. al()
doesn't move the cursor, per GNU termcap docs. Check for a pixbuf in
the bgfx check instead of pixmap, which was the wrong type.
2002-07-12 nalin
* src/vte.c: Add patch to heed Xft/fontconfig settings as kept by GTK.
Based on patch from otaylor.
2002-07-12 nalin
* src/slowcat.c: Added.
* src/vteapp.c: Add -a/-b flags to control audible bell and blinking
cursors. Only send "pwd" as an initial command if there wasn't a
command specified on the command line. Add a simple help message.
* src/vte.c: Bind F13-F35 per termcap. Treat GDK_KP_Delete as
GDK_Delete. Map Ctrl+F1-F12 to F13-F24. Fix dc() to ensure that the
rows stays full and that newly-added cells get the default attributes.
Fix cl() to clear all rows on the screen with the default attributes
(bce). Default to using Xft if available for consistency with GTK.
2002-07-11 nalin
* src/vte.c: Treat super, hyper, meta, and alt as modifiers when
deciding to scroll-on-keypress. Noted by jrb.
* src/vte.c: Always map \r and \n to cr and so, even when they're
defined by the termcap.
* src/vte.c, src/vte.h: Rework how default colors are set up, and add
vte_terminal_set_color_foreground and vte_terminal_set_color_background.
* src/vte.h: Remove includes for local headers which apps are not
likely to never use, cleaning up the namespace a little.
* python/vte.defs: Bind vte_terminal_set_color_{fore,back}ground.
* src/debug.h, src/ring.h: Use G_BEGIN_DECLS/G_END_DECLS.
* src/reaper.h: Use G_BEGIN_DECLS/G_END_DECLS in the right place.
* src/vteapp.c: Add -B/-T flags to set background images and
transparency.
2002-07-02 nalin
* src/vte.c: Make shift+button1 extend selection.
2002-07-01 nalin
* src/vte.c (vte_terminal_draw_char): Draw unicode line-drawing code
points natively as we do for the GR1 support, in case the current font
doesn't include glyphs for them.
* src/vte.c: Test for g_iconv_open() failure properly (compare result
to ((GIConv)-1), not NULL).
* src/vte.c: Rework recovery from illegal sequence errors in the input
stream to be much more aggressive about it.
2002-06-25 nalin
* src/vte.c: Bind F10 to "k;", not "k0".
* termcaps/xterm: Add "k;" defined as F10.
2002-06-25 nalin
* src/vte.c (vte_terminal_reset_rowdata): Check for redundant resizes.
* src/vte.c (vte_terminal_set_scrollback_lines): Keep the alternate
screen buffer size the same as the window height, because xterm's
alternate screen doesn't backscroll.
* src/vte.c (vte_terminal_get_text): Don't append spaces to multicolumn
characters when reading the screen's contents.
* src/vte.c: Don't overexpose neighboring cells any more. Cleanups.
* src/ring.h, src/ring.c: Add vte_ring_max() to read a ring's maximum
size.
2002-06-24 nalin
* src/vte.c (vte_sequence_handler_decset_internal): Treat option 1049
as a combination of 1047 and 1048.
* src/vte.c (vte_terminal_finalize): When finalizing while holding the
selection, throw the selection onto the clipboard without an owner so
that it doesn't just disappear.
2002-06-19 nalin
* src/vte.c (vte_sequence_handler_set_title_int): Fix a logic bug
that got rid of the title always, not just when conversion failed.
2002-06-19 nalin
* src/vte.c: Clear the alternate screen when switching to it.
2002-06-18 nalin
* src/vte.c: Fix refs/derefs with IOChannels and sources. Clean up
I/O GIConv descriptors at finalize-time.
2002-06-18 nalin
* src/vte.c: Make cursor_visible a widget-wide (not per-screen) setting.
2002-06-18 nalin
* autogen.sh: Correct automake version check to require 1.5, heads
up from Glynn Foster.
2002-06-18 nalin
* src/trie.c (vte_trie_match, vte_trie_match_x): Sort out greedy vs.
non-greedy pattern matching.
* src/vte.c (vte_sequence_handler_decset_internal): Make 1047 an alias
for 47 (use alternate buffer), and handle cursor save/restore properly.
2002-06-14 nalin
* src/vte.c, src/vte.h (vte_terminal_fork_command): Add a parameter for
passing in environment variables to add.
* src/termcap.c: Preprocess out unused comment() and generate() funcs.
* src/Makefile.am: Bump library version number.
* vte.spec: 0.4.0
2002-06-14 nalin
* configure.in, python/Makefile.am: Handle cases where pygtk isn't
installed in the prefix we're configuring for.
* src/Makefile.am: Link libvte to its library dependencies.
2002-06-13 nalin
* src/vteaccess.c: Stop watching for hierarchy-changed signals -- the
accessible container which is our parent handles it already (from msw).
2002-06-13 nalin
* src/vteaccess.c: Re-read cursor position immediately on "cursor-moved"
events, and emit the "text-caret-moved" signal then as well. Don't
override the signal handlers for signals we emit, bad things can
happen (from msw).
2002-06-12 nalin
* src/vte.c: Re-read the termcap when we change emulation, because
the location of the file may have changed.
* src/reaper.c: Also tell the parent the child died when the child
dies due to an uncaught signal.
* python/vte.override (_wrap_vte_terminal_fork_command): Handle default
value for the command.
2002-06-12 msw
* python/vte.override (_wrap_vte_terminal_fork_command): implement
2002-06-12 msw
* acinclude.m4: added AM_CHECK_PYTHON_HEADERS from pygtk
* configure.in: rewrote python checks to be more robust
* python/Makefile.am (CFLAGS): include @PYTHON_INCLUDES@
2002-06-12 msw
* src/vte.c (vte_terminal_get_accessible): turn the logic around
to be the right way
2002-06-12 nalin
* src/vte.c: Cache the result of vte_terminal_get_accessible() and
unref it at finalize-time. Add debug messages to log signals emitted
by the widget. Implement vte_terminal_get_encoding and
vte_terminal_get_emulation, emit signals when these change.
* src/vteaccess.c: Emit a "text_caret_moved" signal when the cursor
moves.
* configure.in, src/Makefile.am: Add rules for building python modules.
2002-06-12 msw
* src/vteaccess.c (vte_terminal_accessible_get_text): accept
end_offset of -1, which means "until the end".
* src/vteaccess.c (vte_terminal_accessible_new): never set the
description to a NULL pointer
2002-06-10 nalin
* Makefile.am, configure.in: Include gettext support.
* src/vte.c, src/vte.h: Expose vte_terminal_set_encoding().
* src/vte.c: Finish merging otaylor's Xft2 patch (oops). Compute
padding correctly.
* src/pty.c, src/reaper.c, src/trie.c, src/vte.c: Mark warnings for
possible translation.
2002-06-07 nalin
* src/vte.c: Center characters in their cells, caching their extents.
2002-06-06 nalin
* src/vte.c, src/vte.h: Add get_cursor_position(). Remove get_snapshot()
and free_shapshot().
* src/vte.c: Fix a logic bug that caused us to scroll to the bottom
even if the user just pressed and released a modifier key. Fix saving
of the font in set_font() in most cases, where we weren't saving the
new font before. Scroll-to-bottom on input method commits, which are
also the result of keystrokes, when scroll-on-keystroke is enabled.
* src/vteaccess.c: Rework to use get_text() and get_cursor_position()
instead of get_snapshot(), so that selection and accessibility both
agree on what's visible (or "visible").
2002-06-05 nalin
* configure.in: Check for pangoxft with Xft1 or Xft2, hopefully getting
things right for either case. Originally from patch by andersca.
* src/reaper.c, src/reaper.h: Add a singleton object to watch for
SIGCHLD when child processes quit.
* src/vte.c: Emit a "child-exited" signal when a child started with
fork_command() exits.
* src/vte.c: Make a better guess at font metrics when using Xft by
measuring the extents for a string of representative characters.
* src/vte.defs: Add. Not very useful yet.
2002-05-31 nalin
* src/vte.c: Implement font setting using PangoX to convert Pango
font descriptions to core font xlfds for use when drawing with Xlib.
2002-05-29 nalin
* src/trie.c, src,vte.c: Finish switching iconv to g_iconv. I think
this was a part of Hidetoshi Tajima's patch that I lost. Free regexes
when we're done with them.
2002-05-28 nalin
* src/vte.c: Fix matching when scrolling delta isn't zero. Fix async
background updating (report from Richard Neal Plana). Fix cb() and ce()
when the cursor is on a line without data (needed to create it) and when
cells being cleared don't exist (needed to create them) (report from
Garret LeSage).
* src/vte.c, src/vteaccess.c: Always free the segment when freeing
arrays and strings.
2002-05-24 nalin
* autogen.sh: Call libtoolize. (#82836)
* src/vte.c: Fix stupid segfault in set_scrollback_lines. (Patch
from notting.) Make another attempt to convert Pango font descriptions
to xlfds.
* src/vteapp.c: Add -c, -f, -t command-line flags for easier testing.
2002-05-22 nalin
* src/vte.c: Fix hiliting of matched strings.
2002-05-21 nalin
* src/vte.c: Filter key release events through input methods. (Patch
from otaylor.) When building with gcc, use -std=c99.
2002-05-21 nalin
* autogen.sh, src/termcap.c, src/utf8echo.c, src/vte.c: Patch from
Hidetoshi Tajima to fix building on Solaris systems, remove use of
syntax that might be specific to gcc, and fix an overrun in
vte_termcap_generate(). (#82433)
2002-05-18 andersca
* src/vte.c: Don't queue a background update if the background isn't
transparent.
2002-05-16 nalin
* src/vte.c: Snip trailing whitespace off of copied lines, insert
an end-of-line only when the copied line doesn't go to the right edge,
don't overrun right edge, even in insert mode. Fix displaying of
underlined text. Finish implementing matching.
2002-05-15 nalin
* src/vte.c: Send kI on insert key. Don't send drag events when the
child has only asked for click events. Fix crashbugs in selection.
When getting scroll events, send mouse 4/5 events to the child instead
of performing a history scroll if the child wants mouse events. Start
adding match support, merging how selection views the buffer with how
matching views the buffer, though matching doesn't work yet.
2002-05-14 nalin
* src/vte.c: Don't try to draw nul characters, most fonts can't. Don't
send motion-tracking events to the child unless we're dragging. Fix
ce so that it works even right after startup. Make sure that repainting
the entire window actually exposes the visible parts of the window. Fix
tab clearing to also allow removal of the current tabstop. Implement
save-mode and restore-mode. Start on reverse-video mode. Don't scroll
on modifier keypress events. Rework part of clipboard copy.
* termcaps/xterm: Add missing F11/F12/End keysyms to bundled xterm
termcap.
2002-05-13 nalin
* src/debug.c: Add "ALL" as a debug flag, aliased to everything.
* src/pty.c: Print debug info after redirecting stdio.
* src/trie.c: When debugging, count only decision nodes.
* src/vte.c: Fix se, for real this time. Add a mostly-ignored protected
attribute. Handle am, bw, ul flags properly. Make cd clear the current
line, too. Make ce fill the current default attributes through the end
of the line. Handle cS. Fix cv to work when we have a scrollback
buffer. Handle ll, mp. Line wrap on nd. Reset tab stops on hard
reset only. Handle soft-reset and full-reset. Handle uc. Initialize
scrollback line count properly. Tweak drawing of alternate 'a' to
get rid of artifacts. Reset insert mode, cursor visibility, and
scrolling regions when resetting.
2002-05-10 nalin
* src/vte.c: Fix IC, which should *always* be done in insert mode,
from otaylor. Make delete mode do nothing.
2002-05-09 nalin
* src/vte.c: Fixes to usage of iconv, from otaylor. Remap certain
characters which are missing in the current Xft font to similar
characters if they are in the font, from otaylor. Change default
emulation to "xterm", cleaning up confusion over what standout really
means. Reorganize some internals. Complain when an application sends
us a key-press sequence, as if we knew what to do with one of those.
Implement bt, ct, st. Reimplement ta.
* src/debug.c, src/debug.h: Added.
2002-05-08 nalin
* src/vte.c: Implement mouse motion-event and any-event tracking.
2002-05-07 nalin
* src/vte.c: Implement the rest of the special graphics characters.
2002-05-06 nalin
* src/vte.c: Finish implementing window-manipulation sequences. Rename
signals to be more consistent. Add thin wrappers for emitting signals,
and use them everywhere. Support pangox even when XFT isn't available.
Try to provide bold text again. Add signals for most of the window
manipulation control sequences. Start handling mouse button events.
Hide the mouse cursor when we get keyboard events. Use a different
mouse cursor if the child is mouse-aware. Handle eA() by treating it as
as().
* src/caps.c, src/caps.h: Export definitions of VTE_CAP_CSI and friends.
2002-05-04 nalin
* src/vte.c: Implement device-status-report and dec-device-status-
report. Clamp location values in sequence_handler_cm() to the
dimensions of the terminal window so that resize(1) will work right.
Start handling window-manipulation sequences.
2002-05-03 nalin
* src/termcap.c: Export a vte_termcap_strip() function for preprocessing
escape sequences and whatnot from capability values.
* src/typescrypt: Removed.
* src/vte.c: Pass the hard-coded xterm-specific capabilities through
vte_termcap_strip(), which fixes a few weird bugs. Discard invalid
might-be-control-sequence sequences, like other emulators do. Don't
consider modifier keys, by themselves, to be enough to scroll-on-key.
When snapshotting, actually snapshot all of a row instead of just the
last character. Don't run past the end of snapshot contents when
reading them.
* src/vteaccess.c: Clamp offsets so that they always sort right.
2002-05-02 nalin
* src/termcap.c: Fix handling of triple-digit escaped characters,
which weren't being processed right if the first digit was '1' instead
of '0'.
* src/trie.c: Rework trie matching to return the address of the
character which ended the match attempt, which should cut down on
useless initial-substring checks. Fix a subtle bug which caused
intermittent off-by-somenumber errors in the return address.
* src/vte.c: Remove several gdk_window_scroll() calls which apparently
aren't buffered. Convert invalid multibyte characters to '?' instead of
just dropping them. Provide a means of setting the backspace/delete
bindings. Add a poor xlfd_from_pango mapping function which would need
serious work to be useful. Get rid of warnings when we're transparent
and the root window pixmap isn't as big as the root window because it's
been tiled. Setup bindings using the export functions. Set the default
terminal size to 80x24 instead of 60x18, which was originally chosen for
debugging purposes. Don't use $SHELL as the command to invoke when
starting up a default command (as in the test app) -- libtool wrappers
keep screwing this up. Don't limit the number of characters we skip
over in invalid multibyte sequences -- sometimes that's not enough.
Hook up ts/te, ks/ke sequence handlers.
* src/vteaccess.h: Fix a crashbug due to mismatch between parent field
in the object's structure and its inherited object's type. Fix more
crash bugs due to initialization weirdness. More to go.
2002-05-01 nalin
* src/vte.c: Try @pkgdatadir@/termcap/$TERM when reading termcap files.
This fixes the app on systems with no /etc/termcap, and also speeds up
loads and reduces memory consumption for xterm-color at the expense of
making on-the-fly emulation changes impossible. Don't xor reverse with
itself when drawing characters (this broke when snapshotting was added).
* termcaps/Makefile.am, termcaps/xterm-color: include a default termcap
for xterm-color.
* src/termcap.c src/termcap.h: make _find_boolean return a gboolean
instead of an int.
2002-04-30 nalin
* src/vte.c: Disconnect from toplevel window_configure events at
finalize-time.
2002-04-30 18:06 nalin
* src/vte.c: Track and free idle task tags properly. Change F11 and
F12 capabilities from 'k;' and 'F1' to 'F1' and 'F2'. Send a NUL on
control space. (#80350) Allow setting and checking of word characters,
and change select-by-word behavior to use the word character list.
Emit "contents_changed" signals whenever the visible contents change,
and "cursor_moved" when the cursor moves. Add snapshotting method.
Scroll when auto-margin handling moves the cursor to the next line.
Assume that the locale charset is actually ISO-8859-1 when we're in
a UTF-8 locale, so we don't toggle from UTF-8 to UTF-8. Treat
GDK_KP_Page_Up as a GDK_Page_Up, ditto for GDK_KP_Page_Down and
GDK_KP_Tab and GDK_KP_Space. Add vte_terminal_get_font(). Don't bother
messing with ring buffers if we're resizing them to their current sizes.
* src/pty.c, src/vte.c: Return a pid from vte_terminal_fork_command().
* src/vteaccess.c, src/vteaccess.h: Add VteTerminalAccessible object
type. It might even work, mostly.
2002-04-29 14:25 nalin
* src/vte.c: Handle me() by resetting all attributes (including
colors, which we weren't resetting before).
2002-04-29 10:57 nalin
* src/vte.c: Handle kb by treating it as a backspace. Make pangox
rendering the default. Handle control-key sequences better, unless
the input method is hiding the modifiers from us. Set the default
TERM variable to "xterm-color".
* src/vte.c src/vte.h: Get rid of vte_terminal_set_core_font().
2002-04-26 19:14 nalin
* src/vte.c: Punt all changes to background images and transparency
to an idle task. Only insert newlines into the copy buffer when the
last column in a given line doesn't have a character in it.
2002-04-26 17:35 notting
* src/pty.c: use execlp/execvp
2002-04-26 12:09 nalin
* src/Makefile.am, src/ring.c, ring.h: add a ring buffer for storing
scrollback data.
* src/vte.c: use a ring buffer instead of a GArray to hold scrollback
rows. Fix a bug in that. Try to preserve what the user sees when the
scrollback size changes.
* src/vteapp.c: set a default scrollback buffer size of 100.
2002-04-26 00:49 nalin
* Makefile.am: run autogen before tagging so that the tag is always
correct.
* README: update.
* configure.in: add pangox to the list of GTK+ 2.0 modules we link with.
* src/vte.c, src/vte.h: add vte_terminal_set_scrollback_lines(), add
some code to use pangox for rendering before trying core rendering,
which should make font selection actually work.
* vte.spec: tweak description text.
2002-04-25 12:23 nalin
* Makefile.am: Uncomment the tag target.
2002-04-25 12:22 nalin
* HACKING, Makefile.am, configure.in: Add some targets for building
tarballs in a hopefully-reproducible way.
2002-04-25 12:12 nalin
* src/vte.c: Let GDK_USE_XFT turn on Xft as well as
VTE_USE_XFT.
2002-04-25 01:45 nalin
* src/vte.c: Handle decoding errors
better.
2002-04-25 00:49 nalin
* vte.spec: Include pkgconfig files in the package.
2002-04-25 00:43 nalin
* src/vte.c: src/vte.c: Make multiple calls to
set_background_transparent() and set_background_image() do the
right thing.
2002-04-25 00:05 nalin
* src/vte.c: Reverse the sanity check in
vte_terminal_set_background_image_file() so that it rejects
zero-length strings, not the other way around.
2002-04-24 23:54 nalin
* src/trie.c: Demote some debug messages to being trie-specific
debug messages.
* src/vte.h: Declare vte_terminal_set_core_font() for non-Xft use.
* src/vte.c: Adjust idle priorities to make the terminal be more
responsive. Fix a double-free that corrupted the heap on core font
loads. Rework some pixbuf handling to only create new pixbufs when
we need to modify what we are given. Revert a patch for profterm
crackiness that's gone now.
2002-04-24 20:49 nalin
* README: update to-do list.
* autogen.sh: remove --disable-shared.
* src/pty.c: remove a memory leak.
* src/termcap.c: fix a possible read-before-start-of-buffer.
* src/trie.c: use iconv instead of mbrstowcs, even if it's just
ASCII->W_CHAR_T.
* src/vte.c: fix a few memory leaks. Only reset the IM context when
we're realized, which is the only time we actually have an IM context.
Don't create a copy of a pixbuf if we don't need to desaturate it,
just ref it and use it directly.
2002-04-23 19:40 nalin
* src/vte.c: Display UTF-8 preedit strings properly, fix
copy (no, really this time), and reset IM contexts when pasting
text in.
2002-04-23 18:01 nalin
* src/pty.c: Print debug messages before redirecting stdio.
* src/vte.c: Fix displaying of highlighted multi-column text.
Use the GTK global setting for cursor blinking to control das
blinkencursor.
* src/vte.h: Remove function for setting blinking timeout.
2002-04-23 15:54 nalin
* src/pty.c: Fix a compile warning.
2002-04-23 15:54 nalin
* autogen.sh: Default to include optimization, even for debugging.
* configure.in: Move AM_CONFIG_HEADER to the top.
* src/pty.c: Create non-login shells by default (when argv is NULL,
otherwise it's up to the caller anyway.
* src/vte.c: Add mostly-complete input method support.
* src/vte.h: Add vte_terminal_im_append_menuitems().
2002-04-23 13:04 hp
* src/vte.c, src/vte.h: add vte_terminal_set_font
2002-04-22 17:00 hp
* src/vte.c: when setting background color, use allocated color,
and don't overwrite with bg of None
2002-04-22 16:50 hp
* src/vte.c: use gdk_rgb_find_color to allocate X colors
2002-04-22 16:35 nalin
* src/vte.c, src/vte.h, src/vteapp.c: Add vte_terminal_feed_child() to
send UTF-8 strings to the child process, and actually apply Havoc's
fix right this time.
2002-04-22 09:56 nalin
* src/vte.c: Prevent double-free of incoming buffer
(patch from Havoc).
2002-04-16 01:43 nalin
* README: Fix typo.
* src/vte.c: Make blinking cursors stay on while the user is typing,
desaturate images using integer math.
2002-04-05 00:58 nalin
* vte.spec: Add less useless descriptions.
* src/vte.c: Fix an uninitialized variable and missing declaration
error.
2002-03-24 21:52 nalin
* src/vte.c: Ensure that there's a data row
whenever we scroll forward, fixing strangeness when I suspend and
resume vim.
2002-03-24 19:08 nalin
* src/vte.c: Copy to clipboard synchronously, which
fixes a number of problems. Implement background transparency.
2002-03-17 20:59 nalin
* src/vte.c: Rework backgrounds to take advantage of gdk's automatic
drawing.
* src/vteapp.c: Try to enable transparency if no background
image is present.
2002-03-17 20:58 nalin
* autogen.sh, configure.in: Adjust warnings used when in maintainer
mode.
2002-03-17 01:15 nalin
* src/vte.c: Draw the cursor as an unfilled box when the widget does
not have focus.
2002-03-17 01:04 nalin
* src/vte.c: Fix handling of scroll-on-output to always scroll when
only we're at the bottom of the buffer.
* src/vteapp.c: Disable scroll-on-output by default.
2002-03-17 00:45 nalin
* src/vte.c src/vte.h: Rework tiling of background images, and
implement a blinking cursor.
* src/vteapp.c: Set blinking cursor by default.
2002-03-14 02:58 nalin
* src/caps.c: Corrections to some xterm control sequences.
2002-03-14 02:32 nalin
* configure.in: Define PACKAGE correctly.
* src/vte.c src/vteapp.c: Move most of the tear-down code into the
widget finalize method; handle EOF and widget destruction correctly
to prevent segfaults.
2002-03-14 00:48 nalin
* configure.in: * configure.in: Define PACKAGE.
2002-03-14 00:18 nalin
* configure.in: Disable gdk-pixbuf's deprecated functions.
* vte.c: Discard non-ascii bytes to clear logjams that
happen when we pass invalid terminal data to iconv().
2002-03-13 23:07 nalin
* src/iso8859mode.c, src/utf8mode.c, src/vte.c, src/vte.h:
add missing includes
* vte.c vte.h: implement background color setting, provide
a function for setting the defaults, tile background images
properly
2002-03-13 21:12 nalin
* configure.in, vte.pc.in, src/vte.c: Remove gdk-pixbuf-xlib
dependency by using just gdk-pixbuf.
* src/vte.c: Perform background image desaturation locally.
2002-03-13 14:37 nalin
* src/vte.c: Don't add the widget's allocation offsets
when generating expose events.
2002-03-13 14:22 nalin
* src/vteapp.c: Don't try to use transparency for now.
2002-03-13 13:29 andersca
* src/vte.c, src/vte.h: Add more functions that profterm can use.
2002-03-13 12:51 andersca
* .cvsignore, vte.pc.in: Silent cvs and add gdk-pixbuf-xlib to
depends in the .pc.in file
2002-03-13 12:37 andersca
* src/.cvsignore: Sliff sloff
2002-03-13 12:37 andersca
* src/.cvsignore: sssh
2002-03-13 12:19 nalin
* configure.in: Add gdk-pixbuf-xlib-2.0 as a module requirement.
2002-03-13 01:21 nalin
* src/vte.c, vte.h, vteapp.c: * vte.c: Add set_size,
set_audible_bell, set_scroll_on_output, set_scroll_on_keystroke,
copy_clipboard, paste_clipboard, set_background_image,
set_background_image_file, and set_background_saturation. Also
added a broken set_background_transparent.
2002-03-12 22:35 nalin
* src/vte.h: adjust the name of a declared function (was _set_size,
is _size_set)
2002-03-12 22:11 nalin
* src/vte.c: Get rid of a global copy of the parent class.
* vte.c: Implement ec, ic, and IC handlers.
2002-03-12 22:10 nalin
* src/vte.h: Fix a typo in a comment (we don't "omit" signals).
2002-03-12 15:48 nalin
* src/caps.c: Recognize xterm cursor-character-absolute sequence.
* src/vte.c: Handle cursor-character-absolute. Change the default font
to "mono" 14 point when using Xft.
2002-03-12 15:22 nalin
* src/vte.c: Handle the ve (cursor visible) control sequence.
2002-03-12 15:19 nalin
* src/vte.c: Handle dec private mode set (cursor visibility).
2002-03-12 15:13 nalin
* src/vte.c, src/vte.h, src/vteapp.h: fix signed/unsigned problems
(fixes from alexl)
2002-03-11 20:29 nalin
* src/vte.c: Make scroll-on-output scroll on control sequences, too.
2002-03-11 20:19 nalin
* src/Makefile.am, src/iso8859mode.c, src/utf8mode.c:
Add simple programs for moving a terminal in and out of UTF-8 mode.
* src/vte.c: Be more verbose about iconv() errors. Implement dc and DC
handlers. Handle auto-wrapping (the "am" flag). Remove scrolling
cheats from the al handler, which made the window jump.
2002-03-11 02:39 andersca
* src/vte.c: Add a finalize handler and free our title strings
there.
2002-03-11 02:05 nalin
* Makefile.am, configure.in, src/vte.c, src/vte.h, src/vteapp.c:
Emit "window_title_changed" and "icon_title_changed" when the
titles change, and store the new values in a public field so that a
handler can retrieve the values (patch from Anders Carlsson).
2002-03-11 01:54 nalin
* vte.pc.in: Add vte.pc, from Anders Carlsson.
2002-03-11 01:47 nalin
* src/vte.c: Fix a duplicate-idle-handler bug.
2002-03-11 01:32 nalin
* README, src/vte.c: Fix selection (except maybe the end-of-line
stuff).
2002-03-10 23:44 nalin
* src/vte.c: Whoops, I broke selection. Fix that. Implement
selection by lines.
2002-03-10 23:08 nalin
* src/vte.c: Move character rendering into a common function so
that the cursor is always drawn the same as other characters (fixes
previous glitches when using Xft and when the cursor was over an
alternate charset character).
2002-03-10 03:31 nalin
* src/vte.c: Differentiate between single, double, and triple-click
for selection (still need to do something with that info).
2002-03-10 03:16 nalin
* stamp-h.in: remove this file
2002-03-10 03:15 nalin
* configure.in: Don't check for pango because we never call pango
directly.
2002-03-10 03:13 nalin
* src/vte.c: Deselect properly when something else is inserted into
the clipboard.
2002-03-10 02:26 nalin
* AUTHORS, HACKING, README, src/utf8echo.c, src/vte.c: Fix
wide-character handling (now handles mid-stream encoding changes
correctly). Updates to the meager docs.
2002-03-09 02:41 nalin
* Makefile.am, vte.spec, src/Makefile.am: Add a .spec file (make
dist; rpm -ts vte*.tar.gz; rpm --rebuild) to make building a
package easier.
2002-03-09 02:24 nalin
* src/vte.c: skip over space columns when selecting
2002-03-09 02:20 nalin
* src/pty.c, src/vteapp.c: Use a login shell by default.
2002-03-09 02:10 nalin
* src/vte.c, src/vte.h, src/vteapp.c: Rework input queueing to allow for
feeding without a pty. Use gdk_window_scroll() in _al and _up
handlers, and in the _do handler, because it's usually faster.
2002-03-08 02:52 nalin
* src/vte.c: Implement copy and almost-correct selection
highlighting.
2002-03-07 21:30 nalin
* src/vte.c: Use a queue for pasting data. Try to get dragging
detected right (doesn't work).
2002-03-05 19:21 nalin
* src/vte.c: Mark the beginning of a selected area.
2002-03-05 19:17 nalin
* src/vte.c: Make pasting asynchronous.
2002-03-05 19:07 nalin
* src/vte.c: actually free clipboard data when finished with it
2002-03-05 19:02 nalin
* src/vte.c: Implement middle-button paste.
2002-03-05 18:55 nalin
* src/vte.c: Properly convert from utf-8 or wchar_t strings when
sending data to the pseudo-terminal.
2002-03-04 19:53 nalin
* src/vte.c: Implement shift/pgup/pgdown scrolling. Make
scroll-on-keypress and -on-output easier to toggle.
2002-03-04 19:26 nalin
* src/vte.c: Spec out the rest of the alternate characters I
haven't implemented yet. Remove a function that can't be easily
written (scroll_rows). Correctly update the insertion delta when
scrolling, to fix man(1) again.
2002-03-04 19:16 nalin
* src/vte.c: Discard redundant cursor-position exposes.
2002-03-04 18:57 nalin
* src/termcap.c, src/termcap.h, src/vte.c: Use ssize_t to measure string
offsets in termcap, and don't assume that all capabilities have
values. This fixes some nasty crashes.
2002-03-04 11:53 nalin
* src/vte.c: add a missing bounds-check in the erase-in-row
function
2002-03-04 01:13 nalin
* README, src/vte.c: Send the slave pty's erase character when the
user hits backspace.
2002-03-04 00:59 nalin
* src/vte.c: Draw cursors to fill the entire cell. Draw the blank
alternate character (ooh, tough). Remove a redundant expose.
2002-03-03 23:49 nalin
* src/trie.c: stop using wcsnlen, which is a GNU extension
2002-03-03 23:43 nalin
* src/caps.h, src/pty.h, src/termcap.h, src/trie.h, src/vte.c,
src/vte.h: Add support for the line-drawing characters in the special
characters and line-drawing character set. (See
[http://vt100.net/docs/vt102-ug/table5-13.html].)
2002-03-03 21:57 nalin
* src/pty.c, src/pty.h, src/vte.c: Properly differentiate insertion
delta (working screen) from scrolling delta. Add environment setting
to the pty code.
2002-02-27 21:54 nalin
* src/trie.c, src/vte.c, src/vte.h: Make the Xft support use long-lived
data items. Clean up a lot of other Xft-related code.
2002-02-27 10:45 nalin
* src/vte.c: actually hook up the nd handler to the "nd" sequence
2002-02-27 00:05 nalin
* autogen.sh, configure.in, src/vte.c, src/vte.h: - Add sub-optimal
Xft rendering (set VTE_USE_XFT to "1" to try it); still needs
quite a bit of work to be useful. Implement character-position-absolute
and line-position-absolute, which I think are the only sequences which
emacs uses and which weren't implemented.
2002-02-25 12:43 nalin
* src/Makefile.am: distcheck fixes
2002-02-25 12:41 nalin
* README: add that line-drawing does not work to README
2002-02-25 12:40 nalin
* configure.in, src/Makefile.am: tree fixups
2002-02-25 12:38 nalin
* configure.in: fix autoconf reference file problem
2002-02-25 12:38 nalin
* src/Makefile.in: remove stuff which should never have been added
2002-02-25 12:37 nalin
* configure.ac, configure.in, src/Makefile.in: rename configure.ac
to configure.in, remove 2.5isms
2002-02-25 12:35 nalin
* doc/ctlseqs.ps, Makefile.in, aclocal.m4, config.h.in, configure:
remove stuff that should never have been in there
2002-02-25 12:30 nalin
* AUTHORS, ChangeLog, Makefile.am, NEWS, README, autogen.sh,
configure.ac, COPYING, HACKING, Makefile.in, aclocal.m4,
config.h.in, configure, stamp-h.in, doc/ctlseqs.ms, doc/ctlseqs.ps,
doc/readme.txt, doc/vttest.tar.gz, src/Makefile.am,
src/Makefile.in, src/caps.c, src/caps.h, src/interpret.c,
src/marshal.list, src/pty.c, src/pty.h, src/termcap.c,
src/termcap.h, src/trie.c, src/trie.h, src/typescript,
src/utf8echo.c, src/vte.c, src/vte.h, src/vteapp.c: Initial
revision
2002-02-25 12:30 nalin
* AUTHORS, ChangeLog, Makefile.am, NEWS, README, autogen.sh,
configure.ac, COPYING, HACKING, Makefile.in, aclocal.m4,
config.h.in, configure, stamp-h.in, doc/ctlseqs.ms, doc/ctlseqs.ps,
doc/readme.txt, doc/vttest.tar.gz, src/Makefile.am,
src/Makefile.in, src/caps.c, src/caps.h, src/interpret.c,
src/marshal.list, src/pty.c, src/pty.h, src/termcap.c,
src/termcap.h, src/trie.c, src/trie.h, src/typescript,
src/utf8echo.c, src/vte.c, src/vte.h, src/vteapp.c: imported from
private cvs
Local Variables:
coding: utf-8
End:
vim: encoding=utf-8:
|