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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<head><title>The Minimum Profit API (3.3.17)</title>
<meta name='generator' content='mp_doccer 1.2.0'>
<meta name='date' content='Thu Jan 12 18:20:08 2006'>
<meta name='author' content='Angel Ortega - angel@triptico.com'>
</head>
<body>
<a name='_TOP_'></a><h1>The Minimum Profit API (3.3.17)</h1>
<h2>By Source</h2>
<h3>mp_conf.c</h3>
<blockquote>
<a href='#mpc_read_config'>mpc_read_config</a></blockquote>
<h3>mp_core.c</h3>
<blockquote>
<a href='#_im_alive'>_im_alive</a>, <a href='#_mp_active'>_mp_active</a>, <a href='#_mp_auto_indent'>_mp_auto_indent</a>, <a href='#_mp_case_cmp'>_mp_case_cmp</a>, <a href='#_mp_clipboard'>_mp_clipboard</a>, <a href='#_mp_error'>_mp_error</a>, <a href='#_mp_save_tabs'>_mp_save_tabs</a>, <a href='#_mp_tab_size'>_mp_tab_size</a>, <a href='#_mp_txts'>_mp_txts</a>, <a href='#_mp_wheel_scroll_rows'>_mp_wheel_scroll_rows</a>, <a href='#_mp_word_wrap'>_mp_word_wrap</a>, <a href='#mp_adjust'>mp_adjust</a>, <a href='#mp_change_cursor'>mp_change_cursor</a>, <a href='#mp_copy_mark'>mp_copy_mark</a>, <a href='#mp_create_block'>mp_create_block</a>, <a href='#mp_create_sys_txt'>mp_create_sys_txt</a>, <a href='#mp_create_txt'>mp_create_txt</a>, <a href='#mp_debug_hook'>mp_debug_hook</a>, <a href='#mp_delete_char'>mp_delete_char</a>, <a href='#mp_delete_line'>mp_delete_line</a>, <a href='#mp_delete_mark'>mp_delete_mark</a>, <a href='#mp_delete_sys_txt'>mp_delete_sys_txt</a>, <a href='#mp_delete_txt'>mp_delete_txt</a>, <a href='#mp_empty_txt'>mp_empty_txt</a>, <a href='#mp_end_tmp_txt'>mp_end_tmp_txt</a>, <a href='#mp_find_text'>mp_find_text</a>, <a href='#mp_get_char'>mp_get_char</a>, <a href='#mp_get_encryption_format'>mp_get_encryption_format</a>, <a href='#mp_get_str'>mp_get_str</a>, <a href='#mp_get_tmp_txt'>mp_get_tmp_txt</a>, <a href='#mp_get_word'>mp_get_word</a>, <a href='#mp_insert_char'>mp_insert_char</a>, <a href='#mp_insert_line'>mp_insert_line</a>, <a href='#mp_insert_tab'>mp_insert_tab</a>, <a href='#mp_is_sep'>mp_is_sep</a>, <a href='#mp_load_file'>mp_load_file</a>, <a href='#mp_log'>mp_log</a>, <a href='#mp_mark'>mp_mark</a>, <a href='#mp_mark_match'>mp_mark_match</a>, <a href='#mp_marked'>mp_marked</a>, <a href='#mp_match_bracket'>mp_match_bracket</a>, <a href='#mp_modified'>mp_modified</a>, <a href='#mp_move_bof'>mp_move_bof</a>, <a href='#mp_move_bol'>mp_move_bol</a>, <a href='#mp_move_down'>mp_move_down</a>, <a href='#mp_move_eof'>mp_move_eof</a>, <a href='#mp_move_eol'>mp_move_eol</a>, <a href='#mp_move_left'>mp_move_left</a>, <a href='#mp_move_right'>mp_move_right</a>, <a href='#mp_move_to_visual_column'>mp_move_to_visual_column</a>, <a href='#mp_move_up'>mp_move_up</a>, <a href='#mp_move_word_left'>mp_move_word_left</a>, <a href='#mp_move_word_right'>mp_move_word_right</a>, <a href='#mp_move_xy'>mp_move_xy</a>, <a href='#mp_name_txt'>mp_name_txt</a>, <a href='#mp_next_txt'>mp_next_txt</a>, <a href='#mp_notify_stub'>mp_notify_stub</a>, <a href='#mp_over_char'>mp_over_char</a>, <a href='#mp_paste_mark'>mp_paste_mark</a>, <a href='#mp_peek_char'>mp_peek_char</a>, <a href='#mp_prev_txt'>mp_prev_txt</a>, <a href='#mp_put_char'>mp_put_char</a>, <a href='#mp_put_str'>mp_put_str</a>, <a href='#mp_put_strf'>mp_put_strf</a>, <a href='#mp_recalc_x'>mp_recalc_x</a>, <a href='#mp_reformat_paragraph'>mp_reformat_paragraph</a>, <a href='#mp_replace'>mp_replace</a>, <a href='#mp_save_file'>mp_save_file</a>, <a href='#mp_save_state'>mp_save_state</a>, <a href='#mp_seek'>mp_seek</a>, <a href='#mp_seek_plain'>mp_seek_plain</a>, <a href='#mp_seek_regex'>mp_seek_regex</a>, <a href='#mp_set_notify'>mp_set_notify</a>, <a href='#mp_set_password'>mp_set_password</a>, <a href='#mp_show_sys_txt'>mp_show_sys_txt</a>, <a href='#mp_shutdown'>mp_shutdown</a>, <a href='#mp_sort'>mp_sort</a>, <a href='#mp_startup'>mp_startup</a>, <a href='#mp_unmark'>mp_unmark</a>, <a href='#mp_visual_column'>mp_visual_column</a></blockquote>
<h3>mp_func.c</h3>
<blockquote>
<a href='#mpf_bind_key'>mpf_bind_key</a>, <a href='#mpf_call_func_by_funcname'>mpf_call_func_by_funcname</a>, <a href='#mpf_desc_user_fn'>mpf_desc_user_fn</a>, <a href='#mpf_get_desc_by_funcname'>mpf_get_desc_by_funcname</a>, <a href='#mpf_get_func_by_keyname'>mpf_get_func_by_keyname</a>, <a href='#mpf_get_funcname_by_keyname'>mpf_get_funcname_by_keyname</a>, <a href='#mpf_get_keyname_by_funcname'>mpf_get_keyname_by_funcname</a>, <a href='#mpf_key_help'>mpf_key_help</a>, <a href='#mpf_makeargs'>mpf_makeargs</a>, <a href='#mpf_new_user_fn'>mpf_new_user_fn</a>, <a href='#mpf_toggle_function_value'>mpf_toggle_function_value</a></blockquote>
<h3>mp_iface.c</h3>
<blockquote>
<a href='#mpi_args_1'>mpi_args_1</a>, <a href='#mpi_args_2'>mpi_args_2</a>, <a href='#mpi_close'>mpi_close</a>, <a href='#mpi_color_draw_all'>mpi_color_draw_all</a>, <a href='#mpi_completion'>mpi_completion</a>, <a href='#mpi_current_list'>mpi_current_list</a>, <a href='#mpi_draw_all'>mpi_draw_all</a>, <a href='#mpi_exec'>mpi_exec</a>, <a href='#mpi_exec_function'>mpi_exec_function</a>, <a href='#mpi_find_tag'>mpi_find_tag</a>, <a href='#mpi_goto'>mpi_goto</a>, <a href='#mpi_grep'>mpi_grep</a>, <a href='#mpi_help'>mpi_help</a>, <a href='#mpi_insert_template'>mpi_insert_template</a>, <a href='#mpi_move_page_down'>mpi_move_page_down</a>, <a href='#mpi_move_page_up'>mpi_move_page_up</a>, <a href='#mpi_move_wheel_down'>mpi_move_wheel_down</a>, <a href='#mpi_move_wheel_up'>mpi_move_wheel_up</a>, <a href='#mpi_new'>mpi_new</a>, <a href='#mpi_open'>mpi_open</a>, <a href='#mpi_play_macro'>mpi_play_macro</a>, <a href='#mpi_process'>mpi_process</a>, <a href='#mpi_record_macro'>mpi_record_macro</a>, <a href='#mpi_replace'>mpi_replace</a>, <a href='#mpi_replace_all'>mpi_replace_all</a>, <a href='#mpi_save'>mpi_save</a>, <a href='#mpi_save_as'>mpi_save_as</a>, <a href='#mpi_seek'>mpi_seek</a>, <a href='#mpi_seek_next'>mpi_seek_next</a>, <a href='#mpi_set_tab_size'>mpi_set_tab_size</a>, <a href='#mpi_set_word_wrap'>mpi_set_word_wrap</a>, <a href='#mpi_shutdown'>mpi_shutdown</a>, <a href='#mpi_startup'>mpi_startup</a>, <a href='#mpi_sync'>mpi_sync</a></blockquote>
<h3>mp_lang.c</h3>
<blockquote>
<a href='#L'>L</a>, <a href='#mpl_set_language'>mpl_set_language</a></blockquote>
<h3>mp_synhi.c</h3>
<blockquote>
<a href='#_wrd_cmp'>_wrd_cmp</a>, <a href='#_wrd_icmp'>_wrd_icmp</a>, <a href='#mps_auto_synhi'>mps_auto_synhi</a>, <a href='#mps_enumerate_modes'>mps_enumerate_modes</a>, <a href='#mps_is_sep'>mps_is_sep</a>, <a href='#mps_quoting'>mps_quoting</a>, <a href='#mps_set_override_mode'>mps_set_override_mode</a>, <a href='#mps_startup'>mps_startup</a>, <a href='#mps_word_color'>mps_word_color</a></blockquote>
<h3>mp_tags.c</h3>
<blockquote>
<a href='#mpt_open_tag'>mpt_open_tag</a>, <a href='#mpt_seek_tag'>mpt_seek_tag</a>, <a href='#mpt_select_tag'>mpt_select_tag</a></blockquote>
<h3>mp_video.c</h3>
<blockquote>
<a href='#mpv_about'>mpv_about</a>, <a href='#mpv_add_menu'>mpv_add_menu</a>, <a href='#mpv_add_menu_item'>mpv_add_menu_item</a>, <a href='#mpv_alert'>mpv_alert</a>, <a href='#mpv_args'>mpv_args</a>, <a href='#mpv_char'>mpv_char</a>, <a href='#mpv_check_menu'>mpv_check_menu</a>, <a href='#mpv_clipboard_to_system'>mpv_clipboard_to_system</a>, <a href='#mpv_confirm'>mpv_confirm</a>, <a href='#mpv_cursor'>mpv_cursor</a>, <a href='#mpv_filetabs'>mpv_filetabs</a>, <a href='#mpv_glob'>mpv_glob</a>, <a href='#mpv_goto'>mpv_goto</a>, <a href='#mpv_help'>mpv_help</a>, <a href='#mpv_list'>mpv_list</a>, <a href='#mpv_mainloop'>mpv_mainloop</a>, <a href='#mpv_menu'>mpv_menu</a>, <a href='#mpv_readline'>mpv_readline</a>, <a href='#mpv_refresh'>mpv_refresh</a>, <a href='#mpv_scrollbar'>mpv_scrollbar</a>, <a href='#mpv_set_variable'>mpv_set_variable</a>, <a href='#mpv_shutdown'>mpv_shutdown</a>, <a href='#mpv_startup_1'>mpv_startup_1</a>, <a href='#mpv_status_line'>mpv_status_line</a>, <a href='#mpv_str'>mpv_str</a>, <a href='#mpv_strcasecmp'>mpv_strcasecmp</a>, <a href='#mpv_suspend'>mpv_suspend</a>, <a href='#mpv_syscmd'>mpv_syscmd</a>, <a href='#mpv_system_to_clipboard'>mpv_system_to_clipboard</a>, <a href='#mpv_title'>mpv_title</a>, <a href='#mpv_usage'>mpv_usage</a>, <a href='#mpv_zoom'>mpv_zoom</a></blockquote>
<h3>mp_wordp.c</h3>
<blockquote>
<a href='#mpw_spellcheck_word'>mpw_spellcheck_word</a></blockquote>
<h3>mpv_curses.c</h3>
<blockquote>
<a href='#_mpv_create_colors'>_mpv_create_colors</a>, <a href='#_mpv_open_file_list'>_mpv_open_file_list</a>, <a href='#_mpv_sigwinch'>_mpv_sigwinch</a>, <a href='#_mpv_title_status'>_mpv_title_status</a>, <a href='#mpv_notify'>mpv_notify</a></blockquote>
<h3>mpv_gtk.c</h3>
<blockquote>
<a href='#_mpv_create_colors'>_mpv_create_colors</a></blockquote>
<h3>mpv_unix_common.c</h3>
<blockquote>
<a href='#_mpv_strip_cwd'>_mpv_strip_cwd</a></blockquote>
<h3>mpv_win32.c</h3>
<blockquote>
<a href='#AboutDlgProc'>AboutDlgProc</a>, <a href='#ListDlgProc'>ListDlgProc</a>, <a href='#TextDlgProc'>TextDlgProc</a>, <a href='#WndProc'>WndProc</a>, <a href='#_mpv_init_fonts'>_mpv_init_fonts</a>, <a href='#_mpv_paint'>_mpv_paint</a>, <a href='#mpv_akey'>mpv_akey</a>, <a href='#mpv_create_colors'>mpv_create_colors</a>, <a href='#mpv_vkey'>mpv_vkey</a></blockquote>
<h2>Alphabetical</h2>
<blockquote>
<a href='#AboutDlgProc'>AboutDlgProc</a> - Procedure for the about box<br>
<a href='#L'>L</a> - Translate a string<br>
<a href='#ListDlgProc'>ListDlgProc</a> - Procedure for the list input dialog<br>
<a href='#TextDlgProc'>TextDlgProc</a> - Procedure for text input dialog<br>
<a href='#WndProc'>WndProc</a> - Main window callback.<br>
<a href='#_im_alive'>_im_alive</a> - The infamous spinning bar<br>
<a href='#_mp_active'>_mp_active</a> - Pointer to the active text<br>
<a href='#_mp_auto_indent'>_mp_auto_indent</a> - Auto indentation flag.<br>
<a href='#_mp_case_cmp'>_mp_case_cmp</a> - Case sensitive compare flag.<br>
<a href='#_mp_clipboard'>_mp_clipboard</a> - Pointer to the clipboard<br>
<a href='#_mp_error'>_mp_error</a> - Bangs an error<br>
<a href='#_mp_save_tabs'>_mp_save_tabs</a> - Tab saving flag.<br>
<a href='#_mp_tab_size'>_mp_tab_size</a> - Size (in spaces) of a tab character<br>
<a href='#_mp_txts'>_mp_txts</a> - Chained list of texts<br>
<a href='#_mp_wheel_scroll_rows'>_mp_wheel_scroll_rows</a> - Number of rows to scroll wheel wheel is rolled.<br>
<a href='#_mp_word_wrap'>_mp_word_wrap</a> - Column where the word wrapping is done.<br>
<a href='#_mpv_create_colors'>_mpv_create_colors</a> - Creates the colors defined in the color database<br>
<a href='#_mpv_create_colors'>_mpv_create_colors</a> - Creates the colors defined in the color database<br>
<a href='#_mpv_init_fonts'>_mpv_init_fonts</a> - Starts up font stuff.<br>
<a href='#_mpv_open_file_list'>_mpv_open_file_list</a> - Shows a list of files to open<br>
<a href='#_mpv_paint'>_mpv_paint</a> - Dump the frame buffer to screen.<br>
<a href='#_mpv_sigwinch'>_mpv_sigwinch</a> - SIGWINCH capture function.<br>
<a href='#_mpv_strip_cwd'>_mpv_strip_cwd</a> - Strips current working directory<br>
<a href='#_mpv_title_status'>_mpv_title_status</a> - Draws the title or status line.<br>
<a href='#_wrd_cmp'>_wrd_cmp</a> - qsort compare function<br>
<a href='#_wrd_icmp'>_wrd_icmp</a> - qsort compare function<br>
<a href='#mp_adjust'>mp_adjust</a> - Adjusts the current window pointers.<br>
<a href='#mp_change_cursor'>mp_change_cursor</a> - set the block where the cursor is<br>
<a href='#mp_copy_mark'>mp_copy_mark</a> - Copies the selection block into the clipboard<br>
<a href='#mp_create_block'>mp_create_block</a> - Creates a block<br>
<a href='#mp_create_sys_txt'>mp_create_sys_txt</a> - Creates a new text<br>
<a href='#mp_create_txt'>mp_create_txt</a> - Creates a new text<br>
<a href='#mp_debug_hook'>mp_debug_hook</a> - Dummy debug hook function.<br>
<a href='#mp_delete_char'>mp_delete_char</a> - Deletes a char.<br>
<a href='#mp_delete_line'>mp_delete_line</a> - Deletes current line.<br>
<a href='#mp_delete_mark'>mp_delete_mark</a> - Deletes the marked selection block.<br>
<a href='#mp_delete_sys_txt'>mp_delete_sys_txt</a> - Deletes a text<br>
<a href='#mp_delete_txt'>mp_delete_txt</a> - Deletes a text<br>
<a href='#mp_empty_txt'>mp_empty_txt</a> - Empties a text<br>
<a href='#mp_end_tmp_txt'>mp_end_tmp_txt</a> - Stop using the temporal text<br>
<a href='#mp_find_text'>mp_find_text</a> - Find a text by its name<br>
<a href='#mp_get_char'>mp_get_char</a> - Gets the char at cursor and advances<br>
<a href='#mp_get_encryption_format'>mp_get_encryption_format</a> - Tests if file is encrypted<br>
<a href='#mp_get_str'>mp_get_str</a> - Gets a string from a text until a delimiter<br>
<a href='#mp_get_tmp_txt'>mp_get_tmp_txt</a> - Gets a temporal text<br>
<a href='#mp_get_word'>mp_get_word</a> - Gets the word over the cursor.<br>
<a href='#mp_insert_char'>mp_insert_char</a> - Inserts a char in cursor position<br>
<a href='#mp_insert_line'>mp_insert_line</a> - Inserts a new line<br>
<a href='#mp_insert_tab'>mp_insert_tab</a> - Inserts a tab<br>
<a href='#mp_is_sep'>mp_is_sep</a> - separator test<br>
<a href='#mp_load_file'>mp_load_file</a> - Loads a file into the text.<br>
<a href='#mp_log'>mp_log</a> - Logs to Minimum Profit's internal log<br>
<a href='#mp_mark'>mp_mark</a> - Marks the beginning or end of the selection block.<br>
<a href='#mp_mark_match'>mp_mark_match</a> - Marks (selects) the last successful match<br>
<a href='#mp_marked'>mp_marked</a> - Tests if selection block is marked.<br>
<a href='#mp_match_bracket'>mp_match_bracket</a> - Matches the bracket over the cursor<br>
<a href='#mp_modified'>mp_modified</a> - Marks a text as modified<br>
<a href='#mp_move_bof'>mp_move_bof</a> - Moves to beginning of file<br>
<a href='#mp_move_bol'>mp_move_bol</a> - Move to the beginning of the line.<br>
<a href='#mp_move_down'>mp_move_down</a> - Moves cursor one line down<br>
<a href='#mp_move_eof'>mp_move_eof</a> - Moves to end of file<br>
<a href='#mp_move_eol'>mp_move_eol</a> - Move to the end of the line.<br>
<a href='#mp_move_left'>mp_move_left</a> - Moves cursor one char to the right<br>
<a href='#mp_move_right'>mp_move_right</a> - Moves cursor one char to the right<br>
<a href='#mp_move_to_visual_column'>mp_move_to_visual_column</a> - Tries to recover a column position<br>
<a href='#mp_move_up'>mp_move_up</a> - Moves cursor one line up<br>
<a href='#mp_move_word_left'>mp_move_word_left</a> - Moves a word to the left.<br>
<a href='#mp_move_word_right'>mp_move_word_right</a> - Moves a word to the right.<br>
<a href='#mp_move_xy'>mp_move_xy</a> - Moves to x, y position<br>
<a href='#mp_name_txt'>mp_name_txt</a> - Names a text<br>
<a href='#mp_next_txt'>mp_next_txt</a> - Select next text<br>
<a href='#mp_notify_stub'>mp_notify_stub</a> - Dummy notify function<br>
<a href='#mp_over_char'>mp_over_char</a> - Overwrites a char.<br>
<a href='#mp_paste_mark'>mp_paste_mark</a> - Pastes the clipboard into cursor position.<br>
<a href='#mp_peek_char'>mp_peek_char</a> - Returns the character over the cursor<br>
<a href='#mp_prev_txt'>mp_prev_txt</a> - Select previous text<br>
<a href='#mp_put_char'>mp_put_char</a> - Writes a char.<br>
<a href='#mp_put_str'>mp_put_str</a> - Writes a string.<br>
<a href='#mp_put_strf'>mp_put_strf</a> - Writes a string with formatting<br>
<a href='#mp_recalc_x'>mp_recalc_x</a> - Recalculates txt->x<br>
<a href='#mp_reformat_paragraph'>mp_reformat_paragraph</a> - Reformats a paragraph using word-wrapping<br>
<a href='#mp_replace'>mp_replace</a> - Seeks and replaces a string.<br>
<a href='#mp_save_file'>mp_save_file</a> - Writes the text into file<br>
<a href='#mp_save_state'>mp_save_state</a> - Saves/restores current state<br>
<a href='#mp_seek'>mp_seek</a> - Seeks the string.<br>
<a href='#mp_seek_plain'>mp_seek_plain</a> - Seeks the string as plain text.<br>
<a href='#mp_seek_regex'>mp_seek_regex</a> - Seeks the string as a regular expression.<br>
<a href='#mp_set_notify'>mp_set_notify</a> - Sets the notify function.<br>
<a href='#mp_set_password'>mp_set_password</a> - Assigns a password to a text<br>
<a href='#mp_show_sys_txt'>mp_show_sys_txt</a> - Shows an internal (system) text<br>
<a href='#mp_shutdown'>mp_shutdown</a> - Shuts down the mp core.<br>
<a href='#mp_sort'>mp_sort</a> - Sorts a txt buffer<br>
<a href='#mp_startup'>mp_startup</a> - Starts up the mp core.<br>
<a href='#mp_unmark'>mp_unmark</a> - Unmarks the selection block.<br>
<a href='#mp_visual_column'>mp_visual_column</a> - Returns the visual column<br>
<a href='#mpc_read_config'>mpc_read_config</a> - Reads and parses the configuration file<br>
<a href='#mpf_bind_key'>mpf_bind_key</a> - Binds a key to a function<br>
<a href='#mpf_call_func_by_funcname'>mpf_call_func_by_funcname</a> - Calls a function by its name<br>
<a href='#mpf_desc_user_fn'>mpf_desc_user_fn</a> - Redefines a user function description<br>
<a href='#mpf_get_desc_by_funcname'>mpf_get_desc_by_funcname</a> - Gets a function description by its name<br>
<a href='#mpf_get_func_by_keyname'>mpf_get_func_by_keyname</a> - Gets a function by the key bound to it<br>
<a href='#mpf_get_funcname_by_keyname'>mpf_get_funcname_by_keyname</a> - Returns the function name bound to a key<br>
<a href='#mpf_get_keyname_by_funcname'>mpf_get_keyname_by_funcname</a> - Returns the key bound to a function<br>
<a href='#mpf_key_help'>mpf_key_help</a> - Shows the key binding help to the user<br>
<a href='#mpf_makeargs'>mpf_makeargs</a> - Splits a string into an argument list<br>
<a href='#mpf_new_user_fn'>mpf_new_user_fn</a> - Create an user defined function<br>
<a href='#mpf_toggle_function_value'>mpf_toggle_function_value</a> - Returns the value of a toggle function<br>
<a href='#mpi_args_1'>mpi_args_1</a> - Command line argument processing, 1st pass<br>
<a href='#mpi_args_2'>mpi_args_2</a> - Command line argument processing, 2nd pass<br>
<a href='#mpi_close'>mpi_close</a> - Closes the text.<br>
<a href='#mpi_color_draw_all'>mpi_color_draw_all</a> - Draws the document window using colors.<br>
<a href='#mpi_completion'>mpi_completion</a> - Tries to complete a symbol<br>
<a href='#mpi_current_list'>mpi_current_list</a> - Shows a selection list with the opened files<br>
<a href='#mpi_draw_all'>mpi_draw_all</a> - Draws the document window.<br>
<a href='#mpi_exec'>mpi_exec</a> - Executes a command related to text.<br>
<a href='#mpi_exec_function'>mpi_exec_function</a> - Executes an editor function<br>
<a href='#mpi_find_tag'>mpi_find_tag</a> - Asks for a tag and finds it<br>
<a href='#mpi_goto'>mpi_goto</a> - Moves to a line by its number<br>
<a href='#mpi_grep'>mpi_grep</a> - Greps (searches text) in several files<br>
<a href='#mpi_help'>mpi_help</a> - Cries for help<br>
<a href='#mpi_insert_template'>mpi_insert_template</a> - Shows a list with the available templates<br>
<a href='#mpi_move_page_down'>mpi_move_page_down</a> - Moves one page down<br>
<a href='#mpi_move_page_up'>mpi_move_page_up</a> - Moves one page up<br>
<a href='#mpi_move_wheel_down'>mpi_move_wheel_down</a> - Moves preferred number of rows down<br>
<a href='#mpi_move_wheel_up'>mpi_move_wheel_up</a> - Moves preferred number of rows up<br>
<a href='#mpi_new'>mpi_new</a> - Creates a new text<br>
<a href='#mpi_open'>mpi_open</a> - Loads a file.<br>
<a href='#mpi_play_macro'>mpi_play_macro</a> - Plays the previously recorded macro<br>
<a href='#mpi_process'>mpi_process</a> - Main action processing function<br>
<a href='#mpi_record_macro'>mpi_record_macro</a> - Starts/stops recording a macro<br>
<a href='#mpi_replace'>mpi_replace</a> - Searchs and replaces a text<br>
<a href='#mpi_replace_all'>mpi_replace_all</a> - Replaces a string in all open files<br>
<a href='#mpi_save'>mpi_save</a> - Saves the text.<br>
<a href='#mpi_save_as'>mpi_save_as</a> - Asks for a name for the text and save.<br>
<a href='#mpi_seek'>mpi_seek</a> - Seeks a text<br>
<a href='#mpi_seek_next'>mpi_seek_next</a> - Seeks a text again<br>
<a href='#mpi_set_tab_size'>mpi_set_tab_size</a> - Asks for a tab size value<br>
<a href='#mpi_set_word_wrap'>mpi_set_word_wrap</a> - Asks for a word wrapping value<br>
<a href='#mpi_shutdown'>mpi_shutdown</a> - Shutdown interface function.<br>
<a href='#mpi_startup'>mpi_startup</a> - Startup interface function.<br>
<a href='#mpi_sync'>mpi_sync</a> - Synchronizes the modified texts to disk<br>
<a href='#mpl_set_language'>mpl_set_language</a> - Sets the current language<br>
<a href='#mps_auto_synhi'>mps_auto_synhi</a> - Autodetects syntax hilight mode<br>
<a href='#mps_enumerate_modes'>mps_enumerate_modes</a> - Returns the available synhi modes<br>
<a href='#mps_is_sep'>mps_is_sep</a> - separator test<br>
<a href='#mps_quoting'>mps_quoting</a> - Test if we are inside quotes<br>
<a href='#mps_set_override_mode'>mps_set_override_mode</a> - Forces the syntax hilight mode<br>
<a href='#mps_startup'>mps_startup</a> - Syntax hilight engine startup<br>
<a href='#mps_word_color'>mps_word_color</a> - returns the color associated to the word<br>
<a href='#mpt_open_tag'>mpt_open_tag</a> - Selects a tag from a list and opens its location<br>
<a href='#mpt_seek_tag'>mpt_seek_tag</a> - Seeks a tag<br>
<a href='#mpt_select_tag'>mpt_select_tag</a> - Selects from a list of tags given a partial string<br>
<a href='#mpv_about'>mpv_about</a> - Shows the 'About Minimum Profit...' information.<br>
<a href='#mpv_add_menu'>mpv_add_menu</a> - Creates a new menu bar.<br>
<a href='#mpv_add_menu_item'>mpv_add_menu_item</a> - Adds a menu item to current menu bar.<br>
<a href='#mpv_akey'>mpv_akey</a> - Converts ascii keys to key names.<br>
<a href='#mpv_alert'>mpv_alert</a> - Alerts the user.<br>
<a href='#mpv_args'>mpv_args</a> - Driver command line argument processing<br>
<a href='#mpv_char'>mpv_char</a> - Draws a char with color in the document window.<br>
<a href='#mpv_check_menu'>mpv_check_menu</a> - Checks or unchecks a menu item<br>
<a href='#mpv_clipboard_to_system'>mpv_clipboard_to_system</a> - Copies to the system clipboard<br>
<a href='#mpv_confirm'>mpv_confirm</a> - Asks for confirmation.<br>
<a href='#mpv_create_colors'>mpv_create_colors</a> - Creates the colors defined in the color database<br>
<a href='#mpv_cursor'>mpv_cursor</a> - Positions the hardware cursor.<br>
<a href='#mpv_filetabs'>mpv_filetabs</a> - Draws the tab set containing the file names<br>
<a href='#mpv_glob'>mpv_glob</a> - Returns a result of a file globbing<br>
<a href='#mpv_goto'>mpv_goto</a> - Positions the cursor to start drawing.<br>
<a href='#mpv_help'>mpv_help</a> - Shows the available help for a term<br>
<a href='#mpv_list'>mpv_list</a> - Manages a selection list<br>
<a href='#mpv_mainloop'>mpv_mainloop</a> - Main message processing loop.<br>
<a href='#mpv_menu'>mpv_menu</a> - Manages the menu.<br>
<a href='#mpv_notify'>mpv_notify</a> - The notify function.<br>
<a href='#mpv_readline'>mpv_readline</a> - Ask for user input.<br>
<a href='#mpv_refresh'>mpv_refresh</a> - Refresh the screen.<br>
<a href='#mpv_scrollbar'>mpv_scrollbar</a> - Draws / updates the scrollbar.<br>
<a href='#mpv_set_variable'>mpv_set_variable</a> - Sets a driver-dependent variable<br>
<a href='#mpv_shutdown'>mpv_shutdown</a> - Shuts down the system dependent driver.<br>
<a href='#mpv_startup_1'>mpv_startup_1</a> - Finds a usable video driver<br>
<a href='#mpv_status_line'>mpv_status_line</a> - Sets the string to be drawn as status line<br>
<a href='#mpv_str'>mpv_str</a> - Draws a string with color in the document window.<br>
<a href='#mpv_strcasecmp'>mpv_strcasecmp</a> - Case ignoring string compare<br>
<a href='#mpv_suspend'>mpv_suspend</a> - Suspend the system dependant driver<br>
<a href='#mpv_syscmd'>mpv_syscmd</a> - System dependant command execution<br>
<a href='#mpv_system_to_clipboard'>mpv_system_to_clipboard</a> - Copies from the system clipboard<br>
<a href='#mpv_title'>mpv_title</a> - Sets the string to be drawn as title<br>
<a href='#mpv_usage'>mpv_usage</a> - Prints the usage help.<br>
<a href='#mpv_vkey'>mpv_vkey</a> - Converts Windows keys to key names.<br>
<a href='#mpv_zoom'>mpv_zoom</a> - Zooms the document window.<br>
<a href='#mpw_spellcheck_word'>mpw_spellcheck_word</a> - Tests if a word is correctly spelled<br>
</blockquote>
<hr>
<a name='AboutDlgProc'></a>
<table width='100%'><tr><td><h2>AboutDlgProc</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>AboutDlgProc</strong> - Procedure for the about box
<h3>Synopsis</h3>
<pre class='funcsyn'>
BOOL CALLBACK <strong class='funcname'>AboutDlgProc</strong>(HWND <em class='funcarg'>hwnd</em>, UINT <em class='funcarg'>msg</em>, WPARAM <em class='funcarg'>wparam</em>, LPARAM <em class='funcarg'>lparam</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>hwnd</em></dt><dd>the window handler</dd>
<dt><em class='funcarg'>msg</em></dt><dd>the message sent</dd>
<dt><em class='funcarg'>wparam</em></dt><dd>the word param</dd>
<dt><em class='funcarg'>lparam</em></dt><dd>the long word param</dd>
</dl>
<h3>Description</h3>
<p>Procedure for the about box. Called from inside MS Windows.
</p>
</blockquote><hr>
<a name='L'></a>
<table width='100%'><tr><td><h2>L</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>L</strong> - Translate a string
<h3>Synopsis</h3>
<pre class='funcsyn'>
char * <strong class='funcname'>L</strong>(char * <em class='funcarg'>msgid</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>msgid</em></dt><dd>the string to be translated</dd>
</dl>
<h3>Description</h3>
<p>Translate <em class='funcarg'>msgid</em> using the current language info. If no
translation string is found, the same <em class='funcarg'>msgid</em> is returned.
</p>
</blockquote><hr>
<a name='ListDlgProc'></a>
<table width='100%'><tr><td><h2>ListDlgProc</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>ListDlgProc</strong> - Procedure for the list input dialog
<h3>Synopsis</h3>
<pre class='funcsyn'>
BOOL CALLBACK <strong class='funcname'>ListDlgProc</strong>(HWND <em class='funcarg'>hwnd</em>, UINT <em class='funcarg'>msg</em>, WPARAM <em class='funcarg'>wparam</em>, LPARAM <em class='funcarg'>lparam</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>hwnd</em></dt><dd>the window handler</dd>
<dt><em class='funcarg'>msg</em></dt><dd>the message sent</dd>
<dt><em class='funcarg'>wparam</em></dt><dd>the word param</dd>
<dt><em class='funcarg'>lparam</em></dt><dd>the long word param</dd>
</dl>
<h3>Description</h3>
<p>Procedure for list input dialog. Called from inside MS Windows.
</p>
</blockquote><hr>
<a name='TextDlgProc'></a>
<table width='100%'><tr><td><h2>TextDlgProc</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>TextDlgProc</strong> - Procedure for text input dialog
<h3>Synopsis</h3>
<pre class='funcsyn'>
BOOL CALLBACK <strong class='funcname'>TextDlgProc</strong>(HWND <em class='funcarg'>hwnd</em>, UINT <em class='funcarg'>msg</em>, WPARAM <em class='funcarg'>wparam</em>, LPARAM <em class='funcarg'>lparam</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>hwnd</em></dt><dd>the window handler</dd>
<dt><em class='funcarg'>msg</em></dt><dd>the message sent</dd>
<dt><em class='funcarg'>wparam</em></dt><dd>the word param</dd>
<dt><em class='funcarg'>lparam</em></dt><dd>the long word param</dd>
</dl>
<h3>Description</h3>
<p>Procedure for text input dialog. Called from inside MS Windows.
</p>
</blockquote><hr>
<a name='WndProc'></a>
<table width='100%'><tr><td><h2>WndProc</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>WndProc</strong> - Main window callback.
<h3>Synopsis</h3>
<pre class='funcsyn'>
long STDCALL <strong class='funcname'>WndProc</strong>(HWND <em class='funcarg'>hwnd</em>, UINT <em class='funcarg'>msg</em>, UINT <em class='funcarg'>wparam</em>, LONG <em class='funcarg'>lparam</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>hwnd</em></dt><dd>the window handler</dd>
<dt><em class='funcarg'>msg</em></dt><dd>the message</dd>
<dt><em class='funcarg'>wparam</em></dt><dd>the word param</dd>
<dt><em class='funcarg'>lparam</em></dt><dd>the long word param</dd>
</dl>
<h3>Description</h3>
<p>Main window callback.
</p>
</blockquote><hr>
<a name='_im_alive'></a>
<table width='100%'><tr><td><h2>_im_alive</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>_im_alive</strong> - The infamous spinning bar
<h3>Synopsis</h3>
<pre class='funcsyn'>
char * <strong class='funcname'>_im_alive</strong>(void);</pre>
<h3>Description</h3>
<p>Each time it's called, this function returns a string
with a frame of an animated spinning bar. Just to
show the user the program is alive.
</p>
</blockquote><hr>
<a name='_mp_active'></a>
<table width='100%'><tr><td><h2>_mp_active</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>_mp_active</strong> - Pointer to the active text
<h3>Synopsis</h3>
<pre class='funcsyn'>
mp_txt * <strong class='funcname'>_mp_active</strong>=NULL;</pre>
<h3>Description</h3>
<p>Pointer to the active text. Assumed to be always non-NULL.
</p>
</blockquote><hr>
<a name='_mp_auto_indent'></a>
<table width='100%'><tr><td><h2>_mp_auto_indent</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>_mp_auto_indent</strong> - Auto indentation flag.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>_mp_auto_indent</strong>=AUTO_INDENT;</pre>
<h3>Description</h3>
<p>If this flag is set, a new line will have the same spaces
at the beginning as the previous one, if any. Otherwise, a
new line will start always exactly at the first column.
</p>
</blockquote><hr>
<a name='_mp_case_cmp'></a>
<table width='100%'><tr><td><h2>_mp_case_cmp</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>_mp_case_cmp</strong> - Case sensitive compare flag.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>_mp_case_cmp</strong>=1;</pre>
<h3>Description</h3>
<p>When this flag is set, searches are made case sensitive.
</p>
</blockquote><hr>
<a name='_mp_clipboard'></a>
<table width='100%'><tr><td><h2>_mp_clipboard</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>_mp_clipboard</strong> - Pointer to the clipboard
<h3>Synopsis</h3>
<pre class='funcsyn'>
mp_txt * <strong class='funcname'>_mp_clipboard</strong>=NULL;</pre>
<h3>Description</h3>
<p>Pointer to a text containing the clipboard. Used for
copying and pasting.
</p>
</blockquote><hr>
<a name='_mp_error'></a>
<table width='100%'><tr><td><h2>_mp_error</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>_mp_error</strong> - Bangs an error
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>_mp_error</strong>(char * <em class='funcarg'>s</em>, int <em class='funcarg'>line</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>s</em></dt><dd>The error string</dd>
<dt><em class='funcarg'>line</em></dt><dd>the code file line number</dd>
</dl>
<h3>Description</h3>
<p>Dumps an error to stdout. Usually called only from
an assert-like macro on a probably fatal internal error.
It must not happen; this usually means
that it will be called when less expected.
</p>
</blockquote><hr>
<a name='_mp_save_tabs'></a>
<table width='100%'><tr><td><h2>_mp_save_tabs</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>_mp_save_tabs</strong> - Tab saving flag.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>_mp_save_tabs</strong>=1;</pre>
<h3>Description</h3>
<p>If this flag is set, a string of spaces that crosses
a tab column boundary will be saved as a tab. Otherwise,
the spaces themselves will be saved.
</p>
</blockquote><hr>
<a name='_mp_tab_size'></a>
<table width='100%'><tr><td><h2>_mp_tab_size</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>_mp_tab_size</strong> - Size (in spaces) of a tab character
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>_mp_tab_size</strong>=DEFAULT_TAB_SIZE;</pre>
<h3>Description</h3>
<p>Size in spaces of each tab column position.
</p>
</blockquote><hr>
<a name='_mp_txts'></a>
<table width='100%'><tr><td><h2>_mp_txts</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>_mp_txts</strong> - Chained list of texts
<h3>Synopsis</h3>
<pre class='funcsyn'>
mp_txt * <strong class='funcname'>_mp_txts</strong>=NULL;</pre>
<h3>Description</h3>
<p>The chained list of texts. This is where all the document
texts are stored.
</p>
</blockquote><hr>
<a name='_mp_wheel_scroll_rows'></a>
<table width='100%'><tr><td><h2>_mp_wheel_scroll_rows</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>_mp_wheel_scroll_rows</strong> - Number of rows to scroll wheel wheel is rolled.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>_mp_wheel_scroll_rows</strong>=DEFAULT_WHEEL_SCROLL_ROWS;</pre>
<h3>Description</h3>
<p>Rolling the wheel scrolls this number of line up or down.
A value of 0, will scroll a full page.
</p>
</blockquote><hr>
<a name='_mp_word_wrap'></a>
<table width='100%'><tr><td><h2>_mp_word_wrap</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>_mp_word_wrap</strong> - Column where the word wrapping is done.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>_mp_word_wrap</strong>=0;</pre>
<h3>Description</h3>
<p>Any word crossing the column boundary marked by this
variable will be sent to the next line. A value of 0
means no word wrapping (so right margin expands forever).
</p>
</blockquote><hr>
<a name='_mpv_create_colors'></a>
<table width='100%'><tr><td><h2>_mpv_create_colors</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>_mpv_create_colors</strong> - Creates the colors defined in the color database
<h3>Synopsis</h3>
<pre class='funcsyn'>
static void <strong class='funcname'>_mpv_create_colors</strong>(void);</pre>
<h3>Description</h3>
<p>Creates the colors defined in the color database, probably
set from the configuration file.
</p>
</blockquote><hr>
<a name='_mpv_init_fonts'></a>
<table width='100%'><tr><td><h2>_mpv_init_fonts</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>_mpv_init_fonts</strong> - Starts up font stuff.
<h3>Synopsis</h3>
<pre class='funcsyn'>
static void <strong class='funcname'>_mpv_init_fonts</strong>(HDC <em class='funcarg'>hdc</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>hdc</em></dt><dd>the device context</dd>
</dl>
<h3>Description</h3>
<p>Starts up font stuff.
</p>
</blockquote><hr>
<a name='_mpv_open_file_list'></a>
<table width='100%'><tr><td><h2>_mpv_open_file_list</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>_mpv_open_file_list</strong> - Shows a list of files to open
<h3>Synopsis</h3>
<pre class='funcsyn'>
static int <strong class='funcname'>_mpv_open_file_list</strong>(char * <em class='funcarg'>rcpt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>rcpt</em></dt><dd>buffer to receive the selected file</dd>
</dl>
<h3>Description</h3>
<p>Asks for a file scheme and shows a list of files
matching it.
Returns the pushed key to exit ('\r' or '\e').
If no or just one file is matched, '\r' is also returned.
The selected file will be written into the rcpt
buffer.
This is an ugly hack: it will be rewritten
sooner or later.
</p>
</blockquote><hr>
<a name='_mpv_paint'></a>
<table width='100%'><tr><td><h2>_mpv_paint</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>_mpv_paint</strong> - Dump the frame buffer to screen.
<h3>Synopsis</h3>
<pre class='funcsyn'>
static void <strong class='funcname'>_mpv_paint</strong>(HWND <em class='funcarg'>hwnd</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>hwnd</em></dt><dd>the window handler</dd>
</dl>
<h3>Description</h3>
<p>Dumps the document window frame buffer to the window.
</p>
</blockquote><hr>
<a name='_mpv_sigwinch'></a>
<table width='100%'><tr><td><h2>_mpv_sigwinch</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>_mpv_sigwinch</strong> - SIGWINCH capture function.
<h3>Synopsis</h3>
<pre class='funcsyn'>
static void <strong class='funcname'>_mpv_sigwinch</strong>(int <em class='funcarg'>s</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>s</em></dt><dd>signal</dd>
</dl>
<h3>Description</h3>
<p>The capture function for the SIGWINCH signal, raised
whenever a window resize has been done (from i.e. xterm).
</p>
</blockquote><hr>
<a name='_mpv_strip_cwd'></a>
<table width='100%'><tr><td><h2>_mpv_strip_cwd</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>_mpv_strip_cwd</strong> - Strips current working directory
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>_mpv_strip_cwd</strong>(char * <em class='funcarg'>buf</em>, int <em class='funcarg'>size</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>buf</em></dt><dd>buffer containing a file name</dd>
<dt><em class='funcarg'>size</em></dt><dd>size of the buffer</dd>
</dl>
<h3>Description</h3>
<p>If the file name contained in <em class='funcarg'>buf</em> begins with
the current working directory, strips it (effectively
converting an absolute pathname to relative). If
the file name path is different from the
current working directory, nothing is done.
</p>
</blockquote><hr>
<a name='_mpv_title_status'></a>
<table width='100%'><tr><td><h2>_mpv_title_status</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>_mpv_title_status</strong> - Draws the title or status line.
<h3>Synopsis</h3>
<pre class='funcsyn'>
static void <strong class='funcname'>_mpv_title_status</strong>(int <em class='funcarg'>y</em>, unsigned char * <em class='funcarg'>str1</em>,
unsigned char * <em class='funcarg'>str2</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>y</em></dt><dd>the y position</dd>
<dt><em class='funcarg'>str1</em></dt><dd>first string</dd>
<dt><em class='funcarg'>str2</em></dt><dd>second (optional) string</dd>
</dl>
<h3>Description</h3>
<p>Draws the title or status line with str1 and, if defined,
concatenates str2. The y variable indicates the vertical
position where the line will be drawn. It is filled with
spaces to the right margin (internal).
</p>
</blockquote><hr>
<a name='_wrd_cmp'></a>
<table width='100%'><tr><td><h2>_wrd_cmp</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>_wrd_cmp</strong> - qsort compare function
<h3>Synopsis</h3>
<pre class='funcsyn'>
static int <strong class='funcname'>_wrd_cmp</strong>(const void * <em class='funcarg'>s1</em>, const void * <em class='funcarg'>s2</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>s1</em></dt><dd>first string</dd>
<dt><em class='funcarg'>s2</em></dt><dd>second string</dd>
</dl>
<h3>Description</h3>
<p>Compare function (qsort and bsearch) to search a word.
Returns -1, 0, or 1. Internal (do not use).
</p>
</blockquote><hr>
<a name='_wrd_icmp'></a>
<table width='100%'><tr><td><h2>_wrd_icmp</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>_wrd_icmp</strong> - qsort compare function
<h3>Synopsis</h3>
<pre class='funcsyn'>
static int <strong class='funcname'>_wrd_icmp</strong>(const void * <em class='funcarg'>s1</em>, const void * <em class='funcarg'>s2</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>s1</em></dt><dd>first string</dd>
<dt><em class='funcarg'>s2</em></dt><dd>second string</dd>
</dl>
<h3>Description</h3>
<p>Compare function (qsort and bsearch) to search a word.
Case insensitive version.
Returns -1, 0, or 1. Internal (do not use).
</p>
</blockquote><hr>
<a name='mp_adjust'></a>
<table width='100%'><tr><td><h2>mp_adjust</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_adjust</strong> - Adjusts the current window pointers.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_adjust</strong>(mp_txt * <em class='funcarg'>txt</em>, int <em class='funcarg'>tx</em>, int <em class='funcarg'>ty</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
<dt><em class='funcarg'>tx</em></dt><dd>the current window width</dd>
<dt><em class='funcarg'>ty</em></dt><dd>the current window height</dd>
</dl>
<h3>Description</h3>
<p>Adjust the current window pointers (variables vx and vy
of the text) to a window of tx width and ty height so
that the cursor is visible.
</p>
</blockquote><hr>
<a name='mp_change_cursor'></a>
<table width='100%'><tr><td><h2>mp_change_cursor</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_change_cursor</strong> - set the block where the cursor is
<h3>Synopsis</h3>
<pre class='funcsyn'>
static int <strong class='funcname'>mp_change_cursor</strong>(mp_txt * <em class='funcarg'>txt</em>, mp_blk * <em class='funcarg'>blk</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text to be changed</dd>
<dt><em class='funcarg'>blk</em></dt><dd>the block where the cursor is</dd>
</dl>
<h3>Description</h3>
<p>Sets the block where the cursor is over.
This function is internal and must not be used.
</p>
</blockquote><hr>
<a name='mp_copy_mark'></a>
<table width='100%'><tr><td><h2>mp_copy_mark</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_copy_mark</strong> - Copies the selection block into the clipboard
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_copy_mark</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Copies the selection block into the internal clipboard.
Returns 0 if the selection block is not marked.
</p>
</blockquote><hr>
<a name='mp_create_block'></a>
<table width='100%'><tr><td><h2>mp_create_block</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_create_block</strong> - Creates a block
<h3>Synopsis</h3>
<pre class='funcsyn'>
static mp_blk * <strong class='funcname'>mp_create_block</strong>(void);</pre>
<h3>Description</h3>
<p>Creates a new block of text. Returns the zero filled block
or NULL if out of memory or any other horrible event.
</p>
</blockquote><hr>
<a name='mp_create_sys_txt'></a>
<table width='100%'><tr><td><h2>mp_create_sys_txt</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_create_sys_txt</strong> - Creates a new text
<h3>Synopsis</h3>
<pre class='funcsyn'>
mp_txt * <strong class='funcname'>mp_create_sys_txt</strong>(char * <em class='funcarg'>name</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>name</em></dt><dd>the name of the new text</dd>
</dl>
<h3>Description</h3>
<p>Returns a new text with its first block, or NULL
if out of memory. The new text is NOT appended
to the active texts list; this function must only
be used to create special-purpose texts (as the
clipboard).
</p>
</blockquote><hr>
<a name='mp_create_txt'></a>
<table width='100%'><tr><td><h2>mp_create_txt</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_create_txt</strong> - Creates a new text
<h3>Synopsis</h3>
<pre class='funcsyn'>
mp_txt * <strong class='funcname'>mp_create_txt</strong>(char * <em class='funcarg'>name</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>name</em></dt><dd>the name of the new text</dd>
</dl>
<h3>Description</h3>
<p>Creates a new text and links it to the list of
loaded texts. Returns a pointer to it or NULL
if out of memory. The new text is set as the
active one.
</p>
</blockquote><hr>
<a name='mp_debug_hook'></a>
<table width='100%'><tr><td><h2>mp_debug_hook</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_debug_hook</strong> - Dummy debug hook function.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_debug_hook</strong>(void);</pre>
<h3>Description</h3>
<p>This function does nothing. It is just defined to
be inserted as a breakpoint for the debugger.
</p>
</blockquote><hr>
<a name='mp_delete_char'></a>
<table width='100%'><tr><td><h2>mp_delete_char</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_delete_char</strong> - Deletes a char.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_delete_char</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Deletes the character in cursor position.
Returns 0 if character could not be deleted
(readonly text, errors, etc).
</p>
</blockquote><hr>
<a name='mp_delete_line'></a>
<table width='100%'><tr><td><h2>mp_delete_line</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_delete_line</strong> - Deletes current line.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_delete_line</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Deletes current line.
Returns 0 if the line could not be deleted
(readonly text, errors, etc).
</p>
</blockquote><hr>
<a name='mp_delete_mark'></a>
<table width='100%'><tr><td><h2>mp_delete_mark</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_delete_mark</strong> - Deletes the marked selection block.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_delete_mark</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Deletes the marked selection block. It is done
by deleting char by char and this is slow; an
optimized version (releasing entire blocks) should
be written.
Returns 0 if text is read-only or there is no
marked selection block.
</p>
</blockquote><hr>
<a name='mp_delete_sys_txt'></a>
<table width='100%'><tr><td><h2>mp_delete_sys_txt</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_delete_sys_txt</strong> - Deletes a text
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_delete_sys_txt</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text to be deleted</dd>
</dl>
<h3>Description</h3>
<p>Destroys a text and its blocks. Only to be
used in special-purpose texts (that returned
by <code class='funcname'>mp_create_sys_txt()</code>).
</p>
</blockquote><hr>
<a name='mp_delete_txt'></a>
<table width='100%'><tr><td><h2>mp_delete_txt</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_delete_txt</strong> - Deletes a text
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_delete_txt</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text to be deleted</dd>
</dl>
<h3>Description</h3>
<p>Deletes a text and its blocks. The next one
in the list (if any) will become the
active one.
</p>
</blockquote><hr>
<a name='mp_empty_txt'></a>
<table width='100%'><tr><td><h2>mp_empty_txt</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_empty_txt</strong> - Empties a text
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_empty_txt</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Empties a text, cleaning all content.
</p>
</blockquote><hr>
<a name='mp_end_tmp_txt'></a>
<table width='100%'><tr><td><h2>mp_end_tmp_txt</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_end_tmp_txt</strong> - Stop using the temporal text
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_end_tmp_txt</strong>(void);</pre>
<h3>Description</h3>
<p>Stop using the temporal copy returned by
<code class='funcname'>mp_get_tmp_txt()</code>. Now it's just a dummy.
</p>
</blockquote><hr>
<a name='mp_find_text'></a>
<table width='100%'><tr><td><h2>mp_find_text</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_find_text</strong> - Find a text by its name
<h3>Synopsis</h3>
<pre class='funcsyn'>
mp_txt * mp_find_txt(char * <em class='funcarg'>name</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>name</em></dt><dd>The name of the text to be found</dd>
</dl>
<h3>Description</h3>
<p>Returns a pointer to a text if found, or NULL
if there is no text with this name.
</p>
</blockquote><hr>
<a name='mp_get_char'></a>
<table width='100%'><tr><td><h2>mp_get_char</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_get_char</strong> - Gets the char at cursor and advances
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_get_char</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Returns the char over the cursor and advances to the right.
Returns '\0' at EOF.
</p>
</blockquote><hr>
<a name='mp_get_encryption_format'></a>
<table width='100%'><tr><td><h2>mp_get_encryption_format</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_get_encryption_format</strong> - Tests if file is encrypted
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_get_encryption_format</strong>(FILE * <em class='funcarg'>f</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>f</em></dt><dd>the file stream</dd>
</dl>
<h3>Description</h3>
<p>Returns the encryption format of the open file <em class='funcarg'>f</em>. 0 means an unencrypted
one (ordinary text file). In any case, the file pointer is left to the
start of the actual file data (i.e., after any possible signatures).
By now, only types 0 (unencrypted) or 1 (ARCFOUR algorithm encryption)
are implemented.
</p>
</blockquote><hr>
<a name='mp_get_str'></a>
<table width='100%'><tr><td><h2>mp_get_str</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_get_str</strong> - Gets a string from a text until a delimiter
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_get_str</strong>(mp_txt * <em class='funcarg'>txt</em>, char * <em class='funcarg'>str</em>, int <em class='funcarg'>maxsize</em>, int <em class='funcarg'>delim</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
<dt><em class='funcarg'>str</em></dt><dd>the buffer where the string is get</dd>
<dt><em class='funcarg'>maxsize</em></dt><dd>maximum size of buffer</dd>
<dt><em class='funcarg'>delim</em></dt><dd>the delimiter to be found</dd>
</dl>
<h3>Description</h3>
<p>Gets a string from a text until the delimiter is found
or the maximum size of buffer is reached.
Returns the number of chars written into <em class='funcarg'>str</em>.
</p>
</blockquote><hr>
<a name='mp_get_tmp_txt'></a>
<table width='100%'><tr><td><h2>mp_get_tmp_txt</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_get_tmp_txt</strong> - Gets a temporal text
<h3>Synopsis</h3>
<pre class='funcsyn'>
mp_txt * <strong class='funcname'>mp_get_tmp_txt</strong>(mp_txt * <em class='funcarg'>otxt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>otxt</em></dt><dd>the original text</dd>
</dl>
<h3>Description</h3>
<p>Returns a text that is a copy of otxt.
</p>
</blockquote><hr>
<a name='mp_get_word'></a>
<table width='100%'><tr><td><h2>mp_get_word</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_get_word</strong> - Gets the word over the cursor.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_get_word</strong>(mp_txt * <em class='funcarg'>txt</em>, char * <em class='funcarg'>buf</em>, int <em class='funcarg'>size</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
<dt><em class='funcarg'>buf</em></dt><dd>the buffer to hold the word</dd>
<dt><em class='funcarg'>size</em></dt><dd>maximum size of the buffer</dd>
</dl>
<h3>Description</h3>
<p>Gets the word over the cursor and writes it over
the buffer, using the global word separators.
</p>
</blockquote><hr>
<a name='mp_insert_char'></a>
<table width='100%'><tr><td><h2>mp_insert_char</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_insert_char</strong> - Inserts a char in cursor position
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_insert_char</strong>(mp_txt * <em class='funcarg'>txt</em>, int <em class='funcarg'>c</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
<dt><em class='funcarg'>c</em></dt><dd>the char</dd>
</dl>
<h3>Description</h3>
<p>Inserts a character, moving forward the cursor position.
Returns 0 if character could not be inserted
(readonly text, errors, etc).
</p>
</blockquote><hr>
<a name='mp_insert_line'></a>
<table width='100%'><tr><td><h2>mp_insert_line</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_insert_line</strong> - Inserts a new line
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_insert_line</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Inserts a new line, taking account of indentations
and unmarking the (possible) block.
</p>
</blockquote><hr>
<a name='mp_insert_tab'></a>
<table width='100%'><tr><td><h2>mp_insert_tab</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_insert_tab</strong> - Inserts a tab
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_insert_tab</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Inserts a tab, moving forward the cursor position.
Returns 0 if character could not be inserted
(readonly text, errors, etc).
</p>
</blockquote><hr>
<a name='mp_is_sep'></a>
<table width='100%'><tr><td><h2>mp_is_sep</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_is_sep</strong> - separator test
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_is_sep</strong>(char <em class='funcarg'>c</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>c</em></dt><dd>the char to test</dd>
</dl>
<h3>Description</h3>
<p>Returns 1 if c is a word separator.
</p>
</blockquote><hr>
<a name='mp_load_file'></a>
<table width='100%'><tr><td><h2>mp_load_file</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_load_file</strong> - Loads a file into the text.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_load_file</strong>(mp_txt * <em class='funcarg'>txt</em>, FILE * <em class='funcarg'>f</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
<dt><em class='funcarg'>f</em></dt><dd>the file</dd>
</dl>
<h3>Description</h3>
<p>Loads a file into the text.
Returns 0 if some character could not be put
(readonly text, errors, etc).
</p>
</blockquote><hr>
<a name='mp_log'></a>
<table width='100%'><tr><td><h2>mp_log</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_log</strong> - Logs to Minimum Profit's internal log
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_log</strong>(char * <<em class='funcarg'>...</em>class='funcarg'><em class='funcarg'>...</em></em>, ...);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>fmt</em></dt><dd>printf() like format string</dd>
<dt><em class='funcarg'>...</em></dt><dd>variable list of arguments</dd>
</dl>
<h3>Description</h3>
<p>Writes a formatted string to the internal log txt.
</p>
</blockquote><hr>
<a name='mp_mark'></a>
<table width='100%'><tr><td><h2>mp_mark</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_mark</strong> - Marks the beginning or end of the selection block.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_mark</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Marks the current cursor position as the beginning or the end
of the selection block. Both boundaries can be reselected.
</p>
</blockquote><hr>
<a name='mp_mark_match'></a>
<table width='100%'><tr><td><h2>mp_mark_match</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_mark_match</strong> - Marks (selects) the last successful match
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_mark_match</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Marks (as a block) the last successful match.
</p>
</blockquote><hr>
<a name='mp_marked'></a>
<table width='100%'><tr><td><h2>mp_marked</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_marked</strong> - Tests if selection block is marked.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_marked</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Returns 1 if a selection block is marked.
</p>
</blockquote><hr>
<a name='mp_match_bracket'></a>
<table width='100%'><tr><td><h2>mp_match_bracket</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_match_bracket</strong> - Matches the bracket over the cursor
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_match_bracket</strong>(mp_txt * <em class='funcarg'>txt</em>, int <em class='funcarg'>max</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
<dt><em class='funcarg'>max</em></dt><dd>maximum characters to search (-1, no limit)</dd>
</dl>
<h3>Description</h3>
<p>If the cursor is over an opening bracket (round, square or curly)
of over a closing one, this function sets the internal brx and bry
of <em class='funcarg'>txt</em> with the position of the twin matching bracket, searching
forward or backwards, respectively. A maximum of <em class='funcarg'>max</em> characters
will be tested, unless set to -1, where the full text will be scanned.
</p>
</blockquote><hr>
<a name='mp_modified'></a>
<table width='100%'><tr><td><h2>mp_modified</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_modified</strong> - Marks a text as modified
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_modified</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Marks a text as modified.
</p>
</blockquote><hr>
<a name='mp_move_bof'></a>
<table width='100%'><tr><td><h2>mp_move_bof</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_move_bof</strong> - Moves to beginning of file
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_move_bof</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Moves to the beginning of the file.
</p>
</blockquote><hr>
<a name='mp_move_bol'></a>
<table width='100%'><tr><td><h2>mp_move_bol</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_move_bol</strong> - Move to the beginning of the line.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_move_bol</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Moves to the beginning of the current line.
</p>
</blockquote><hr>
<a name='mp_move_down'></a>
<table width='100%'><tr><td><h2>mp_move_down</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_move_down</strong> - Moves cursor one line down
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_move_down</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Moves the cursor one line down. Returns 0 if
the movement could not be done (i.e., at EOF). The
x position is preserved if possible.
</p>
</blockquote><hr>
<a name='mp_move_eof'></a>
<table width='100%'><tr><td><h2>mp_move_eof</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_move_eof</strong> - Moves to end of file
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_move_eof</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Moves to the last line of the file. If the last line doesn't
end in a new line, the cursor may not actually be at the
end of file; use <code class='funcname'>mp_move_eol()</code> after it to be sure.
</p>
</blockquote><hr>
<a name='mp_move_eol'></a>
<table width='100%'><tr><td><h2>mp_move_eol</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_move_eol</strong> - Move to the end of the line.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_move_eol</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Moves to the end of the current line.
</p>
</blockquote><hr>
<a name='mp_move_left'></a>
<table width='100%'><tr><td><h2>mp_move_left</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_move_left</strong> - Moves cursor one char to the right
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_move_left</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Moves the cursor one char to the left. Returns 0 if
the movement could not be done (i.e., at BOF). If it
moves to the left of the first column, moves to the
end of the previous line.
</p>
</blockquote><hr>
<a name='mp_move_right'></a>
<table width='100%'><tr><td><h2>mp_move_right</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_move_right</strong> - Moves cursor one char to the right
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_move_right</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Moves the cursor one char to the right. Returns 0 if
the movement could not be done (i.e., at EOF). If
cursor moves over the end of line, it moves to
the beginning of the next line.
</p>
</blockquote><hr>
<a name='mp_move_to_visual_column'></a>
<table width='100%'><tr><td><h2>mp_move_to_visual_column</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_move_to_visual_column</strong> - Tries to recover a column position
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_move_to_visual_column</strong>(mp_txt * <em class='funcarg'>txt</em>, int <em class='funcarg'>r</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
<dt><em class='funcarg'>r</em></dt><dd>the position</dd>
</dl>
<h3>Description</h3>
<p>Tries to move to the <em class='funcarg'>r</em> visual column position, taking
tabs into account.
</p>
</blockquote><hr>
<a name='mp_move_up'></a>
<table width='100%'><tr><td><h2>mp_move_up</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_move_up</strong> - Moves cursor one line up
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_move_up</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Moves the cursor one line up. Returns 0 if
the movement could not be done (i.e., at BOF). The
x position is preserved if possible.
</p>
</blockquote><hr>
<a name='mp_move_word_left'></a>
<table width='100%'><tr><td><h2>mp_move_word_left</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_move_word_left</strong> - Moves a word to the left.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_move_word_left</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Moves the cursor one word to the left. Returns 0 if
the movement could not be done (i.e., at BOF).
</p>
</blockquote><hr>
<a name='mp_move_word_right'></a>
<table width='100%'><tr><td><h2>mp_move_word_right</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_move_word_right</strong> - Moves a word to the right.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_move_word_right</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Moves the cursor one word to the right. Returns 0 if
the movement could not be done (i.e., at EOF).
</p>
</blockquote><hr>
<a name='mp_move_xy'></a>
<table width='100%'><tr><td><h2>mp_move_xy</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_move_xy</strong> - Moves to x, y position
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_move_xy</strong>(mp_txt * <em class='funcarg'>txt</em>, int <em class='funcarg'>x</em>, int <em class='funcarg'>y</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
<dt><em class='funcarg'>x</em></dt><dd>the new x position</dd>
<dt><em class='funcarg'>y</em></dt><dd>the new y position</dd>
</dl>
<h3>Description</h3>
<p>Sets the cursor position of text to x, y. Returns 0
if the movement cannot be done.
</p>
</blockquote><hr>
<a name='mp_name_txt'></a>
<table width='100%'><tr><td><h2>mp_name_txt</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_name_txt</strong> - Names a text
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_name_txt</strong>(mp_txt * <em class='funcarg'>txt</em>, char * <em class='funcarg'>name</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>The text to be named</dd>
<dt><em class='funcarg'>name</em></dt><dd>the name to set</dd>
</dl>
<h3>Description</h3>
<p>Assigns <em class='funcarg'>name</em> to a text. This usually is the file name.
If name is NULL, the empty string will be set.
</p>
</blockquote><hr>
<a name='mp_next_txt'></a>
<table width='100%'><tr><td><h2>mp_next_txt</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_next_txt</strong> - Select next text
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_next_txt</strong>(void);</pre>
<h3>Description</h3>
<p>Selects the next text as the active one.
</p>
</blockquote><hr>
<a name='mp_notify_stub'></a>
<table width='100%'><tr><td><h2>mp_notify_stub</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_notify_stub</strong> - Dummy notify function
<h3>Synopsis</h3>
<pre class='funcsyn'>
static void <strong class='funcname'>mp_notify_stub</strong>(char * <em class='funcarg'>str</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>str</em></dt><dd>message (ignored)</dd>
</dl>
<h3>Description</h3>
<p>_mp_notify points here at startup. The upper level
must provide a function (with this prototype), that
will be called from within the engine when a message
must be notified to the user (str will be that message).
</p>
</blockquote><hr>
<a name='mp_over_char'></a>
<table width='100%'><tr><td><h2>mp_over_char</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_over_char</strong> - Overwrites a char.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_over_char</strong>(mp_txt * txt, char <em class='funcarg'>c</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>arg</em></dt><dd>the text</dd>
<dt><em class='funcarg'>c</em></dt><dd>the char</dd>
</dl>
<h3>Description</h3>
<p>Overwrites current char, moving forward the cursor position.
Returns 0 if character could not be written
(readonly text, errors, etc).
</p>
</blockquote><hr>
<a name='mp_paste_mark'></a>
<table width='100%'><tr><td><h2>mp_paste_mark</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_paste_mark</strong> - Pastes the clipboard into cursor position.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_paste_mark</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Pastes the clipboard into cursor position.
Returns 0 if text is read-only or if there is no
clipboard to paste.
</p>
</blockquote><hr>
<a name='mp_peek_char'></a>
<table width='100%'><tr><td><h2>mp_peek_char</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_peek_char</strong> - Returns the character over the cursor
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_peek_char</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Returns the character over the cursor without moving it.
If the cursor is at EOF, '\0' is returned.
</p>
</blockquote><hr>
<a name='mp_prev_txt'></a>
<table width='100%'><tr><td><h2>mp_prev_txt</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_prev_txt</strong> - Select previous text
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_prev_txt</strong>(void);</pre>
<h3>Description</h3>
<p>Selects the previous text as the active one.
</p>
</blockquote><hr>
<a name='mp_put_char'></a>
<table width='100%'><tr><td><h2>mp_put_char</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_put_char</strong> - Writes a char.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_put_char</strong>(mp_txt * txt, int <em class='funcarg'>c</em>, int <em class='funcarg'>insert</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>arg</em></dt><dd>the text</dd>
<dt><em class='funcarg'>c</em></dt><dd>the char</dd>
<dt><em class='funcarg'>insert</em></dt><dd>current insert status</dd>
</dl>
<h3>Description</h3>
<p>Inserts or overwrites a character, depending of the
insert status. Also manages word wrapping,
tabs and newlines. Main character writing function.
Returns 0 if character could not be put
(readonly text, errors, etc).
</p>
</blockquote><hr>
<a name='mp_put_str'></a>
<table width='100%'><tr><td><h2>mp_put_str</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_put_str</strong> - Writes a string.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_put_str</strong>(mp_txt * <em class='funcarg'>txt</em>, char * <em class='funcarg'>str</em>, int <em class='funcarg'>insert</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
<dt><em class='funcarg'>str</em></dt><dd>the string</dd>
<dt><em class='funcarg'>insert</em></dt><dd>current insert status</dd>
</dl>
<h3>Description</h3>
<p>Writes a string, calling <code class='funcname'>mp_put_char()</code> for each character.
Returns 0 if any character could not be put
(readonly text, errors, etc).
</p>
</blockquote><hr>
<a name='mp_put_strf'></a>
<table width='100%'><tr><td><h2>mp_put_strf</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_put_strf</strong> - Writes a string with formatting
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_put_strf</strong>(mp_txt * <em class='funcarg'>txt</em>, char * <em class='funcarg'>fmt</em>, ...);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
<dt><em class='funcarg'>fmt</em></dt><dd>the format string</dd>
</dl>
<h3>Description</h3>
<p>Writes a string into <em class='funcarg'>txt</em>, using <em class='funcarg'>fmt</em> as a
formatting <code class='funcname'>printf()</code>-like string.
</p>
</blockquote><hr>
<a name='mp_recalc_x'></a>
<table width='100%'><tr><td><h2>mp_recalc_x</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_recalc_x</strong> - Recalculates txt->x
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_recalc_x</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Recalculates the value of the x cursor position.
Only called internally.
</p>
</blockquote><hr>
<a name='mp_reformat_paragraph'></a>
<table width='100%'><tr><td><h2>mp_reformat_paragraph</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_reformat_paragraph</strong> - Reformats a paragraph using word-wrapping
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_reformat_paragraph</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Cuts current paragraph (i.e. a block of text delimited by two blank
lines), and reformats it using word-wrapping. If word-wrapping is not
active, nothing is done.
</p>
</blockquote><hr>
<a name='mp_replace'></a>
<table width='100%'><tr><td><h2>mp_replace</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_replace</strong> - Seeks and replaces a string.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_replace</strong>(mp_txt * <em class='funcarg'>txt</em>, char * <em class='funcarg'>src</em>, char * <em class='funcarg'>des</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
<dt><em class='funcarg'>src</em></dt><dd>the string to be searched.</dd>
<dt><em class='funcarg'>des</em></dt><dd>the string to replace src.</dd>
</dl>
<h3>Description</h3>
<p>Seeks a string and, if it is found, replaces it with another.
Returns 0 if the text is read-only or the string is not found.
</p>
</blockquote><hr>
<a name='mp_save_file'></a>
<table width='100%'><tr><td><h2>mp_save_file</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_save_file</strong> - Writes the text into file
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_save_file</strong>(mp_txt * <em class='funcarg'>txt</em>, FILE * <em class='funcarg'>f</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
<dt><em class='funcarg'>f</em></dt><dd>the file</dd>
</dl>
<h3>Description</h3>
<p>Writes the text into the file, previously opened
for writing.
Returns always 1 (no error checking is done).
</p>
</blockquote><hr>
<a name='mp_save_state'></a>
<table width='100%'><tr><td><h2>mp_save_state</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_save_state</strong> - Saves/restores current state
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_save_state</strong>(int <em class='funcarg'>state</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>state</em></dt><dd>state flag</dd>
</dl>
<h3>Description</h3>
<p>Saves (if <em class='funcarg'>state</em> is > 0) or restores (<em class='funcarg'>state</em> < 0) current state
of word-wrapping and auto-indenting.
</p>
</blockquote><hr>
<a name='mp_seek'></a>
<table width='100%'><tr><td><h2>mp_seek</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_seek</strong> - Seeks the string.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_seek</strong>(mp_txt * <em class='funcarg'>txt</em>, char * <em class='funcarg'>str</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
<dt><em class='funcarg'>str</em></dt><dd>the string</dd>
</dl>
<h3>Description</h3>
<p>Seeks the string into text. If found, the cursor is moved there.
Returns 1 if the string is found.
</p>
</blockquote><hr>
<a name='mp_seek_plain'></a>
<table width='100%'><tr><td><h2>mp_seek_plain</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_seek_plain</strong> - Seeks the string as plain text.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_seek_plain</strong>(mp_txt * <em class='funcarg'>txt</em>, char * <em class='funcarg'>str</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
<dt><em class='funcarg'>str</em></dt><dd>the string</dd>
</dl>
<h3>Description</h3>
<p>Seeks the string into text. If found, the cursor is moved there.
The string must be found as-is (i.e., it does not contain any
special characters). Returns 1 if the string is found.
</p>
</blockquote><hr>
<a name='mp_seek_regex'></a>
<table width='100%'><tr><td><h2>mp_seek_regex</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_seek_regex</strong> - Seeks the string as a regular expression.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_seek_regex</strong>(mp_txt * <em class='funcarg'>txt</em>, char * <em class='funcarg'>str</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
<dt><em class='funcarg'>str</em></dt><dd>the string</dd>
</dl>
<h3>Description</h3>
<p>Seeks the string into text. If found, the cursor is moved there.
The string must be a GNU regular expression.
Returns 1 if the string is found.
</p>
</blockquote><hr>
<a name='mp_set_notify'></a>
<table width='100%'><tr><td><h2>mp_set_notify</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_set_notify</strong> - Sets the notify function.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_set_notify</strong>(void (* <em class='funcarg'>func</em>)(char *));</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>func</em></dt><dd>the new notify function.</dd>
</dl>
<h3>Description</h3>
<p>The notify function is called from inside file loading
and searching routines to inform the user about what is
happening, sending a message in a character string.
This function changes the current (dummy) one.
</p>
</blockquote><hr>
<a name='mp_set_password'></a>
<table width='100%'><tr><td><h2>mp_set_password</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_set_password</strong> - Assigns a password to a text
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_set_password</strong>(mp_txt * <em class='funcarg'>txt</em>, char * <em class='funcarg'>passwd</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
<dt><em class='funcarg'>passwd</em></dt><dd>the password</dd>
</dl>
<h3>Description</h3>
<p>Assigns a password to a text. Next time the text is loaded or saved,
the password will be used to en/decrypt it.
</p>
</blockquote><hr>
<a name='mp_show_sys_txt'></a>
<table width='100%'><tr><td><h2>mp_show_sys_txt</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_show_sys_txt</strong> - Shows an internal (system) text
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_show_sys_txt</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the system text</dd>
</dl>
<h3>Description</h3>
<p>Links to the 'visible' chain of normal (user) texts
a internal (system) text, as the clipboard or the
log. This make them be shown as read-only texts.
</p>
</blockquote><hr>
<a name='mp_shutdown'></a>
<table width='100%'><tr><td><h2>mp_shutdown</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_shutdown</strong> - Shuts down the mp core.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_shutdown</strong>(void);</pre>
<h3>Description</h3>
<p>Shuts down the mp core. By now, it does nothing.
</p>
</blockquote><hr>
<a name='mp_sort'></a>
<table width='100%'><tr><td><h2>mp_sort</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_sort</strong> - Sorts a txt buffer
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_sort</strong>(mp_txt *<em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>text to sort</dd>
</dl>
<h3>Description</h3>
<p>Sorts a buffer. If the mark is defined it will sort only the
contents of the txt inside the mark
</p>
</blockquote><hr>
<a name='mp_startup'></a>
<table width='100%'><tr><td><h2>mp_startup</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_startup</strong> - Starts up the mp core.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_startup</strong>(void);</pre>
<h3>Description</h3>
<p>Starts up the mp core. By now, it does nothing.
Returns 1 is succesful.
</p>
</blockquote><hr>
<a name='mp_unmark'></a>
<table width='100%'><tr><td><h2>mp_unmark</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_unmark</strong> - Unmarks the selection block.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mp_unmark</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Unmarks the selection block.
</p>
</blockquote><hr>
<a name='mp_visual_column'></a>
<table width='100%'><tr><td><h2>mp_visual_column</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mp_visual_column</strong> - Returns the visual column
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mp_visual_column</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Returns the visual column where the cursor is, taking into
account the possible tabs in the line. If there are no
tabs in the line, the return value should be equal to txt->x.
</p>
</blockquote><hr>
<a name='mpc_read_config'></a>
<table width='100%'><tr><td><h2>mpc_read_config</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpc_read_config</strong> - Reads and parses the configuration file
<h3>Synopsis</h3>
<pre class='funcsyn'>
static void _mpc_read_config(char * file, int level);</pre>
<h3>Description</h3>
<p>Reads and parses the configuration file.
</p>
</blockquote><hr>
<a name='mpf_bind_key'></a>
<table width='100%'><tr><td><h2>mpf_bind_key</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpf_bind_key</strong> - Binds a key to a function
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpf_bind_key</strong>(char * <em class='funcarg'>key_name</em>, char * <em class='funcarg'>func_name</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>key_name</em></dt><dd>name of the key to be bound</dd>
<dt><em class='funcarg'>func_name</em></dt><dd>name of the function</dd>
</dl>
<h3>Description</h3>
<p>Binds a key to a function. <em class='funcarg'>func_name</em> is the name of the
function to be assigned, or <none> if the key is to be
unbounded. <em class='funcarg'>key_name</em> is the name of the key, or <all>
if the function is to be bound to ALL keys (mainly thought
to be used in combination with <none> to clean all key
bindings). Returns 0 if <em class='funcarg'>key_name</em>
or <em class='funcarg'>func_name</em> is not a defined one, or 1 if the key was bound.
</p>
</blockquote><hr>
<a name='mpf_call_func_by_funcname'></a>
<table width='100%'><tr><td><h2>mpf_call_func_by_funcname</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpf_call_func_by_funcname</strong> - Calls a function by its name
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpf_call_func_by_funcname</strong>(char *func_name,char **args);</pre>
<h3>Description</h3>
<p><em class='funcarg'>func_name</em>: name of the function
<em class='funcarg'>args</em>: additional optional arguments to pass
<p>
Returns -1 for function not found, or the return value of
the function being called with should correspond to:
0 for no change, 1 for redraw, 2 for update tabs and redraw.
</p>
</blockquote><hr>
<a name='mpf_desc_user_fn'></a>
<table width='100%'><tr><td><h2>mpf_desc_user_fn</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpf_desc_user_fn</strong> - Redefines a user function description
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpf_desc_user_fn</strong>(char *func,char *desc);</pre>
<h3>Description</h3>
<p><em class='funcarg'>func</em>: function name
<em class='funcarg'>desc</em>: command description
<p>
This function lets you change the description of a user
defined function. Potentially for the purpose of localisation.
</p>
</blockquote><hr>
<a name='mpf_get_desc_by_funcname'></a>
<table width='100%'><tr><td><h2>mpf_get_desc_by_funcname</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpf_get_desc_by_funcname</strong> - Gets a function description by its name
<h3>Synopsis</h3>
<pre class='funcsyn'>
char * <strong class='funcname'>mpf_get_desc_by_funcname</strong>(char * <em class='funcarg'>func_name</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>func_name</em></dt><dd>name of the function</dd>
</dl>
<h3>Description</h3>
<p>Returns a pointer to the <em class='funcarg'>func_name</em> description text,
or NULL if it's not found.
</p>
</blockquote><hr>
<a name='mpf_get_func_by_keyname'></a>
<table width='100%'><tr><td><h2>mpf_get_func_by_keyname</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpf_get_func_by_keyname</strong> - Gets a function by the key bound to it
<h3>Synopsis</h3>
<pre class='funcsyn'>
struct _mpf_functions * <strong class='funcname'>mpf_get_func_by_keyname</strong>(char * <em class='funcarg'>key_name</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>key_name</em></dt><dd>name of the key</dd>
</dl>
<h3>Description</h3>
<p>Returns a pointer to the function bound to the <em class='funcarg'>key_name</em>, or
NULL if no function is bound to that key name.
</p>
</blockquote><hr>
<a name='mpf_get_funcname_by_keyname'></a>
<table width='100%'><tr><td><h2>mpf_get_funcname_by_keyname</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpf_get_funcname_by_keyname</strong> - Returns the function name bound to a key
<h3>Synopsis</h3>
<pre class='funcsyn'>
char * <strong class='funcname'>mpf_get_funcname_by_keyname</strong>(char * <em class='funcarg'>key_name</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>key_name</em></dt><dd>name of the key</dd>
</dl>
<h3>Description</h3>
<p>Returns the name of the function bound to the <em class='funcarg'>key_name</em>,
or NULL otherwise.
</p>
</blockquote><hr>
<a name='mpf_get_keyname_by_funcname'></a>
<table width='100%'><tr><td><h2>mpf_get_keyname_by_funcname</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpf_get_keyname_by_funcname</strong> - Returns the key bound to a function
<h3>Synopsis</h3>
<pre class='funcsyn'>
char * <strong class='funcname'>mpf_get_keyname_by_funcname</strong>(char * <em class='funcarg'>func_name</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>func_name</em></dt><dd>name of the function</dd>
</dl>
<h3>Description</h3>
<p>Returns the name of the key bound to the function called
<em class='funcarg'>func_name</em>, or NULL of none is.
</p>
</blockquote><hr>
<a name='mpf_key_help'></a>
<table width='100%'><tr><td><h2>mpf_key_help</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpf_key_help</strong> - Shows the key binding help to the user
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpf_key_help</strong>() /* DESC: Help on keys */;</pre>
<h3>Description</h3>
<p>Shows the key binding help to the user.
</p>
</blockquote><hr>
<a name='mpf_makeargs'></a>
<table width='100%'><tr><td><h2>mpf_makeargs</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpf_makeargs</strong> - Splits a string into an argument list
<h3>Synopsis</h3>
<pre class='funcsyn'>
char **<strong class='funcname'>mpf_makeargs</strong>(char *str);</pre>
<h3>Description</h3>
<p><em class='funcarg'>str</em>: string to split
<p>
Splits a string into an argument list. It is mindful of respecting
double quotes and backslashes. Returns an array of pointers.
The caller is responsible of freeing the returned pointer.
Returns NULL on failure.
</p>
</blockquote><hr>
<a name='mpf_new_user_fn'></a>
<table width='100%'><tr><td><h2>mpf_new_user_fn</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpf_new_user_fn</strong> - Create an user defined function
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpf_new_user_fn</strong>(char *func,char *desc,char **args);</pre>
<h3>Description</h3>
<p><em class='funcarg'>func</em>: function name
<em class='funcarg'>desc</em>: function description
<em class='funcarg'>args</em>: functions to execute
<p>
This function creates an user defined functions.
User defined functions are sequence of functions that can be defined
as function names and later bound to different keys or menu items.
</p>
</blockquote><hr>
<a name='mpf_toggle_function_value'></a>
<table width='100%'><tr><td><h2>mpf_toggle_function_value</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpf_toggle_function_value</strong> - Returns the value of a toggle function
<h3>Synopsis</h3>
<pre class='funcsyn'>
int * <strong class='funcname'>mpf_toggle_function_value</strong>(char * <em class='funcarg'>func_name</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>func_name</em></dt><dd>name of the function</dd>
</dl>
<h3>Description</h3>
<p>Returns a pointer to an integer containing the boolean value
of a toggle function, or NULL if <em class='funcarg'>func_name</em> does not exist.
</p>
</blockquote><hr>
<a name='mpi_args_1'></a>
<table width='100%'><tr><td><h2>mpi_args_1</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_args_1</strong> - Command line argument processing, 1st pass
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_args_1</strong>(int <em class='funcarg'>argc</em>, char * <em class='funcarg'>argv</em>[]);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>argc</em></dt><dd>argument count</dd>
<dt><em class='funcarg'>argv</em></dt><dd>the arguments</dd>
</dl>
<h3>Description</h3>
<p>First pass to argument processing, mainly on/off switches.
Returns -1 if usage printing needed, -2 if version number,
0 otherwise.
</p>
</blockquote><hr>
<a name='mpi_args_2'></a>
<table width='100%'><tr><td><h2>mpi_args_2</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_args_2</strong> - Command line argument processing, 2nd pass
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_args_2</strong>(int <em class='funcarg'>argc</em>, char * <em class='funcarg'>argv</em>[]);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>argc</em></dt><dd>argument count</dd>
<dt><em class='funcarg'>argv</em></dt><dd>the arguments</dd>
</dl>
<h3>Description</h3>
<p>Second pass to argument processing, commands and files to load.
Returns -1 if an invalid mode is requested, -2 if non-
existing tags are requested, 0 otherwise.
</p>
</blockquote><hr>
<a name='mpi_close'></a>
<table width='100%'><tr><td><h2>mpi_close</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_close</strong> - Closes the text.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_close</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Closes the text. If it has changed, asks user if
file must be saved; if ok, file is saved using <code class='funcname'>mpi_save()</code>.
</p>
</blockquote><hr>
<a name='mpi_color_draw_all'></a>
<table width='100%'><tr><td><h2>mpi_color_draw_all</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_color_draw_all</strong> - Draws the document window using colors.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpi_color_draw_all</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Draws the document window, with syntax highlighting decorations and
other colors, if applicable.
</p>
</blockquote><hr>
<a name='mpi_completion'></a>
<table width='100%'><tr><td><h2>mpi_completion</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_completion</strong> - Tries to complete a symbol
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_completion</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Takes the word below the cursor and tries to find it in
the tags. The matching tags are shown in a list,
and the user is asked for selection; upon user confirmation,
the word below the cursor is replaced by the selected tag.
</p>
</blockquote><hr>
<a name='mpi_current_list'></a>
<table width='100%'><tr><td><h2>mpi_current_list</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_current_list</strong> - Shows a selection list with the opened files
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpi_current_list</strong>(void);</pre>
<h3>Description</h3>
<p>Shows a selection list with the opened files. Selecting one of
them makes it the active one.
</p>
</blockquote><hr>
<a name='mpi_draw_all'></a>
<table width='100%'><tr><td><h2>mpi_draw_all</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_draw_all</strong> - Draws the document window.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpi_draw_all</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Draws the document window.
</p>
</blockquote><hr>
<a name='mpi_exec'></a>
<table width='100%'><tr><td><h2>mpi_exec</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_exec</strong> - Executes a command related to text.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_exec</strong>(mp_txt * <em class='funcarg'>txt</em>, char *<em class='funcarg'>cmd</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
<dt><em class='funcarg'>cmd</em></dt><dd>the command to execute</dd>
</dl>
<h3>Description</h3>
<p>Asks for a system command to be executed if none was specified
in <em class='funcarg'>cmd</em>.
If the command is preceded by the | (pipe) char, the complete text
is sent as the command's standard input;
If the command is preceded by the < char, the standard output is
displayed in a new read-only buffer. If the character following <
is another <, then the text between a < > will be used as the buffer
title.
If the command is preceded by the @ char, the command is executed
as a spawned. i.e. the command gets full control of the screen.
Otherwise, the standard output of the command is written into
cursor position.
</p>
</blockquote><hr>
<a name='mpi_exec_function'></a>
<table width='100%'><tr><td><h2>mpi_exec_function</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_exec_function</strong> - Executes an editor function
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_exec_function</strong>(void);</pre>
<h3>Description</h3>
<p>Asks for an internal editor function name and
executes it on the currently active text. Returns
the function's exit code.
</p>
</blockquote><hr>
<a name='mpi_find_tag'></a>
<table width='100%'><tr><td><h2>mpi_find_tag</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_find_tag</strong> - Asks for a tag and finds it
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_find_tag</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Asks for a tag and searches it. If tag is found, the
file that has it is shown, or the user is informed otherwise.
</p>
</blockquote><hr>
<a name='mpi_goto'></a>
<table width='100%'><tr><td><h2>mpi_goto</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_goto</strong> - Moves to a line by its number
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_goto</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the txt</dd>
</dl>
<h3>Description</h3>
<p>Asks for a line number and moves the cursor there.
</p>
</blockquote><hr>
<a name='mpi_grep'></a>
<table width='100%'><tr><td><h2>mpi_grep</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_grep</strong> - Greps (searches text) in several files
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_grep</strong>(void);</pre>
<h3>Description</h3>
<p>Asks for a string and a file spec and scans the files
searching for the string. A list with the search hits
is shown, asking the user to select one; the file
will be open (if necessary) and the cursor moved to
the selected line.
</p>
</blockquote><hr>
<a name='mpi_help'></a>
<table width='100%'><tr><td><h2>mpi_help</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_help</strong> - Cries for help
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_help</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Takes the word below the cursor and asks the system
for help.
</p>
</blockquote><hr>
<a name='mpi_insert_template'></a>
<table width='100%'><tr><td><h2>mpi_insert_template</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_insert_template</strong> - Shows a list with the available templates
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_insert_template</strong>(void);</pre>
<h3>Description</h3>
<p>Shows a list with the available templates to select one.
If ENTER is pressed, the template is inserted into cursor
position.
</p>
</blockquote><hr>
<a name='mpi_move_page_down'></a>
<table width='100%'><tr><td><h2>mpi_move_page_down</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_move_page_down</strong> - Moves one page down
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_move_page_down</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Moves one page down.
</p>
</blockquote><hr>
<a name='mpi_move_page_up'></a>
<table width='100%'><tr><td><h2>mpi_move_page_up</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_move_page_up</strong> - Moves one page up
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_move_page_up</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Moves one page up.
</p>
</blockquote><hr>
<a name='mpi_move_wheel_down'></a>
<table width='100%'><tr><td><h2>mpi_move_wheel_down</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_move_wheel_down</strong> - Moves preferred number of rows down
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_move_wheel_down</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Moves preferred number of rows down.
Moves a full page if preferred is 0 or greater than a page of rows.
</p>
</blockquote><hr>
<a name='mpi_move_wheel_up'></a>
<table width='100%'><tr><td><h2>mpi_move_wheel_up</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_move_wheel_up</strong> - Moves preferred number of rows up
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_move_wheel_up</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Moves preferred number of rows up.
Moves a full page if preferred is 0 or greater than a page of rows.
</p>
</blockquote><hr>
<a name='mpi_new'></a>
<table width='100%'><tr><td><h2>mpi_new</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_new</strong> - Creates a new text
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_new</strong>(void);</pre>
<h3>Description</h3>
<p>Creates an empty unnamed text, unless an unnamed text
already exists; in that case, it's made the current one.
</p>
</blockquote><hr>
<a name='mpi_open'></a>
<table width='100%'><tr><td><h2>mpi_open</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_open</strong> - Loads a file.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpi_open</strong>(char * <em class='funcarg'>name</em>, int <em class='funcarg'>reopen</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>name</em></dt><dd>the file name.</dd>
<dt><em class='funcarg'>reopen</em></dt><dd>if reopening is allowed.</dd>
</dl>
<h3>Description</h3>
<p>Opens a file and sets it as the current one, or
otherwise communicates the error to the user.
</p>
</blockquote><hr>
<a name='mpi_play_macro'></a>
<table width='100%'><tr><td><h2>mpi_play_macro</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_play_macro</strong> - Plays the previously recorded macro
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpi_play_macro</strong>(void);</pre>
<h3>Description</h3>
<p>Plays the previously recorded macro.
</p>
</blockquote><hr>
<a name='mpi_process'></a>
<table width='100%'><tr><td><h2>mpi_process</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_process</strong> - Main action processing function
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_process</strong>(int <em class='funcarg'>c</em>, char * <em class='funcarg'>key_name</em>, char * <em class='funcarg'>func_name</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>c</em></dt><dd>character pressed</dd>
<dt><em class='funcarg'>key_name</em></dt><dd>name of the key to process</dd>
<dt><em class='funcarg'>func_name</em></dt><dd>name of the function to execute</dd>
</dl>
<h3>Description</h3>
<p>Main action processing function. If <em class='funcarg'>keyname</em> is not null,
the function associated to it is executed; else, if <em class='funcarg'>funcname</em>
is not null, the function with that name is executed;
otherwise, the <em class='funcarg'>c</em> character is inserted into the
currently active text. Based upon the function return
value, a complete or partial redraw is ordered to the
underlying driver; other actions as macro processing
or menu toggling are done.
</p>
</blockquote><hr>
<a name='mpi_record_macro'></a>
<table width='100%'><tr><td><h2>mpi_record_macro</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_record_macro</strong> - Starts/stops recording a macro
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpi_record_macro</strong>(void);</pre>
<h3>Description</h3>
<p>Starts or stops recording a macro.
</p>
</blockquote><hr>
<a name='mpi_replace'></a>
<table width='100%'><tr><td><h2>mpi_replace</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_replace</strong> - Searchs and replaces a text
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_replace</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the txt</dd>
</dl>
<h3>Description</h3>
<p>Asks for two strings, one to be searched and the other to
replace the first one if found. It also asks if this replacement
should be done to the end of the text. If found, the cursor
is left there, or the user is informed otherwise.
</p>
</blockquote><hr>
<a name='mpi_replace_all'></a>
<table width='100%'><tr><td><h2>mpi_replace_all</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_replace_all</strong> - Replaces a string in all open files
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_replace_all</strong>(void);</pre>
<h3>Description</h3>
<p>Asks for two strings, one to be searched and the other to
replace the first one if found. The search+replace is
performed onto all the currently open texts. No information
is shown to the user.
</p>
</blockquote><hr>
<a name='mpi_save'></a>
<table width='100%'><tr><td><h2>mpi_save</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_save</strong> - Saves the text.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_save</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Saves the text. If it already has a name, saves directly
to disk, otherwise asks for one using <code class='funcname'>mpi_save_as()</code>.
</p>
</blockquote><hr>
<a name='mpi_save_as'></a>
<table width='100%'><tr><td><h2>mpi_save_as</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_save_as</strong> - Asks for a name for the text and save.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_save_as</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Asks for a name for the text and saves it. If the
text already has a name, it is replaced.
On error, communicates it to the user.
</p>
</blockquote><hr>
<a name='mpi_seek'></a>
<table width='100%'><tr><td><h2>mpi_seek</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_seek</strong> - Seeks a text
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_seek</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Asks for a string to be searched and searches the text,
positioning the cursor there if it's found or signalling
the user otherwise.
</p>
</blockquote><hr>
<a name='mpi_seek_next'></a>
<table width='100%'><tr><td><h2>mpi_seek_next</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_seek_next</strong> - Seeks a text again
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_seek_next</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>the text</dd>
</dl>
<h3>Description</h3>
<p>Seeks again the previously entered string in a text,
positioning the cursor there if it's found or signalling
the user otherwise.
</p>
</blockquote><hr>
<a name='mpi_set_tab_size'></a>
<table width='100%'><tr><td><h2>mpi_set_tab_size</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_set_tab_size</strong> - Asks for a tab size value
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_set_tab_size</strong>(void);</pre>
<h3>Description</h3>
<p>Asks for a tab size value and sets it.
</p>
</blockquote><hr>
<a name='mpi_set_word_wrap'></a>
<table width='100%'><tr><td><h2>mpi_set_word_wrap</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_set_word_wrap</strong> - Asks for a word wrapping value
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpi_set_word_wrap</strong>(void);</pre>
<h3>Description</h3>
<p>Asks for a word wrapping value and sets it.
</p>
</blockquote><hr>
<a name='mpi_shutdown'></a>
<table width='100%'><tr><td><h2>mpi_shutdown</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_shutdown</strong> - Shutdown interface function.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpi_shutdown</strong>(void);</pre>
<h3>Description</h3>
<p>Shuts down the interface.
</p>
</blockquote><hr>
<a name='mpi_startup'></a>
<table width='100%'><tr><td><h2>mpi_startup</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_startup</strong> - Startup interface function.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpi_startup</strong>(void);</pre>
<h3>Description</h3>
<p>Starts up the interface.
</p>
</blockquote><hr>
<a name='mpi_sync'></a>
<table width='100%'><tr><td><h2>mpi_sync</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpi_sync</strong> - Synchronizes the modified texts to disk
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpi_sync</strong>(void);</pre>
<h3>Description</h3>
<p>Synchonizes the modified texts saving its contents to disk.
</p>
</blockquote><hr>
<a name='mpl_set_language'></a>
<table width='100%'><tr><td><h2>mpl_set_language</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpl_set_language</strong> - Sets the current language
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpl_set_language</strong>(char * <em class='funcarg'>langname</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>langname</em></dt><dd>name of the language to be set</dd>
</dl>
<h3>Description</h3>
<p>Sets the current language for language-dependent strings.
The <em class='funcarg'>langname</em> can be a two letter standard or the english
name for the language. If the required language is not
found in the internal database, english is set.
</p>
</blockquote><hr>
<a name='mps_auto_synhi'></a>
<table width='100%'><tr><td><h2>mps_auto_synhi</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mps_auto_synhi</strong> - Autodetects syntax hilight mode
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mps_auto_synhi</strong>(mp_txt * <em class='funcarg'>txt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>txt</em></dt><dd>text to inspect</dd>
</dl>
<h3>Description</h3>
<p>Tries to detect the type of the document in txt by
the file extension and the content in the first
lines. If a type is matched, internal synhi index
txt->synhi is set.
</p>
</blockquote><hr>
<a name='mps_enumerate_modes'></a>
<table width='100%'><tr><td><h2>mps_enumerate_modes</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mps_enumerate_modes</strong> - Returns the available synhi modes
<h3>Synopsis</h3>
<pre class='funcsyn'>
char * <strong class='funcname'>mps_enumerate_modes</strong>(void);</pre>
<h3>Description</h3>
<p>Returns a pointer to a static buffer containing the names,
concatenated by spaces, of the available syntax hilighters.
</p>
</blockquote><hr>
<a name='mps_is_sep'></a>
<table width='100%'><tr><td><h2>mps_is_sep</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mps_is_sep</strong> - separator test
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mps_is_sep</strong>(char <em class='funcarg'>c</em>, int <em class='funcarg'>synhi</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>c</em></dt><dd>character to test</dd>
<dt><em class='funcarg'>synhi</em></dt><dd>syntax highlighter index</dd>
</dl>
<h3>Description</h3>
<p>Tests if c is a character separator.
If no synhi is defined or the synhi separators are
set to NULL, <code class='funcname'>mp_is_sep()</code> is used.
Returns 1 if it is.
</p>
</blockquote><hr>
<a name='mps_quoting'></a>
<table width='100%'><tr><td><h2>mps_quoting</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mps_quoting</strong> - Test if we are inside quotes
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mps_quoting</strong>(int <em class='funcarg'>c</em>, int <em class='funcarg'>color</em>, int <em class='funcarg'>synhi</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>c</em></dt><dd>character to test</dd>
<dt><em class='funcarg'>color</em></dt><dd>color previously calculated</dd>
<dt><em class='funcarg'>synhi</em></dt><dd>syntax hilighter index</dd>
</dl>
<h3>Description</h3>
<p>If current text is between quotes, returns the
quoting color.
</p>
</blockquote><hr>
<a name='mps_set_override_mode'></a>
<table width='100%'><tr><td><h2>mps_set_override_mode</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mps_set_override_mode</strong> - Forces the syntax hilight mode
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mps_set_override_mode</strong>(char * <em class='funcarg'>mode</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>mode</em></dt><dd>mode name to set</dd>
</dl>
<h3>Description</h3>
<p>Forces the syntax hilight to be the one
named as mode. If mode is not found, 0 is returned.
</p>
</blockquote><hr>
<a name='mps_startup'></a>
<table width='100%'><tr><td><h2>mps_startup</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mps_startup</strong> - Syntax hilight engine startup
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mps_startup</strong>(void);</pre>
<h3>Description</h3>
<p>Initializes the syntax highlighting engine.
</p>
</blockquote><hr>
<a name='mps_word_color'></a>
<table width='100%'><tr><td><h2>mps_word_color</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mps_word_color</strong> - returns the color associated to the word
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mps_word_color</strong>(int <em class='funcarg'>synhi</em>, char * <em class='funcarg'>word</em>, int <em class='funcarg'>col</em>, int <em class='funcarg'>line</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>synhi</em></dt><dd>syntax hilighter index</dd>
<dt><em class='funcarg'>word</em></dt><dd>the word to search</dd>
<dt><em class='funcarg'>col</em></dt><dd>first column of word</dd>
<dt><em class='funcarg'>line</em></dt><dd>the line being drawn</dd>
</dl>
<h3>Description</h3>
<p>Returns the color associated to the word, or MP_COLOR_NORMAL
if the word has nothing special.
</p>
</blockquote><hr>
<a name='mpt_open_tag'></a>
<table width='100%'><tr><td><h2>mpt_open_tag</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpt_open_tag</strong> - Selects a tag from a list and opens its location
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpt_open_tag</strong>(char * <em class='funcarg'>partial_tag</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>partial_tag</em></dt><dd>Partial tag string to search</dd>
</dl>
<h3>Description</h3>
<p>Shows a list of tags matching <em class='funcarg'>partial_tag</em> and, if the user selects
one, it's opened.
</p>
</blockquote><hr>
<a name='mpt_seek_tag'></a>
<table width='100%'><tr><td><h2>mpt_seek_tag</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpt_seek_tag</strong> - Seeks a tag
<h3>Synopsis</h3>
<pre class='funcsyn'>
struct tag_index * <strong class='funcname'>mpt_seek_tag</strong>(char * <em class='funcarg'>tag</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>tag</em></dt><dd>tag to be search</dd>
</dl>
<h3>Description</h3>
<p>Seeks a tag. Returns the structure defining the tag, or NULL if
the tag is not found.
</p>
</blockquote><hr>
<a name='mpt_select_tag'></a>
<table width='100%'><tr><td><h2>mpt_select_tag</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpt_select_tag</strong> - Selects from a list of tags given a partial string
<h3>Synopsis</h3>
<pre class='funcsyn'>
struct tag_index * <strong class='funcname'>mpt_select_tag</strong>(char * <em class='funcarg'>partial_tag</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>partial_tag</em></dt><dd>Partial tag string to search</dd>
</dl>
<h3>Description</h3>
<p>Makes a partial seek in the tag database and shows a list for
the user to select a tag. If no tag is found, an error message is
shown and NULL returned; if the user cancel on the list, NULL is
also returned. Otherwise, a struct tag_index is returned.
</p>
</blockquote><hr>
<a name='mpv_about'></a>
<table width='100%'><tr><td><h2>mpv_about</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_about</strong> - Shows the 'About Minimum Profit...' information.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpv_about</strong>(void);</pre>
<h3>Description</h3>
<p>Shows a text or dialog box showing the information
about the program, version and such.
</p>
</blockquote><hr>
<a name='mpv_add_menu'></a>
<table width='100%'><tr><td><h2>mpv_add_menu</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_add_menu</strong> - Creates a new menu bar.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpv_add_menu</strong>(char * <em class='funcarg'>label</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>label</em></dt><dd>the label</dd>
</dl>
<h3>Description</h3>
<p>Creates a new menu bar.
</p>
</blockquote><hr>
<a name='mpv_add_menu_item'></a>
<table width='100%'><tr><td><h2>mpv_add_menu_item</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_add_menu_item</strong> - Adds a menu item to current menu bar.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpv_add_menu_item</strong>(char * <em class='funcarg'>f</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>f</em></dt><dd>the name of the function to invoke</dd>
</dl>
<h3>Description</h3>
<p>Adds a menu item to the current menu bar.
</p>
</blockquote><hr>
<a name='mpv_akey'></a>
<table width='100%'><tr><td><h2>mpv_akey</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_akey</strong> - Converts ascii keys to key names.
<h3>Synopsis</h3>
<pre class='funcsyn'>
static void _mpv_akey(int <em class='funcarg'>k</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>k</em></dt><dd>the key</dd>
</dl>
<h3>Description</h3>
<p>Converts ascii keys to key names.
</p>
</blockquote><hr>
<a name='mpv_alert'></a>
<table width='100%'><tr><td><h2>mpv_alert</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_alert</strong> - Alerts the user.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpv_alert</strong>(char * <em class='funcarg'>m1</em>, char * <em class='funcarg'>m2</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>m1</em></dt><dd>the alert message</dd>
<dt><em class='funcarg'>m2</em></dt><dd>a possible second message.</dd>
</dl>
<h3>Description</h3>
<p>Alerts the user by showing the message and
asking for validation.
</p>
</blockquote><hr>
<a name='mpv_args'></a>
<table width='100%'><tr><td><h2>mpv_args</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_args</strong> - Driver command line argument processing
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpv_args</strong>(int <em class='funcarg'>argc</em>, char * <em class='funcarg'>argv</em>[]);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>argc</em></dt><dd>argument count</dd>
<dt><em class='funcarg'>argv</em></dt><dd>the arguments</dd>
</dl>
<h3>Description</h3>
<p>Driver dependent argument processing, after video driver is
initialised. Called from within <code class='funcname'>mpi_args_2()</code>.
</p>
</blockquote><hr>
<a name='mpv_char'></a>
<table width='100%'><tr><td><h2>mpv_char</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_char</strong> - Draws a char with color in the document window.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpv_char</strong>(int <em class='funcarg'>c</em>, int <em class='funcarg'>color</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>c</em></dt><dd>the char</dd>
<dt><em class='funcarg'>color</em></dt><dd>the color (one of MP_COLOR_ constants)</dd>
</dl>
<h3>Description</h3>
<p>Draws a char with color in current cursor position of the
document window.
</p>
</blockquote><hr>
<a name='mpv_check_menu'></a>
<table width='100%'><tr><td><h2>mpv_check_menu</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_check_menu</strong> - Checks or unchecks a menu item
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpv_check_menu</strong>(char * <em class='funcarg'>f</em>, int <em class='funcarg'>t</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>f</em></dt><dd>function name which menu item should be (un)checked</dd>
<dt><em class='funcarg'>t</em></dt><dd>boolean value</dd>
</dl>
<h3>Description</h3>
<p>Checks or unchecks the menu item that executes <em class='funcarg'>funcname</em>.
</p>
</blockquote><hr>
<a name='mpv_clipboard_to_system'></a>
<table width='100%'><tr><td><h2>mpv_clipboard_to_system</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_clipboard_to_system</strong> - Copies to the system clipboard
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpv_clipboard_to_system</strong>(void);</pre>
<h3>Description</h3>
<p>Copies the clipboard's content from Minimum Profit to
the underlying system's one.
</p>
</blockquote><hr>
<a name='mpv_confirm'></a>
<table width='100%'><tr><td><h2>mpv_confirm</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_confirm</strong> - Asks for confirmation.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpv_confirm</strong>(char * <em class='funcarg'>prompt</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>prompt</em></dt><dd>the question to ask</dd>
</dl>
<h3>Description</h3>
<p>Asks for confirmation.
Returns 1 if choosen 'yes'.
</p>
</blockquote><hr>
<a name='mpv_create_colors'></a>
<table width='100%'><tr><td><h2>mpv_create_colors</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_create_colors</strong> - Creates the colors defined in the color database
<h3>Synopsis</h3>
<pre class='funcsyn'>
static void _mpv_create_colors(void);</pre>
<h3>Description</h3>
<p>Creates the colors defined in the color database, probably
set from the configuration file.
</p>
</blockquote><hr>
<a name='mpv_cursor'></a>
<table width='100%'><tr><td><h2>mpv_cursor</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_cursor</strong> - Positions the hardware cursor.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpv_cursor</strong>(int <em class='funcarg'>x</em>, int <em class='funcarg'>y</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>x</em></dt><dd>the real x position</dd>
<dt><em class='funcarg'>y</em></dt><dd>the real y position</dd>
</dl>
<h3>Description</h3>
<p>Sets the hardware cursor to x, y position.
</p>
</blockquote><hr>
<a name='mpv_filetabs'></a>
<table width='100%'><tr><td><h2>mpv_filetabs</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_filetabs</strong> - Draws the tab set containing the file names
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpv_filetabs</strong>(void);</pre>
<h3>Description</h3>
<p>Draws the names of the opened files in the form of a tab set.
</p>
</blockquote><hr>
<a name='mpv_glob'></a>
<table width='100%'><tr><td><h2>mpv_glob</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_glob</strong> - Returns a result of a file globbing
<h3>Synopsis</h3>
<pre class='funcsyn'>
mp_txt * <strong class='funcname'>mpv_glob</strong>(char * <em class='funcarg'>spec</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>spec</em></dt><dd>the file pattern</dd>
</dl>
<h3>Description</h3>
<p>Executes a file globbing using <em class='funcarg'>spec</em> as a pattern
and returns a mp_txt containing the files matching
the glob.
</p>
</blockquote><hr>
<a name='mpv_goto'></a>
<table width='100%'><tr><td><h2>mpv_goto</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_goto</strong> - Positions the cursor to start drawing.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpv_goto</strong>(int <em class='funcarg'>x</em>, int <em class='funcarg'>y</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>x</em></dt><dd>the x position</dd>
<dt><em class='funcarg'>y</em></dt><dd>the y position</dd>
</dl>
<h3>Description</h3>
<p>Positions the cursor to start drawing the document window.
</p>
</blockquote><hr>
<a name='mpv_help'></a>
<table width='100%'><tr><td><h2>mpv_help</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_help</strong> - Shows the available help for a term
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpv_help</strong>(char * <em class='funcarg'>term</em>, int <em class='funcarg'>synhi</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>term</em></dt><dd>the term</dd>
<dt><em class='funcarg'>synhi</em></dt><dd>the syntax highlighter</dd>
</dl>
<h3>Description</h3>
<p>Shows the available help for the term. The argument
filetype is a string describing the file type,
taken from the syntax hilighter (this allows to
retrieve the help from different sources for C
or Perl code, for example).
Returns 0 on error or if no help is available
for this term.
</p>
</blockquote><hr>
<a name='mpv_list'></a>
<table width='100%'><tr><td><h2>mpv_list</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_list</strong> - Manages a selection list
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpv_list</strong>(char * <em class='funcarg'>title</em>, mp_txt * <em class='funcarg'>txt</em>, int <em class='funcarg'>pos</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>title</em></dt><dd>the title or caption of the list</dd>
<dt><em class='funcarg'>txt</em></dt><dd>the text containing the list to show</dd>
<dt><em class='funcarg'>pos</em></dt><dd>element to be set by default</dd>
</dl>
<h3>Description</h3>
<p>Shows a unique element selection list to the user.
The list must be previously built into txt.
Returns the selected element (the number of the
line where the element is) or -1 on cancellation.
</p>
</blockquote><hr>
<a name='mpv_mainloop'></a>
<table width='100%'><tr><td><h2>mpv_mainloop</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_mainloop</strong> - Main message processing loop.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void mpv_main_loop(void);</pre>
<h3>Description</h3>
<p>Main message processing loop.
</p>
</blockquote><hr>
<a name='mpv_menu'></a>
<table width='100%'><tr><td><h2>mpv_menu</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_menu</strong> - Manages the menu.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpv_menu</strong>(void);</pre>
<h3>Description</h3>
<p>Manages the menu (drawing it, if applicable).
Returns the key associated to the activated menu item,
or 0 if none was.
</p>
</blockquote><hr>
<a name='mpv_notify'></a>
<table width='100%'><tr><td><h2>mpv_notify</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_notify</strong> - The notify function.
<h3>Synopsis</h3>
<pre class='funcsyn'>
static void <strong class='funcname'>mpv_notify</strong>(char * <em class='funcarg'>str</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>str</em></dt><dd>the str</dd>
</dl>
<h3>Description</h3>
<p>The notify function for <code class='funcname'>mp_set_notify()</code>.
</p>
</blockquote><hr>
<a name='mpv_readline'></a>
<table width='100%'><tr><td><h2>mpv_readline</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_readline</strong> - Ask for user input.
<h3>Synopsis</h3>
<pre class='funcsyn'>
char * <strong class='funcname'>mpv_readline</strong>(int <em class='funcarg'>t</em>, char * <em class='funcarg'>p</em>, char * <em class='funcarg'>d</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>t</em></dt><dd>the type of input asked (one of MPR_ constants)</dd>
<dt><em class='funcarg'>p</em></dt><dd>the prompt</dd>
<dt><em class='funcarg'>d</em></dt><dd>the default value</dd>
</dl>
<h3>Description</h3>
<p>Asks for user input. The expected data type is
described in type.
Returns a pointer to a static buffer with the
data entered by the user, or NULL if user cancelled.
</p>
</blockquote><hr>
<a name='mpv_refresh'></a>
<table width='100%'><tr><td><h2>mpv_refresh</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_refresh</strong> - Refresh the screen.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpv_refresh</strong>(void);</pre>
<h3>Description</h3>
<p>Orders the underlying system to redraw the screen.
</p>
</blockquote><hr>
<a name='mpv_scrollbar'></a>
<table width='100%'><tr><td><h2>mpv_scrollbar</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_scrollbar</strong> - Draws / updates the scrollbar.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpv_scrollbar</strong>(int <em class='funcarg'>pos</em>, int <em class='funcarg'>size</em>, int <em class='funcarg'>max</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>pos</em></dt><dd>current position</dd>
<dt><em class='funcarg'>size</em></dt><dd>vertical size</dd>
<dt><em class='funcarg'>max</em></dt><dd>maximum value</dd>
</dl>
<h3>Description</h3>
<p>Draws / updates the scrollbar. <em class='funcarg'>pos</em> is current position
(the line where the cursor is), <em class='funcarg'>size</em> is the number of
lines of the document window and <em class='funcarg'>max</em> is the maximum
value (the total number of lines in current text).
</p>
</blockquote><hr>
<a name='mpv_set_variable'></a>
<table width='100%'><tr><td><h2>mpv_set_variable</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_set_variable</strong> - Sets a driver-dependent variable
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpv_set_variable</strong>(char * <em class='funcarg'>var</em>, char * <em class='funcarg'>value</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>var</em></dt><dd>the name of the variable to be set</dd>
<dt><em class='funcarg'>value</em></dt><dd>the new value</dd>
</dl>
<h3>Description</h3>
<p>Sets a variable from the configuration file that is
driver-specific.
</p>
</blockquote><hr>
<a name='mpv_shutdown'></a>
<table width='100%'><tr><td><h2>mpv_shutdown</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_shutdown</strong> - Shuts down the system dependent driver.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpv_shutdown</strong>(void);</pre>
<h3>Description</h3>
<p>Shuts down the system dependent driver.
</p>
</blockquote><hr>
<a name='mpv_startup_1'></a>
<table width='100%'><tr><td><h2>mpv_startup_1</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_startup_1</strong> - Finds a usable video driver
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpv_startup_1</strong>(void);</pre>
<h3>Description</h3>
<p>Finds a usable video driver, pre-initializing it. If no usable
driver is found, 0 is returned, or nonzero otherwise.
</p>
</blockquote><hr>
<a name='mpv_status_line'></a>
<table width='100%'><tr><td><h2>mpv_status_line</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_status_line</strong> - Sets the string to be drawn as status line
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpv_status_line</strong>(char * <em class='funcarg'>str</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>str</em></dt><dd>the string</dd>
</dl>
<h3>Description</h3>
<p>Sets the string to be drawn as the status line.
</p>
</blockquote><hr>
<a name='mpv_str'></a>
<table width='100%'><tr><td><h2>mpv_str</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_str</strong> - Draws a string with color in the document window.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpv_str</strong>(char * <em class='funcarg'>str</em>, int <em class='funcarg'>color</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>str</em></dt><dd>the string</dd>
<dt><em class='funcarg'>color</em></dt><dd>the color (one of MP_COLOR_ constants)</dd>
</dl>
<h3>Description</h3>
<p>Draws a string, calling <code class='funcname'>mpv_char()</code> for each of their chars.
</p>
</blockquote><hr>
<a name='mpv_strcasecmp'></a>
<table width='100%'><tr><td><h2>mpv_strcasecmp</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_strcasecmp</strong> - Case ignoring string compare
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpv_strcasecmp</strong>(char * <em class='funcarg'>s1</em>, char * <em class='funcarg'>s2</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>s1</em></dt><dd>first string</dd>
<dt><em class='funcarg'>s2</em></dt><dd>second string</dd>
</dl>
<h3>Description</h3>
<p>Case ignoring string compare. System dependent
(strcasecmp in Unix, stricmp in Win32)
</p>
</blockquote><hr>
<a name='mpv_suspend'></a>
<table width='100%'><tr><td><h2>mpv_suspend</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_suspend</strong> - Suspend the system dependant driver
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpv_suspend</strong>(void);</pre>
<h3>Description</h3>
<p>Suspend the execution of the application. For windowed interfaces,
this will put the application in minimized mode.
</p>
</blockquote><hr>
<a name='mpv_syscmd'></a>
<table width='100%'><tr><td><h2>mpv_syscmd</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_syscmd</strong> - System dependant command execution
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpv_syscmd</strong>(mp_txt *txt,char *cmd,char *mode);</pre>
<h3>Description</h3>
<p>Executes external commands. This is system dependant.
It will take care of I/O redirection as needed as well as setting
up the necessary TTY modes.
<p>
Returns 0 on success, -1 on error.
</p>
</blockquote><hr>
<a name='mpv_system_to_clipboard'></a>
<table width='100%'><tr><td><h2>mpv_system_to_clipboard</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_system_to_clipboard</strong> - Copies from the system clipboard
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpv_system_to_clipboard</strong>(void);</pre>
<h3>Description</h3>
<p>Copies the clipboard's content from the underlying system
to Minimum Profit's internal one. A returning value of 0
means the actual pasting is already done (or done from a
system callback), so it won't be necessary to do it.
</p>
</blockquote><hr>
<a name='mpv_title'></a>
<table width='100%'><tr><td><h2>mpv_title</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_title</strong> - Sets the string to be drawn as title
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpv_title</strong>(char * <em class='funcarg'>str</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>str</em></dt><dd>the string</dd>
</dl>
<h3>Description</h3>
<p>Sets the string to be drawn as title of the document window.
</p>
</blockquote><hr>
<a name='mpv_usage'></a>
<table width='100%'><tr><td><h2>mpv_usage</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_usage</strong> - Prints the usage help.
<h3>Synopsis</h3>
<pre class='funcsyn'>
void <strong class='funcname'>mpv_usage</strong>(void);</pre>
<h3>Description</h3>
<p>Prints the usage help.
</p>
</blockquote><hr>
<a name='mpv_vkey'></a>
<table width='100%'><tr><td><h2>mpv_vkey</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_vkey</strong> - Converts Windows keys to key names.
<h3>Synopsis</h3>
<pre class='funcsyn'>
static void _mpv_vkey(int <em class='funcarg'>c</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>c</em></dt><dd>the key</dd>
</dl>
<h3>Description</h3>
<p>Converts Windows virtual keys to key names.
</p>
</blockquote><hr>
<a name='mpv_zoom'></a>
<table width='100%'><tr><td><h2>mpv_zoom</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpv_zoom</strong> - Zooms the document window.
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpv_zoom</strong>(int <em class='funcarg'>inc</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>inc</em></dt><dd>the increment (+1 or -1)</dd>
</dl>
<h3>Description</h3>
<p>Increases / decreases font size of the document window,
if applicable.
</p>
</blockquote><hr>
<a name='mpw_spellcheck_word'></a>
<table width='100%'><tr><td><h2>mpw_spellcheck_word</h2>
</td><td align=right><a href='#_TOP_'>Top</a></td></tr></table><blockquote>
<h3>Name</h3>
<strong class='funcname'>mpw_spellcheck_word</strong> - Tests if a word is correctly spelled
<h3>Synopsis</h3>
<pre class='funcsyn'>
int <strong class='funcname'>mpw_spellcheck_word</strong>(char * <em class='funcarg'>word</em>);</pre>
<h3>Arguments</h3>
<dl><dt><em class='funcarg'>word</em></dt><dd>the word to be checked</dd>
</dl>
<h3>Description</h3>
<p>Tests if <em class='funcarg'>word</em> is correctly spelled. Returns MP_COLOR_NORMAL in case it is
or MP_COLOR_MISSPELLED otherwise.
</p>
</blockquote><hr>
<table width='100%'><tr><td>Angel Ortega - angel@triptico.com</td><td align='right'><small>Built with <a href='http://www.triptico.com/software/mp_doccer.html'>mp_doccer 1.2.0</a></small>
</td></tr></table>
</body></html>
|