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
|
From: "Adam F. Rogoyski" <rogoyski@debian.org>
Date: Fri, 23 Apr 1999 20:54:29 -0500
Subject: Changed binary from hexedit to hexeditor to avoid conflict.
Description: Changed binary from hexedit to hexeditor to avoid conflict.
Author: Adam F. Rogoyski <rogoyski@debian.org>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
---
docs/Makefile.am | 6 +-
docs/hexedit.1 | 144 ----------
docs/hexedit.info | 789 ---------------------------------------------------
docs/hexedit.texinfo | 643 -----------------------------------------
docs/hexeditor.1 | 144 ++++++++++
docs/hexeditor.texi | 643 +++++++++++++++++++++++++++++++++++++++++
src/Makefile.am | 4 +-
7 files changed, 792 insertions(+), 1581 deletions(-)
delete mode 100644 docs/hexedit.1
delete mode 100644 docs/hexedit.info
delete mode 100644 docs/hexedit.texinfo
create mode 100644 docs/hexeditor.1
create mode 100644 docs/hexeditor.texi
diff --git a/docs/Makefile.am b/docs/Makefile.am
index 97e78a2..ea4890f 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -1,4 +1,4 @@
-info_TEXINFOS = hexedit.texinfo
-man_MANS = hexedit.1
+info_TEXINFOS = hexeditor.texi
+man_MANS = hexeditor.1
-EXTRA_DIST = hexedit.1 texinfo.tex
+EXTRA_DIST = hexeditor.1 texinfo.tex
diff --git a/docs/hexedit.1 b/docs/hexedit.1
deleted file mode 100644
index 3f11291..0000000
--- a/docs/hexedit.1
+++ /dev/null
@@ -1,144 +0,0 @@
-.\" Copyright (C) 1998,1999 Adam Rogoyski
-.TH HEXEDIT 1
-.SH NAME
-hexedit \- Full screen curses Hex editor
-.SH SYNOPSIS
-.nr a \n(.j
-.ad l
-.nr i \n(.i
-.in +\w'\fBhexedit 'u
-.ti \niu
-.B hexedit
-.de OP
-.ie \\n(.$-1 .RI "[\ \fB\\$1fP" "\\$2" "\ ]"
-.el .RB "[\ " "\\$1" "\ ]"
-..
-.OP \-8abdfgqrv
-.RI "[\ " filename "\ ]"
-.br
-.ad \na
-.SH DESCRIPTION
-.I Hexedit
-is an editor to edit binary (or any) files or disks. The Display consists
-of the current offset from 0 (the first byte), the next sixteen bytes
-(aligned by bytes or 32-bit words), and it's ASCII or EBCDIC text
-representation.
-.SH OPTIONS
-.TP
-.B \fI-h, --help\fR
-Display help
-.TP
-.B \fI-8, --highbit\fR
-Display 8-bit text
-.TP
-.B \fI-a, --alltext\fR
-Display all text regardless that you know better
-.TP
-.B \fI-b, --buffer\fR
-Buffer the entire file into memory. Faster, and enables insert and delete.
-.TP
-.B \fI-d, --disk\fR
-File editing is a disk. OpenBSD and Linux only.
-.TP
-.B \fI-f, --force\fR
-Force editing of a disk. Need this option to enable writing to disks.
-.TP
-.B \fI-q, --quiet\fR
-Quiet Mode; Turn off all beeping.
-.TP
-.B \fI-r, --readonly\fR
-Do not allow modifying the file
-.TP
-.B \fI-v, --version\fR
-Display version number
-
-.SH Commands and keys
-.TP
-.B \fI^A\fR
-Insert byte
-.TP
-.B \fIInsert\fR
-Insert byte
-.TP
-.B \fI^D\fR
-Delete byte
-.TP
-.B \fIDelete\fR
-Delete byte
-.TP
-.B \fI^E\fR
-viEw as text dump
-.TP
-.B \fI^F\fR
-Page down
-.TP
-.B \fI^V\fR
-Page down
-.TP
-.B \fIPage Down\fR
-Page down
-.TP
-.B \fI^B\fR
-Page Up
-.TP
-.B \fI^Y\fR
-Page Up
-.TP
-.B \fIAlt-V\fR
-Page Up
-.TP
-.B \fIPage Up\fR
-Page Up
-.TP
-.B \fITab\fR
-Switch from hex to text representation
-.TP
-.B \fI^I\fR
-Switch from hex to text representation
-.TP
-.B \fI^T\fR
-goTo offset
-.TP
-.B \fI^G\fR
-Get help
-.TP
-.B \fI^L\fR
-Redraw screen
-.TP
-.B \fI^C\fR
-Quit without saving
-.TP
-.B \fI^O\fR
-Save
-.TP
-.B \fI^X\fR
-Save and Quit
-.TP
-.B \fI^W\fR
-Search (text/hex)
-.TP
-.B \fI^N\fR
-find Next
-.TP
-.B \fI^U\fR
-Undo
-.TP
-.B \fI^R\fR
-ASCII <=> EBCDIC
-.TP
-.B \fI^P\fR
-Switch Spacings
-.TP
-.B \fI^+\fR
-Binary Calculator
-
-.SH Author
-Adam Rogoyski <apoc@laker.net>
-.SH "See Also"
-od (1)
-.SH BUGS
-Editing disks is only supported in Linux and OpenBSD.
-
-Please email Adam Rogoyski <apoc@laker.net> with any bugs you might find.
-This man page is intentionally brief. Please Read the included documentation
-in Texinfo format for additional information
diff --git a/docs/hexedit.info b/docs/hexedit.info
deleted file mode 100644
index 9c63131..0000000
--- a/docs/hexedit.info
+++ /dev/null
@@ -1,789 +0,0 @@
-This is Info file hexedit.info, produced by Makeinfo version 1.67 from
-the input file hexedit.texinfo.
-
- [N]Curses Hexedit Manual
-
- Copyright (C) 1999 Adam Rogoyski
-
-
-File: hexedit.info, Node: Top, Next: Introduction, Prev: (dir), Up: (dir)
-
-* Menu:
-
-* Introduction:: About hexedit, the author, and life in general.
-* Getting Started:: Getting hexedit, compiling, running.
-* Program Operations:: Program usage and commands.
-
-
-File: hexedit.info, Node: Introduction, Next: Getting Started, Prev: Top, Up: Top
-
-Introduction
-************
-
-* Menu:
-
-* What is Hexedit:: Brief intro to the program.
-* Copyright and License:: Terms of copying.
-* Author:: Info about me.
-* Feedback and Bugs:: When to contact me.
-* Contributions:: Who's helped so far.
-
-
-File: hexedit.info, Node: What is Hexedit, Next: Copyright and License, Up: Introduction
-
-What is Hexedit?
-================
-
- *hexedit* is a Curses based Hex editor. Unlike a text editor, which
-is used for editing text documents in the desired language, *hexedit*
-lets you edit any file as it's byte(1) for byte representation. It can
-even let you view and edit your fixed disks on your Linux system. This
-is not ideal for writing a letter or writing c code, but there are my
-times when this is ideal:
-
- * Editing binary executables.
-
- * Editing your fixed disks (i.e. /dev/hda)
-
- * Checking the output of a Program's binary data file.
-
- * Any place you might use od(1) but need more power. Compare more
- vs less.
-
- * Any other time you find this useful (tell me).
-
- ---------- Footnotes ----------
-
- (1) I assume a byte is an 8-bit octet. If this is not the case, I
-really recommend NOT using this program.
-
-
-File: hexedit.info, Node: Copyright and License, Next: Author, Prev: What is Hexedit, Up: Introduction
-
-Copyright and License
-=====================
-
- *[N]Curses Hexedit* Copyright (C) 1998,1999 Adam Rogoyski
-This program is free software; you can redistribute it and/or modify it
-under the terms of the GNU General Public License as publish by the
-Free Software Foundation; either version 2 of the License, or (at your
-option) any later version.
-This program is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-You should have received a copy of the GNU General Public License along
-with this program; if not, write to the Free Software Foundation,
-Inc., 675 Mass Ave, Cambridge, MA 02139, USA
-
-
-File: hexedit.info, Node: Author, Next: Feedback and Bugs, Prev: Copyright and License, Up: Introduction
-
-Author
-======
-
- *[N]Curses Hexedit* was written by Adam Rogoyski(1)(2). At the time
-of writting (December 1998) I am a Sophomore of Computer Science at the
-University of Texas at Austin. I use Debian GNU/Linux and OpenBSD, I
-enjoy playing electric guitar, and I currently reside Pflugerville,
-Texas USA. My heroes are Richard Stallman, Stevie Ray Vaughan, and
-Lisa Loeb.
-
- ---------- Footnotes ----------
-
- (1) Email me at apoc@laker.net
-
- (2) There is a picture of me at http://profiles.yahoo.com/rogoyski/
-
-
-File: hexedit.info, Node: Feedback and Bugs, Next: Contributions, Prev: Author, Up: Introduction
-
-Feedback and Bugs
-=================
-
- Astounding as it may be, there quite possibly are bugs in *hexedit*.
-You can do your share to help Free Software(1) be robust and secure by
-telling me about any problems you find. Patches are even better.
-General feedback is appreciated as well, if only to tell me that
-*hexedit* saved the day again, or that my obscure program wasted half
-your day when you already knew how to use emacs (M-x hexl-mode) in the
-first place.
-I can be reached at *apoc@laker.net*
-
- ---------- Footnotes ----------
-
- (1) http://www.gnu.org/philosophy/free-sw.html
-
-
-File: hexedit.info, Node: Contributions, Prev: Feedback and Bugs, Up: Introduction
-
-Contributions
-=============
-
- The following people contributed valuable feedback and information
- * John Gatewood Ham: Gave some tips for the documentation.
-
- * Cort (unknown): Idea for Undo.
-
- * Matt Noel: EBCDIC support and spacing. Countless suggestions and
- ideas.
-
- * Everyone else who mailed me and told me things that broke and gave
- suggestions.
-
-
-File: hexedit.info, Node: Getting Started, Next: Program Operations, Prev: Introduction, Up: Top
-
-Getting Started
-***************
-
-* Menu:
-
-* Obtaining Source:: Where to find hexedit.
-* Obtaining Binaries:: Where to find binaries.
-* Building from Source:: What to do to build hexedit.
-* Command Line Invocation:: starting from the shell.
-
-
-File: hexedit.info, Node: Obtaining Source, Next: Obtaining Binaries, Up: Getting Started
-
-Obtaining Source
-================
-
- The latest source tar'd and gzip'd can be obtained at
-*http://ccwf.cc.utexas.edu/~apoc/programs/c/hexedit/*
-and also from everyone's favorite ftp site
-*ftp://metalab.unc.edu/pub/Linux/apps/editors/terminal/*
-If you do not know what tar and gzip are, and are using a DOS derived
-OS, *Note Obtaining Binaries::.
-
-
-File: hexedit.info, Node: Obtaining Binaries, Next: Building from Source, Prev: Obtaining Source, Up: Getting Started
-
-Obtaining Binaries
-==================
-
- Pre-compiled statically linked binaries can be obtained for the
-following operating systems: i386 Linux, i386 OpenBSD, and DOS. The
-location for these is:
-*http://ccwf.cc.utexas.edu/~apoc/programs/c/hexedit/*
-
- I've Built and tested hexedit on the following platforms:
-
- * Linux 2.0.36 i386 ncurses 4.2 (gcc)
-
- * Linux 2.2.6 i386 ncurses 4.2 (gcc)
-
- * OpenBSD 2.4 i386 ncurses (gcc)
-
- * SunOS 5.6 Sparc curses (gcc)
-
- * AIX 4.3.2 rs6000 curses (gcc and cc)
-
- * AIX 4.3.2 ppc curses (gcc and cc)
-
- * DOS 6.22 i386 pdcurses (djgpp gcc)
-
- * IRIX 6.3 mips curses (gcc)
-
- * HP-UX B.10.20 curses (gcc)
-
- * SunOS 5.5.1 sparc curses (gcc)
-
- * OSF V4.0 alpha curses (gcc)
-
-
-File: hexedit.info, Node: Building from Source, Next: Command Line Invocation, Prev: Obtaining Binaries, Up: Getting Started
-
-Building from Source
-====================
-
- Building from source should be very strait forward. I used the GNU
-configure system (autoconf and automake) so, like any GNU compliant
-program, the sequence
- ./configure
- make
- make install
- should be all that's needed to install the package. Additional
-options may need to be given to configure, check INSTALL for such
-options.
-
-i386 Linux
-----------
-
- I extremely recommend you upgrade to ncurses 4.2 for hexedit to
-work. It should work with all versions, but resizing in an xterm seems
-to work better with the newest release. The latest ncurses can be
-obtained at the nearest GNU ftp archive (or ftp://ftp.gnu.org/pub/gnu/).
-
-i386 OpenBSD
-------------
-
- OpenBSD 2.4 I believe comes with ncurses, and it worked fine at my
-end.
-
-rs/6000 AIX 4.3
----------------
-
- I belive I've fixed the previous AIX problems I was having. Let me
-know if anything else turns up.
-
-
-File: hexedit.info, Node: Command Line Invocation, Prev: Building from Source, Up: Getting Started
-
-Command Line Invocation
-=======================
-
- Basic program usage is as follows:
- *hexedit* [*flags*] [*filename*]
-
-Where filename is the file which you wish to edit. Additionally,
-starting the program with no file
- *hexedit* [*flags*]
-
-will bring up the file selection widget which will allow you to browse
-for the file. The command line arguments which are supported are
--h, -help Prints help.
--8, -highbit Allows displaying of high order bit text.
--a, -alltext Allows displaying of all text (probably bad idea).
--b, -buffer Buffer the entire file into memory.
--d, -disk View a fixed disk (Linux only).
--f, -force Allow editing of disk (Linux only).
--q, -quiet No Beeping!
--r, -readonly Prevents modifying the file.
--v, -version Prints version number.
-Defaults may be specified in the HEXEDIT environment variable, i.e.
-sh: *export HEXEDIT=-8r*
-csh: *setenv HEXEDIT=-8r*
-
-File: hexedit.info, Node: Program Operations, Prev: Getting Started, Up: Top
-
-Program Operations
-******************
-
-* Menu:
-
-* Choosing a file:: How to select a file to edit.
-* Choosing a fixed disk:: How to select a fixed disk to view/edit.
-* Windows:: Descriptions of the various windows.
-* Moving About:: How to traverse the file.
-* Editing:: Editing procedures.
-* Undo:: Fixing mistakes.
-* Searching:: Locating specific strings.
-* Quit:: Exiting the editor.
-* Save:: Commiting changes to disk.
-* Save and Quit:: Commiting changes with exit.
-* Redraw:: Refreshing the screen.
-* View as Text:: Take an text snapshot of offset.
-* Ascii <=> EBCDIC:: Switch between text representations
-* Switch Spacings:: Change the way the bytes are grouped
-* Binary Calculator:: Base conversions.
-* Help:: Accessing online help.
-
-
-File: hexedit.info, Node: Choosing a file, Next: Choosing a fixed disk, Up: Program Operations
-
-Choosing a file
-===============
-
- Before editing can begin, you much select a file to edit. This can
-be done on the command line:
- hexedit filename
- Quite possibly, you may not remember the location of the file you
-wish to edit, or you may wish to browse over many possible files
-availible to find the file you are looking for. Hexedit comes equipted
-with a full screen file/directory browser which enables you to specify
-the file you wish to edit. Not specifying any file on the command line:
- hexedit
- will bring up the file selection browser. Choosing (pressing enter)
-a directory will open that directory for viewing. Choosing a file will
-open that file in the editor.
-
-
-File: hexedit.info, Node: Choosing a fixed disk, Next: Windows, Prev: Choosing a file, Up: Program Operations
-
-Choosing a fixed disk.
-======================
-
- Hexedit, when run in Linux, permits access to read and edit fixed
-disks (i.e /dev/hda). Using the *-d* option will allow you to edit a
-disk. Currently, the disk can be only up to 4.2 gigs, but this will
-probably change in a future release.
-By default, editing a disk will put you in read-only mode. This is for
-your own protection. If you really think you know what you are doing,
-issue the *-f* flag and it will force edit mode for the disk and allow
-you to make changes to your disk. Use this with *EXTREME CAUTION!* If
-you make a mistake to your boot sector, erase a few important inodes,
-or hit the wrong keystroke, you could be seriously out of luck. It is
-really easy to put your disk in an unusable state. Also, remember that
-the disk could very well be changing as you look at it. So the next
-time you view a chunk, it may be different, or even the chunk you are
-currently viewing may have changed on disk since you read it into the
-editor's buffer. So be careful if you want to edit a mounted disk.
-To put this in another way, if you don't know exactly why you would
-want to use this option, *Never Use It!* *IMPORTANT*: Never use this
-in conjunction with the *-b* option to buffer the entier file into
-memory. I will leave it to you to think why this would be bad.
-
-
-File: hexedit.info, Node: Windows, Next: Moving About, Prev: Choosing a fixed disk, Up: Program Operations
-
-Windows
-=======
-
- The screen is made up of three windows, the *Status* window, the
-*Main* window, and the *Help* window. A typical view would look
-something like this.
- File: data.dat ASCII Offset: 0x00004250 / 0x000096BB (%44)
- 00004200 55 89 E5 53 8b 5D 08 A1 A8 0D 05 08 39 05 AC 0D U..S.]......9...
- 00004210 05 08 0F 8C 8C 00 00 00 05 00 04 00 00 A3 A8 0D ................
- 00004220 05 08 C1 E0 02 50 A1 B0 0D 05 08 50 E8 4B CB FF .....P.....P.K..
- .
- .
- etc
- .
- .
- ^G Help ^C Exit (No Save) ^T goTo Offset ^X Exit and Save ^W Search
-
- And so on.
-
-Status Window
--------------
-
- The Status Window is the first line of the screen. At all times, it
-conveys the following information
- * *Filename* which you are working on
-
- * *Character Set* which you are using, ASCII or EBCDIC
-
- * *Current Offset* which you are at
-
- * *Size* of file
-
- * *Percent*age way through the file
-
- * *Modified Flag*: A M in the upper right corner signals
- that the file has been modified
- since last save, or that the file is read-only
-
- It typically looks like this
- File: data.dat ASCII Offset: 0x00004250 / 0x000096BB (%44)
-
-Main Window
------------
-
- The Main Window is the bulk of your view. It is where all viewing
-and editing of the file takes place. All cursor operations and
-movements take place within this window. Operations within the Main
-Window are described in detail in section *Note Moving About::
-
- The Main Window is broken up vertically into three columns of
-information. The first column from the left is the base offset(1)
-which represents the offset of the first byte of that row in the Data
-column.
-
- The second column is the Data column, where the Hexadecimal
-representation of each byte of the file is listed. Each row consists
-of 16 bytes, seperated into 2 columns of 8 bytes, each seperated into
-columns of 4 bytes. A typical row looks like: (third column not shown)
- 00004280 50 E8 A6 CA FF FF E8 41 CA FF FF 68 90 F5 04 08
-
- The third column of the main window is the text representation on
-that row's bytes. Non printable characters are represented as a "."
-dot.
-
-Help Window
------------
-
- The Help Window is the friendly reminder of basic commands within
-the editor. It cannot be removed.
-
-Popup Windows
--------------
-
- Various commands may bring up a Popup Window. This is a smaller
-window centered in the Main Window. Various operations, such as
-Searching, Jumping to another offset, saving, etc. require their own
-window, and will "Pop" one up. *Escape*, *Control-X*, and *Control-G*
-can be used to cancel most Popup Windows.
-
- ---------- Footnotes ----------
-
- (1) All offsets are in Hexadecimal (base16)
-
-
-File: hexedit.info, Node: Moving About, Next: Editing, Prev: Windows, Up: Program Operations
-
-Moving About
-============
-
- Moving about the file is done through the full screen terminal
-interface. Operations were meant to be easy to learn and comfortable
-to use.
-
-Hex <=> Text (Tab)
-------------------
-
- The Main Window is composed of the hex and text representation of
-the file. The cursor may be moved from one to the other by use of
-*Tab* or *Control-I*(1). Being on the Hex representation will be
-called Hex Mode, with being on the text representation Text Mode.
-
-Arrow Keys
-----------
-
- The arrow keys are the basic way to move about the file. In Hex
-Mode, left and right shift you four bits in the file. Going right, you
-could move to the lower 4 bits of the current byte (b & 0x0F), or move
-to the higher 4 bits of the next byte (b & 0xF0). Left can bring you
-either to the higher 4 bits of the current byte, or to the lower bits
-of the previous byte. Up and Down move you 16 bytes (offset +- 0x10)
-through the file(2).
-
- In Text Mode, left and right always move you one byte, with Up and
-Down moving you 16 bytes.
-
-Jumping
--------
-
- From your current offset, you can jump to an offset relative to
-where you are. With the cursor in the hex data area, Pressing *+* or
-*-* will bring up a entry box in the help window, in which you can type
-in the amount to jump. Depending on whether you did a plus or minus,
-you will traverse to *current offset* *+|-* *value*. After the first
-jump, you can use the *n* key to continue to jump by that offset a
-multitude of times.
-
-Misc
-----
-
- The following keys function as you'd expect them to
- * *Page Up* (also *Control-Y*, *Control-B*, *Alt-V*, *u*,
- *y*)
-
- * *Page Down* (also *Control-F*, *Control-V*, *space*, *v*)
-
- * *Home*
-
- * *End*
-
-GoTo Offset
------------
-
- At any time, you may jump to a specific offset of the file with
-*Control-T* or *t*. This will bring up a Popup Window which will
-prompt you to enter the new file offset. The new offset may be given in
-decimal(3), octal(4), or hex(5).
-
- Note, the default value will be 0, permitting a fast way to jump to
-the begining of the file.
-
- ---------- Footnotes ----------
-
- (1) Control-X signifies holding down the control key and hitting X
-
- (2) This isn't always true if you are near the end of the file
-
- (3) Decimal numbers are base10, ex: 255
-
- (4) Octal numbers are base8, prefixed by a 0, ex: 0377
-
- (5) Hex numbers are base16, prefixed by 0x, ex: 0xFF
-
-
-File: hexedit.info, Node: Editing, Next: Undo, Prev: Moving About, Up: Program Operations
-
-Editing
-=======
-
- Editing is the primary(1) function of the editor.
-
-Modifying Bytes
----------------
-
-Hex Mode
-........
-
- In this mode, Characters 0-9 and A-F may be used to change the
-current byte. All other characters are ignored.
-
-Text Mode
-.........
-
- In this mode, any printable character may be used to change the
-current byte.
-
-Insert
-------
-
- Insert allows you to, inplace, insert a new byte of data into the
-file, thus increasing the size of the file by one byte. The new byte
-is always equal to zero until you modify it. Insert is done through
-the *Insert* key or *Control-A*. Insert is only enabled if you use the
-*-b* option to buffer the entire file into memory. This is not
-something I will consider changing. If you want to modify your copy to
-allow this, best of luck to you. Insert cannot work on disks either.
-
- To simulate appending a byte to the end of the file, Jump to the end
-of the file, and insert a byte. This will have pushed the last byte
-over one. Copy the value of that byte to the new zero'd byte. Now
-zero the last byte.
-
-Delete
-------
-
- Delete allows you to delete the current byte, shifting the remainder
-of the file back one, thus decreasing the size of the file by one byte.
-Delete is done through the *Delete* key or *Control-D*. Delete will
-only work if you use the *-b* option to buffer the entire file into
-memory. Same as with Insert, this is not going to change in a future
-release. Usually, you can use dd(1) to get the part of the file/disk
-you want, insert and delete on that to your heart's content, and then
-dd that back to the file/disk.
-
- If there is only one byte in the file, Delete will zero the byte,
-but you cannot reduce the file to zero bytes(2)
-
- ---------- Footnotes ----------
-
- (1) This would make viewing the secondary function, perhaps.
-
- (2) I recommend rm(1) for this
-
-
-File: hexedit.info, Node: Undo, Next: Searching, Prev: Editing, Up: Program Operations
-
-Undo
-====
-
- While editing a file, it is quite likely that you may make a
-mistake(1). To facilitate this, an extensive Undo command has been
-implemented on your behalf. *Control-U* Undoes the previous change to
-the file. The editor keeps track of all modifications, insertions, and
-deletions. What this means is that at any time you can, if you wish,
-revert the file back to it's original state by a series of Undo's.
-
- If you do *Control-U* and the last changed byte is currently viewable
-in the Main Window, then the cursor will relocate to that byte and
-revert it to it's previous state. If the last changed byte is not
-currently viewable, the currently viewable area will shift so that the
-changed byte is viewable. In other words, you will be relocated to
-that part of the file, with the cursor on that byte at that offset.
-The Byte WILL NOT be Un-done. Another *Control-U* will now undo the
-change(2).
-
- ---------- Footnotes ----------
-
- (1) Or a typo, if you prefer
-
- (2) This is probably worded poorly, but it's easy to see what I
-mean when you try it
-
-
-File: hexedit.info, Node: Searching, Next: Quit, Prev: Undo, Up: Program Operations
-
-Searching
-=========
-
- Searching allows you to quickly(1) locate a specific sequence of
-characters or bytes in the file. *Control-W* or *w* brings up a Popup
-Window giving you the options of Find Next (*N*), Search for text
-string (*A*), and Search for Hex bytes (*H*).
-
-Search for Text String
-----------------------
-
- This options allows you to search for specific character strings of
-text. Spaces are allowed.
-
-Search for Hex Bytes
---------------------
-
- This options allows you to search for a specific string of bytes in
-the file. The Popup Window has an entry box, which accepts a sequence
-of bytes in Hex (0-9, A-F), while it shows the text representation of
-those bytes above. Non printable characters are shown as "." dot.
-
-Find Next
----------
-
- This options allows you to find the next occurence of the previous
-search (text or Hex). This option is not availible until after your
-first search is completed.
-
- This options is bound to *Control-N* to allow quickly locating the
-next match.
-
- ---------- Footnotes ----------
-
- (1) The fast Boyer-Moore algorithm is used
-
-
-File: hexedit.info, Node: Quit, Next: Save, Prev: Searching, Up: Program Operations
-
-Quit
-====
-
- Quiting without prompting to save is done by *Control-C*. It will
-bring up a Popup Window to make sure of your decision to quit the
-program.
-
-
-File: hexedit.info, Node: Save, Next: Save and Quit, Prev: Quit, Up: Program Operations
-
-Save
-====
-
- To save the file at any time with the currently made changes is done
-with *Control-O*(1). The file may be saved over the current file(2),
-or you may save the file as a new or different file. In the event of
-an error or inability to save, you will be given the standard(3) error
-message in the Popup Window.
-
- ---------- Footnotes ----------
-
- (1) On OpenBSD and a few other OS's, This keystroke does not seem
-to work. It has something to do with the terminal using it
-
- (2) This isn't always possible. One place is in DOS if you try to
-save over the executable currently being ran
-
- (3) perror (filename)
-
-
-File: hexedit.info, Node: Save and Quit, Next: Redraw, Prev: Save, Up: Program Operations
-
-Save and Quit
-=============
-
- To exit the program, saving the file as you go, use *Control-X*. If
-the file has not been modified since the last save, the program will
-exit without saving. If the file has been modified, you will be
-prompted for the filename to save to, which may be different than the
-current filename. In the event of an error or inability to save, you
-will be given the standard error message in the Popup Window, and the
-program will resume operations without terminating.
-
-
-File: hexedit.info, Node: Redraw, Next: View as Text, Prev: Save and Quit, Up: Program Operations
-
-Redraw
-======
-
- In the event that the terminal becomes unreadable, or for any other
-reason, the screen may be redrawn with *Control-L*. This will only
-erase and redraw the screen. If the terminal needs to be reset(1), the
-terminal will still need to be reset.
-
- ---------- Footnotes ----------
-
- (1) By '/bin/echo "\033c"' perhaps
-
-
-File: hexedit.info, Node: View as Text, Next: Ascii <=> EBCDIC, Prev: Redraw, Up: Program Operations
-
-View as Text
-============
-
- If at any time, you would like to see what the current file looks
-like as an text dump, *Control-E* will let you. Note: This feature was
-intended for files which are mostly made up of text. I implemented
-this by traveling back to the previous new line so that the text would
-be aligned how it would be in a text editor. Because of this, in a
-file without any new lines for a long time, you may not be able to view
-certain parts of the file in this mode. I do not see this as a
-problem, and I can recommend some really nice text editors for you if
-you disagree. Just don't use this function(1).
-
- This feature was meant to just show you a snapshot of the current
-section as text. That's all it does, that's all it will do.
-
- ---------- Footnotes ----------
-
- (1) Don't use this function. Never use it. I don't.
-
-
-File: hexedit.info, Node: Ascii <=> EBCDIC, Next: Switch Spacings, Prev: View as Text, Up: Program Operations
-
-Ascii <=> EBCDIC
-================
-
- Some old IBM mainframes use EBCDIC instead of the ASCII character
-set. To switch between which way the text is represented, *Control-R*
-will switch it. If you don't know what this is, you probably should
-not use it.
-
-
-File: hexedit.info, Node: Switch Spacings, Next: Binary Calculator, Prev: Ascii <=> EBCDIC, Up: Program Operations
-
-Switch Spacings
-===============
-
- Some people like having spaces between each byte, and between each 8
-bytes:
- 04 30 40 23 23 43 23 54 23 48 83 29 23 12 00 45
- Some people like having the bytes grouped into four byte words:
- 04304023 23432354 23488329 23120045
- To select which way you'd like to view the file as, use *Control-P*
-to switch the spacings around to the way you like it.
-
-
-File: hexedit.info, Node: Binary Calculator, Next: Help, Prev: Switch Spacings, Up: Program Operations
-
-Binary Calculator
-=================
-
- A binary calculator is included which will let you convert between
-base2, base8, base10, and base16 easily. This can be brought up with
-*Control-+*. Currently, this doesn't have all the features I'd like to
-spend the time to put into it, but it still is quite useful.
-
- Currently, all numbers in the calculator are represented in the
-machines default signed Integer size, a size which will be displayed in
-the status window. This means that most likely setting the highest bit
-will lead to a negative number. If I get time, unsigned ints as well
-as indefinite precision, and arithmetic functions will be added.
-
-
-File: hexedit.info, Node: Help, Prev: Binary Calculator, Up: Program Operations
-
-Help
-====
-
- At any time, *Control-G* may be used to get a list of commands for
-the editor. The Help Window will also list some commonly used commands.
-
-
-
-Tag Table:
-Node: Top170
-Node: Introduction434
-Node: What is Hexedit812
-Node: Copyright and License1752
-Node: Author2625
-Node: Feedback and Bugs3259
-Node: Contributions3954
-Node: Getting Started4417
-Node: Obtaining Source4764
-Node: Obtaining Binaries5209
-Node: Building from Source6164
-Node: Command Line Invocation7239
-Node: Program Operations8279
-Node: Choosing a file9124
-Node: Choosing a fixed disk9923
-Node: Windows11379
-Node: Moving About14510
-Node: Editing17073
-Node: Undo19038
-Node: Searching20211
-Node: Quit21399
-Node: Save21647
-Node: Save and Quit22377
-Node: Redraw22972
-Node: View as Text23418
-Node: Ascii <=> EBCDIC24382
-Node: Switch Spacings24756
-Node: Binary Calculator25281
-Node: Help26049
-
-End Tag Table
diff --git a/docs/hexedit.texinfo b/docs/hexedit.texinfo
deleted file mode 100644
index 886fb64..0000000
--- a/docs/hexedit.texinfo
+++ /dev/null
@@ -1,643 +0,0 @@
-\input texinfo @c -*-texinfo-*-
-@c %**start of header
-@setfilename hexedit.info
-@settitle Ncurses Hexedit
-@c %**end of header
-
-
-@ifinfo
-[N]Curses Hexedit Manual
-
-Copyright (C) 1999 Adam Rogoyski
-@end ifinfo
-
-@titlepage
-@title [N]Curses Hexedit
-@subtitle The hexedit manual
-@author Adam Rogoyski
-
-@page
-@vskip 0pt plus 1filll
-Copyright @copyright{} 1999 Adam Rogoyski
-
-Permission is granted to make and distribute verbatim copies of this
-manual provided the copyright notice and this permission notice are
-preserved on all copies.
-
-Permission is granted to copy and distribute modified versions of this
-manual under the conditions for verbatim copying, provided that the entire
-resulting derived work is distributed under the terms of a permission
-notice identical to this one.
-
-Permission is granted to copy and distribute translations of this manual
-into another language, under the above conditions for modified version,
-except that this permission notice may be stated in a translation approved
-by the Free Software Foundation.
-
-@end titlepage
-
-@node Top, Introduction, (dir), (dir)
-
-@menu
-* Introduction:: About hexedit, the author, and life in general.
-* Getting Started:: Getting hexedit, compiling, running.
-* Program Operations:: Program usage and commands.
-@end menu
-
-
-
-
-@node Introduction, Getting Started, Top, Top
-@chapter Introduction
-
-@menu
-* What is Hexedit:: Brief intro to the program.
-* Copyright and License:: Terms of copying.
-* Author:: Info about me.
-* Feedback and Bugs:: When to contact me.
-* Contributions:: Who's helped so far.
-@end menu
-
-
-@node What is Hexedit, Copyright and License, , Introduction
-@section What is Hexedit?
-
-
-@strong{hexedit} is a Curses based Hex editor.
-Unlike a text editor, which is used for editing text documents in the desired language,
-@strong{hexedit} lets you edit any file as it's byte@footnote{I assume a byte is an 8-bit
-octet. If this is not the case, I really recommend NOT using this program.}
-for byte representation. It can even let you view and edit your fixed disks on your Linux
-system. This is not ideal for writing a letter or writing c code, but
-there are my times when this is ideal:
-
-@itemize @bullet
-@item
-Editing binary executables.
-@item
-Editing your fixed disks (i.e. /dev/hda)
-@item
-Checking the output of a Program's binary data file.
-@item
-Any place you might use od(1) but need more power. Compare more vs less.
-@item
-Any other time you find this useful (tell me).
-@end itemize
-
-
-@node Copyright and License, Author, What is Hexedit, Introduction
-@section Copyright and License
-@strong{[N]Curses Hexedit} Copyright @copyright{} 1998,1999 Adam Rogoyski @*
-@ @*
-This program is free software; you can redistribute it and/or modify it under the terms of the GNU
-General Public License as publish by the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.@*
-@ @*
-This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
-the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
-License for more details.@*
-@ @*
-You should have received a copy of the GNU General Public License along with this program; if not,
-write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA
-
-
-@node Author, Feedback and Bugs, Copyright and License, Introduction
-@section Author
-@strong{[N]Curses Hexedit} was written by Adam Rogoyski@footnote{Email me at
-apoc@@laker.net}@footnote{There is a picture of me at http://profiles.yahoo.com/rogoyski/}.
-At the time of writting (December 1998) I am a Sophomore of Computer Science at the University of
-Texas at Austin. I use Debian GNU/Linux and OpenBSD, I enjoy playing electric guitar, and
-I currently reside Pflugerville, Texas USA. My heroes are Richard
-Stallman, Stevie Ray Vaughan, and Lisa Loeb.
-
-
-@node Feedback and Bugs, Contributions, Author, Introduction
-@section Feedback and Bugs
-Astounding as it may be, there quite possibly are bugs in @strong{hexedit}. You can do your
-share to help Free Software@footnote{http://www.gnu.org/philosophy/free-sw.html} be robust
-and secure by telling me about any problems you find. Patches are even better. General
-feedback is appreciated as well, if only to tell me that @strong{hexedit} saved the day
-again, or that my obscure program wasted half your day when you already knew how to use
-emacs (M-x hexl-mode) in the first place.@*
-@ @*
- I can be reached at @emph{apoc@@laker.net}
-
-
-@node Contributions, , Feedback and Bugs, Introduction
-@section Contributions
-The following people contributed valuable feedback and information
-@itemize @bullet
-@item
-John Gatewood Ham: Gave some tips for the documentation.
-@item
-Cort (unknown): Idea for Undo.
-@item
-Matt Noel: EBCDIC support and spacing. Countless suggestions and ideas.
-@item
-Everyone else who mailed me and told me things that broke and gave suggestions.
-@end itemize
-
-
-
-@node Getting Started, Program Operations, Introduction, Top
-@chapter Getting Started
-
-@menu
-* Obtaining Source:: Where to find hexedit.
-* Obtaining Binaries:: Where to find binaries.
-* Building from Source:: What to do to build hexedit.
-* Command Line Invocation:: starting from the shell.
-@end menu
-
-
-
-@node Obtaining Source, Obtaining Binaries, , Getting Started
-@section Obtaining Source
-The latest source tar'd and gzip'd can be obtained at@*
-@emph{http://ccwf.cc.utexas.edu/~apoc/programs/c/hexedit/}@*
-and also from everyone's favorite ftp site@*
-@emph{ftp://metalab.unc.edu/pub/Linux/apps/editors/terminal/}@*
-If you do not know what tar and gzip are, and are using a DOS derived OS,
-@xref{Obtaining Binaries}.
-
-
-@node Obtaining Binaries, Building from Source, Obtaining Source, Getting Started
-@section Obtaining Binaries
-Pre-compiled statically linked binaries can be obtained for the following
-operating systems: i386 Linux, i386 OpenBSD, and DOS.
-The location for these is:@*
-@emph{http://ccwf.cc.utexas.edu/~apoc/programs/c/hexedit/}
-
-I've Built and tested hexedit on the following platforms:
-
-@itemize @bullet
-@item
-Linux 2.0.36 i386 ncurses 4.2 (gcc)
-
-@item
-Linux 2.2.6 i386 ncurses 4.2 (gcc)
-
-@item
-OpenBSD 2.4 i386 ncurses (gcc)
-
-@item
-SunOS 5.6 Sparc curses (gcc)
-
-@item
-AIX 4.3.2 rs6000 curses (gcc and cc)
-
-@item
-AIX 4.3.2 ppc curses (gcc and cc)
-
-@item
-DOS 6.22 i386 pdcurses (djgpp gcc)
-
-@item
-IRIX 6.3 mips curses (gcc)
-
-@item
-HP-UX B.10.20 curses (gcc)
-
-@item
-SunOS 5.5.1 sparc curses (gcc)
-
-@item
-OSF V4.0 alpha curses (gcc)
-@end itemize
-
-
-@node Building from Source, Command Line Invocation, Obtaining Binaries, Getting Started
-@section Building from Source
-Building from source should be very strait forward. I used the GNU
-configure system (autoconf and automake) so, like any GNU compliant program,
-the sequence
-@example
- ./configure
- make
- make install
-@end example
-should be all that's needed to install the package. Additional options may
-need to be given to configure, check INSTALL for such options.
-
-
-@subsection i386 Linux
-I extremely recommend you upgrade to ncurses 4.2 for hexedit to work. It should
-work with all versions, but resizing in an xterm seems to work better with the
-newest release. The latest ncurses can be obtained at the nearest GNU ftp archive
-(or ftp://ftp.gnu.org/pub/gnu/).
-
-
-@subsection i386 OpenBSD
-OpenBSD 2.4 I believe comes with ncurses, and it worked fine at my end.
-
-@subsection rs/6000 AIX 4.3
-I belive I've fixed the previous AIX problems I was having. Let me know if
-anything else turns up.
-
-
-@node Command Line Invocation, , Building from Source, Getting Started
-@section Command Line Invocation
-Basic program usage is as follows:@*
-@example
-@strong{hexedit} [@emph{flags}] [@emph{filename}]@*
-@end example
-Where filename is the file which you wish to edit. Additionally, starting the program
-with no file@*
-@example
-@strong{hexedit} [@emph{flags}]@*
-@end example
-will bring up the file selection widget which will allow you to browse
-for the file. The command line arguments which are supported are@*
-
- -h, --help Prints help.@*
- -8, --highbit Allows displaying of high order bit text.@*
- -a, --alltext Allows displaying of all text (probably bad idea).@*
- -b, --buffer Buffer the entire file into memory.@*
- -d, --disk View a fixed disk (Linux only).@*
- -f, --force Allow editing of disk (Linux only).@*
- -q, --quiet No Beeping!@*
- -r, --readonly Prevents modifying the file.@*
- -v, --version Prints version number.@*
-@*
-
-Defaults may be specified in the HEXEDIT environment variable, i.e.@*
-
- sh: @emph{export HEXEDIT=-8r}@*
- csh: @emph{setenv HEXEDIT=-8r}@*
-
-
-@node Program Operations, , Getting Started, Top
-@chapter Program Operations
-
-
-@menu
-* Choosing a file:: How to select a file to edit.
-* Choosing a fixed disk:: How to select a fixed disk to view/edit.
-* Windows:: Descriptions of the various windows.
-* Moving About:: How to traverse the file.
-* Editing:: Editing procedures.
-* Undo:: Fixing mistakes.
-* Searching:: Locating specific strings.
-* Quit:: Exiting the editor.
-* Save:: Commiting changes to disk.
-* Save and Quit:: Commiting changes with exit.
-* Redraw:: Refreshing the screen.
-* View as Text:: Take an text snapshot of offset.
-* Ascii <=> EBCDIC:: Switch between text representations
-* Switch Spacings:: Change the way the bytes are grouped
-* Binary Calculator:: Base conversions.
-* Help:: Accessing online help.
-@end menu
-
-
-
-@node Choosing a file, Choosing a fixed disk, , Program Operations
-@section Choosing a file
-Before editing can begin, you much select a file to edit. This can be done on the
-command line:
-@example
- hexedit filename
-@end example
-Quite possibly, you may not remember the location of the file you wish to edit, or you
-may wish to browse over many possible files availible to find the file you are looking
-for. Hexedit comes equipted with a full screen file/directory browser which enables you
-to specify the file you wish to edit. Not specifying any file on the command line:
-@example
- hexedit
-@end example
-will bring up the file selection browser. Choosing (pressing enter) a directory will open
-that directory for viewing. Choosing a file will open that file in the editor.
-
-
-
-@node Choosing a fixed disk, Windows, Choosing a file, Program Operations
-@section Choosing a fixed disk.
-Hexedit, when run in Linux, permits access to read and edit fixed disks (i.e /dev/hda).
-Using the @emph{-d} option will allow you to edit a disk. Currently, the disk can be
-only up to 4.2 gigs, but this will probably change in a future release.@*
- By default, editing a disk will put you in read-only mode. This is for your own
-protection. If you really think you know what you are doing, issue the @emph{-f} flag
-and it will force edit mode for the disk and allow you to make changes to your disk.
-Use this with @strong{EXTREME CAUTION!} If you make a mistake to your boot sector,
-erase a few important inodes, or hit the wrong keystroke, you could be seriously out
-of luck. It is really easy to put your disk in an unusable state. Also, remember that
-the disk could very well be changing as you look at it. So the next time you view a
-chunk, it may be different, or even the chunk you are currently viewing may have changed
-on disk since you read it into the editor's buffer. So be careful if you want to edit
-a mounted disk.@*
- To put this in another way, if you don't know exactly why you would want to use
-this option, @emph{Never Use It!} @strong{IMPORTANT}: Never use this in conjunction
-with the @emph{-b} option to buffer the entier file into memory. I will leave it to
-you to think why this would be bad.
-
-
-
-@node Windows, Moving About, Choosing a fixed disk, Program Operations
-@section Windows
-The screen is made up of three windows, the @strong{Status} window, the @strong{Main}
-window, and the @strong{Help} window. A typical view would look something like this.
-@example
-File: data.dat ASCII Offset: 0x00004250 / 0x000096BB (%44)
-00004200 55 89 E5 53 8b 5D 08 A1 A8 0D 05 08 39 05 AC 0D U..S.]......9...
-00004210 05 08 0F 8C 8C 00 00 00 05 00 04 00 00 A3 A8 0D ................
-00004220 05 08 C1 E0 02 50 A1 B0 0D 05 08 50 E8 4B CB FF .....P.....P.K..
- .
- .
- etc
- .
- .
-^G Help ^C Exit (No Save) ^T goTo Offset ^X Exit and Save ^W Search
-@end example
-
-And so on.
-
-@subsection Status Window
-The Status Window is the first line of the screen. At all times, it conveys the following
-information
-@itemize @bullet
- @item
- @strong{Filename} which you are working on
- @item
- @strong{Character Set} which you are using, ASCII or EBCDIC
- @item
- @strong{Current Offset} which you are at
- @item
- @strong{Size} of file
- @item
- @strong{Percent}age way through the file
- @item
- @strong{Modified Flag}: A M in the upper right corner signals that the file has been
- modified since last save, or that the file is read-only
-@end itemize
-
-It typically looks like this
-@example
-File: data.dat ASCII Offset: 0x00004250 / 0x000096BB (%44)
-@end example
-
-
-@subsection Main Window
-The Main Window is the bulk of your view. It is where all viewing and editing of the file
-takes place. All cursor operations and movements take place within this window.
-Operations within the Main Window are described in detail in section @ref{Moving About}
-
-The Main Window is broken up vertically into three columns of information. The
-first column from the left is the base offset@footnote{All offsets are in Hexadecimal (base16)}
-which represents the offset of the first byte of that row in the Data column.
-
-The second column is the Data column, where the Hexadecimal representation of
-each byte of the file is listed. Each row consists of 16 bytes, seperated into 2
-columns of 8 bytes, each seperated into columns of 4 bytes.
-A typical row looks like: (third column not shown)
-@example
-00004280 50 E8 A6 CA@ @ FF FF E8 41@ @ @ CA FF FF 68@ @ 90 F5 04 08
-@end example
-
-The third column of the main window is the text representation on that row's bytes.
-Non printable characters
-are represented as a "." dot.
-
-@subsection Help Window
-The Help Window is the friendly reminder of basic commands within the editor. It cannot
-be removed.
-
-@subsection Popup Windows
-Various commands may bring up a Popup Window. This is a smaller window centered in the
-Main Window. Various operations, such as Searching, Jumping to another offset, saving, etc.
-require their own window, and will "Pop" one up. @emph{Escape}, @emph{Control-X}, and
-@emph{Control-G} can be used to cancel most Popup Windows.
-
-
-@node Moving About, Editing, Windows, Program Operations
-@section Moving About
-Moving about the file is done through the full screen terminal interface. Operations were
-meant to be easy to learn and comfortable to use.
-
-@subsection Hex <=> Text (Tab)
-The Main Window is composed of the hex and text representation of the file. The cursor
-may be moved from one to the other by use of @strong{Tab} or @strong{Control-I}@footnote{Control-X signifies holding down the control key and hitting X}.
-Being on the Hex representation will be called Hex Mode, with being on the text
-representation Text Mode.
-
-@subsection Arrow Keys
-The arrow keys are the basic way to move about the file. In Hex Mode, left and right
-shift you four bits in the file. Going right, you could move to the lower 4 bits of
-the current byte (b & 0x0F), or move to the higher 4 bits of the next byte (b & 0xF0).
-Left can bring you either to the higher 4 bits of the current byte, or to the lower bits
-of the previous byte. Up and Down move you 16 bytes (offset +- 0x10) through the
-file@footnote{This isn't always true if you are near the end of the file}.
-
-In Text Mode, left and right always move you one byte, with Up and Down moving you
-16 bytes.
-
-
-@subsection Jumping
-From your current offset, you can jump to an offset relative to where you are. With
-the cursor in the hex data area, Pressing @emph{+} or @emph{-} will bring up a entry
-box in the help window, in which you can type in the amount to jump. Depending on whether
-you did a plus or minus, you will traverse to @strong{current offset} @emph{+|-}
-@strong{value}. After the first jump, you can use the @emph{n} key to continue to
-jump by that offset a multitude of times.
-
-@subsection Misc
-The following keys function as you'd expect them to
-@itemize @bullet
- @item
- @emph{Page Up} (also @emph{Control-Y}, @emph{Control-B}, @emph{Alt-V}, @emph{u}, @emph{y})
- @item
- @emph{Page Down} (also @emph{Control-F}, @emph{Control-V}, @emph{space}, @emph{v})
- @item
- @emph{Home}
- @item
- @emph{End}
-@end itemize
-
-@subsection GoTo Offset
-At any time, you may jump to a specific offset of the file with @emph{Control-T} or @emph{t}.
-This will bring up a Popup Window which will prompt you to enter
-the new file offset. The new offset may be given in
-decimal@footnote{Decimal numbers are base10, ex: 255},
-octal@footnote{Octal numbers are base8, prefixed by a 0, ex: 0377},
-or hex@footnote{Hex numbers are base16, prefixed by 0x, ex: 0xFF}.
-
-Note, the default value will be 0,
-permitting a fast way to jump to the begining of the file.
-
-
-@node Editing, Undo, Moving About, Program Operations
-@section Editing
-Editing is the primary@footnote{This would make viewing the secondary function, perhaps.}
-function of the editor.
-
-@subsection Modifying Bytes
-
-@subsubsection Hex Mode
-In this mode, Characters 0-9 and A-F may be used to change the current byte. All other
-characters are ignored.
-
-@subsubsection Text Mode
-In this mode, any printable character may be used to change the current byte.
-
-@subsection Insert
-Insert allows you to, inplace, insert a new byte of data into the file, thus increasing
-the size of the file by one byte. The new byte is always equal to zero until you modify
-it. Insert is done through the @emph{Insert} key or @emph{Control-A}. Insert is only
-enabled if you use the @emph{-b} option to buffer the entire file into memory. This is
-not something I will consider changing. If you want to modify your copy to allow this,
-best of luck to you. Insert cannot work on disks either.
-
-To simulate appending a byte to the end of the file, Jump to the end of the file,
-and insert a byte. This will have pushed the last byte over one. Copy the value of that
-byte to the new zero'd byte. Now zero the last byte.
-
-@subsection Delete
-Delete allows you to delete the current byte, shifting the remainder of the file back one,
-thus decreasing the size of the file by one byte. Delete is done through the @emph{Delete}
-key or @emph{Control-D}. Delete will only work if you use the @emph{-b} option to buffer
-the entire file into memory. Same as with Insert, this is not going to change in a future
-release. Usually, you can use dd(1) to get the part of the file/disk you want, insert and
-delete on that to your heart's content, and then dd that back to the file/disk.
-
-If there is only one byte in the file, Delete will zero the byte, but you cannot
-reduce the file to zero bytes@footnote{I recommend rm(1) for this}
-
-
-@node Undo, Searching, Editing, Program Operations
-@section Undo
-While editing a file, it is quite likely that you may make a mistake@footnote{Or a typo, if you prefer}.
-To facilitate this, an extensive Undo command has been implemented on your behalf.
-@emph{Control-U} Undoes the previous change to the file. The editor keeps track
-of all modifications, insertions, and deletions. What this means is that at any time
-you can, if you wish, revert the file back to it's original state by a series of
-Undo's.
-
-If you do @emph{Control-U} and the last changed byte is currently viewable
-in the Main Window, then the cursor will relocate to that byte and revert it to it's
-previous state. If the last changed byte is not currently viewable, the currently
-viewable area will shift so that the changed byte is viewable. In other words, you
-will be relocated to that part of the file, with the cursor on that byte at that
-offset. The Byte WILL NOT be Un-done. Another @emph{Control-U} will now undo the
-change@footnote{This is probably worded poorly, but it's easy to see what I mean when
-you try it}.
-
-
-@node Searching, Quit, Undo, Program Operations
-@section Searching
-Searching allows you to quickly@footnote{The fast Boyer-Moore algorithm is used}
-locate a specific sequence of characters or bytes in the file. @emph{Control-W} or @emph{w}
-brings up a Popup Window giving you the options of Find Next (@emph{N}),
-Search for text string (@emph{A}), and Search for Hex bytes (@emph{H}).
-
-@subsection Search for Text String
-This options allows you to search for specific character strings of text. Spaces
-are allowed.
-
-@subsection Search for Hex Bytes
-This options allows you to search for a specific string of bytes in the file. The
-Popup Window has an entry box, which accepts a sequence of bytes in Hex (0-9, A-F),
-while it shows the text representation of those bytes above. Non printable
-characters are shown as "." dot.
-
-@subsection Find Next
-This options allows you to find the next occurence of the previous search (text or
-Hex). This option is not availible until after your first search is completed.
-
-This options is bound to @emph{Control-N} to allow quickly locating the
-next match.
-
-
-@node Quit, Save, Searching, Program Operations
-@section Quit
-Quiting without prompting to save is done by @emph{Control-C}. It will bring up
-a Popup Window to make sure of your decision to quit the program.
-
-
-@node Save, Save and Quit, Quit, Program Operations
-@section Save
-To save the file at any time with the currently made changes is done with
-@emph{Control-O}@footnote{On OpenBSD and a few other OS's, This keystroke
-does not seem to work. It has something to do with the terminal using it}.
-The file may be saved over the current file@footnote{This isn't always possible. One place is
-in DOS if you try to save over the executable currently being ran}, or you may save the file as
-a new or different file. In the event of an error or inability to save, you will be given
-the standard@footnote{perror (filename)} error message in the Popup Window.
-
-
-@node Save and Quit, Redraw, Save, Program Operations
-@section Save and Quit
-To exit the program, saving the file as you go, use @emph{Control-X}. If the file has not
-been modified since the last save, the program will exit without saving. If the file has
-been modified, you will be prompted for the filename to save to, which may be different
-than the current filename. In the event of an error or inability to save, you will be given
-the standard error message in the Popup Window, and the program will resume operations without
-terminating.
-
-
-@node Redraw, View as Text, Save and Quit, Program Operations
-@section Redraw
-In the event that the terminal becomes unreadable, or for any other reason, the screen may
-be redrawn with @emph{Control-L}. This will only erase and redraw the screen. If the
-terminal needs to be reset@footnote{By '/bin/echo "\033c"' perhaps}, the terminal will
-still need to be reset.
-
-
-@node View as Text, Ascii <=> EBCDIC, Redraw, Program Operations
-@section View as Text
-If at any time, you would like to see what the current file looks like as an text dump,
-@emph{Control-E} will let you. Note: This feature was intended for files which are
-mostly made up of text. I implemented this by traveling back to the previous new line
-so that the text would be aligned how it would be in a text editor. Because of this, in
-a file without any new lines for a long time, you may not be able to view certain parts
-of the file in this mode. I do not see this as a problem, and I can recommend some really
-nice text editors for you if you disagree. Just don't use this function@footnote{Don't use this function. Never use it. I don't.}.
-
-This feature was meant to just show you a snapshot of the current section as text.
-That's all it does, that's all it will do.
-
-
-@node Ascii <=> EBCDIC, Switch Spacings, View as Text, Program Operations
-@section Ascii <=> EBCDIC
-Some old IBM mainframes use EBCDIC instead of the ASCII character set. To switch between
-which way the text is represented, @emph{Control-R} will switch it. If you don't know
-what this is, you probably should not use it.
-
-
-@node Switch Spacings, Binary Calculator, Ascii <=> EBCDIC, Program Operations
-@section Switch Spacings
-Some people like having spaces between each byte, and between each 8 bytes:
-@example
-04 30 40 23 23 43 23 54 23 48 83 29 23 12 00 45
-@end example
-Some people like having the bytes grouped into four byte words:
-@example
-04304023 23432354 23488329 23120045
-@end example
-To select which way you'd like to view the file as, use @emph{Control-P} to
-switch the spacings around to the way you like it.
-
-@node Binary Calculator, Help, Switch Spacings, Program Operations
-@section Binary Calculator
-A binary calculator is included which will let you convert between
-base2, base8, base10, and base16 easily. This
-can be brought up with @emph{Control-+}. Currently, this doesn't
-have all the features I'd like to spend the time to put into it, but
-it still is quite useful.
-
-Currently, all numbers in the calculator are represented in
-the machines default signed Integer size, a size which will be displayed
-in the status window. This means that most likely setting the highest
-bit will lead to a negative number. If I get time, unsigned ints as well
-as indefinite precision, and arithmetic functions will be added.
-
-
-@node Help, , Binary Calculator, Program Operations
-@section Help
-At any time, @emph{Control-G} may be used to get a list of commands for the editor. The
-Help Window will also list some commonly used commands.
-
-
-
-@contents
-
-
-@bye
diff --git a/docs/hexeditor.1 b/docs/hexeditor.1
new file mode 100644
index 0000000..3f11291
--- /dev/null
+++ b/docs/hexeditor.1
@@ -0,0 +1,144 @@
+.\" Copyright (C) 1998,1999 Adam Rogoyski
+.TH HEXEDIT 1
+.SH NAME
+hexedit \- Full screen curses Hex editor
+.SH SYNOPSIS
+.nr a \n(.j
+.ad l
+.nr i \n(.i
+.in +\w'\fBhexedit 'u
+.ti \niu
+.B hexedit
+.de OP
+.ie \\n(.$-1 .RI "[\ \fB\\$1fP" "\\$2" "\ ]"
+.el .RB "[\ " "\\$1" "\ ]"
+..
+.OP \-8abdfgqrv
+.RI "[\ " filename "\ ]"
+.br
+.ad \na
+.SH DESCRIPTION
+.I Hexedit
+is an editor to edit binary (or any) files or disks. The Display consists
+of the current offset from 0 (the first byte), the next sixteen bytes
+(aligned by bytes or 32-bit words), and it's ASCII or EBCDIC text
+representation.
+.SH OPTIONS
+.TP
+.B \fI-h, --help\fR
+Display help
+.TP
+.B \fI-8, --highbit\fR
+Display 8-bit text
+.TP
+.B \fI-a, --alltext\fR
+Display all text regardless that you know better
+.TP
+.B \fI-b, --buffer\fR
+Buffer the entire file into memory. Faster, and enables insert and delete.
+.TP
+.B \fI-d, --disk\fR
+File editing is a disk. OpenBSD and Linux only.
+.TP
+.B \fI-f, --force\fR
+Force editing of a disk. Need this option to enable writing to disks.
+.TP
+.B \fI-q, --quiet\fR
+Quiet Mode; Turn off all beeping.
+.TP
+.B \fI-r, --readonly\fR
+Do not allow modifying the file
+.TP
+.B \fI-v, --version\fR
+Display version number
+
+.SH Commands and keys
+.TP
+.B \fI^A\fR
+Insert byte
+.TP
+.B \fIInsert\fR
+Insert byte
+.TP
+.B \fI^D\fR
+Delete byte
+.TP
+.B \fIDelete\fR
+Delete byte
+.TP
+.B \fI^E\fR
+viEw as text dump
+.TP
+.B \fI^F\fR
+Page down
+.TP
+.B \fI^V\fR
+Page down
+.TP
+.B \fIPage Down\fR
+Page down
+.TP
+.B \fI^B\fR
+Page Up
+.TP
+.B \fI^Y\fR
+Page Up
+.TP
+.B \fIAlt-V\fR
+Page Up
+.TP
+.B \fIPage Up\fR
+Page Up
+.TP
+.B \fITab\fR
+Switch from hex to text representation
+.TP
+.B \fI^I\fR
+Switch from hex to text representation
+.TP
+.B \fI^T\fR
+goTo offset
+.TP
+.B \fI^G\fR
+Get help
+.TP
+.B \fI^L\fR
+Redraw screen
+.TP
+.B \fI^C\fR
+Quit without saving
+.TP
+.B \fI^O\fR
+Save
+.TP
+.B \fI^X\fR
+Save and Quit
+.TP
+.B \fI^W\fR
+Search (text/hex)
+.TP
+.B \fI^N\fR
+find Next
+.TP
+.B \fI^U\fR
+Undo
+.TP
+.B \fI^R\fR
+ASCII <=> EBCDIC
+.TP
+.B \fI^P\fR
+Switch Spacings
+.TP
+.B \fI^+\fR
+Binary Calculator
+
+.SH Author
+Adam Rogoyski <apoc@laker.net>
+.SH "See Also"
+od (1)
+.SH BUGS
+Editing disks is only supported in Linux and OpenBSD.
+
+Please email Adam Rogoyski <apoc@laker.net> with any bugs you might find.
+This man page is intentionally brief. Please Read the included documentation
+in Texinfo format for additional information
diff --git a/docs/hexeditor.texi b/docs/hexeditor.texi
new file mode 100644
index 0000000..62eb729
--- /dev/null
+++ b/docs/hexeditor.texi
@@ -0,0 +1,643 @@
+\input texinfo @c -*-texinfo-*-
+@c %**start of header
+@setfilename hexeditor.info
+@settitle Ncurses Hexedit
+@c %**end of header
+
+
+@ifinfo
+[N]Curses Hexedit Manual
+
+Copyright (C) 1999 Adam Rogoyski
+@end ifinfo
+
+@titlepage
+@title [N]Curses Hexedit
+@subtitle The hexedit manual
+@author Adam Rogoyski
+
+@page
+@vskip 0pt plus 1filll
+Copyright @copyright{} 1999 Adam Rogoyski
+
+Permission is granted to make and distribute verbatim copies of this
+manual provided the copyright notice and this permission notice are
+preserved on all copies.
+
+Permission is granted to copy and distribute modified versions of this
+manual under the conditions for verbatim copying, provided that the entire
+resulting derived work is distributed under the terms of a permission
+notice identical to this one.
+
+Permission is granted to copy and distribute translations of this manual
+into another language, under the above conditions for modified version,
+except that this permission notice may be stated in a translation approved
+by the Free Software Foundation.
+
+@end titlepage
+
+@node Top, Introduction, (dir), (dir)
+
+@menu
+* Introduction:: About hexedit, the author, and life in general.
+* Getting Started:: Getting hexedit, compiling, running.
+* Program Operations:: Program usage and commands.
+@end menu
+
+
+
+
+@node Introduction, Getting Started, Top, Top
+@chapter Introduction
+
+@menu
+* What is Hexedit:: Brief intro to the program.
+* Copyright and License:: Terms of copying.
+* Author:: Info about me.
+* Feedback and Bugs:: When to contact me.
+* Contributions:: Who's helped so far.
+@end menu
+
+
+@node What is Hexedit, Copyright and License, , Introduction
+@section What is Hexedit?
+
+
+@strong{hexedit} is a Curses based Hex editor.
+Unlike a text editor, which is used for editing text documents in the desired language,
+@strong{hexedit} lets you edit any file as it's byte@footnote{I assume a byte is an 8-bit
+octet. If this is not the case, I really recommend NOT using this program.}
+for byte representation. It can even let you view and edit your fixed disks on your Linux
+system. This is not ideal for writing a letter or writing c code, but
+there are my times when this is ideal:
+
+@itemize @bullet
+@item
+Editing binary executables.
+@item
+Editing your fixed disks (i.e. /dev/hda)
+@item
+Checking the output of a Program's binary data file.
+@item
+Any place you might use od(1) but need more power. Compare more vs less.
+@item
+Any other time you find this useful (tell me).
+@end itemize
+
+
+@node Copyright and License, Author, What is Hexedit, Introduction
+@section Copyright and License
+@strong{[N]Curses Hexedit} Copyright @copyright{} 1998,1999 Adam Rogoyski @*
+@ @*
+This program is free software; you can redistribute it and/or modify it under the terms of the GNU
+General Public License as publish by the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.@*
+@ @*
+This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
+the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
+License for more details.@*
+@ @*
+You should have received a copy of the GNU General Public License along with this program; if not,
+write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA
+
+
+@node Author, Feedback and Bugs, Copyright and License, Introduction
+@section Author
+@strong{[N]Curses Hexedit} was written by Adam Rogoyski@footnote{Email me at
+apoc@@laker.net}@footnote{There is a picture of me at http://profiles.yahoo.com/rogoyski/}.
+At the time of writting (December 1998) I am a Sophomore of Computer Science at the University of
+Texas at Austin. I use Debian GNU/Linux and OpenBSD, I enjoy playing electric guitar, and
+I currently reside Pflugerville, Texas USA. My heroes are Richard
+Stallman, Stevie Ray Vaughan, and Lisa Loeb.
+
+
+@node Feedback and Bugs, Contributions, Author, Introduction
+@section Feedback and Bugs
+Astounding as it may be, there quite possibly are bugs in @strong{hexedit}. You can do your
+share to help Free Software@footnote{http://www.gnu.org/philosophy/free-sw.html} be robust
+and secure by telling me about any problems you find. Patches are even better. General
+feedback is appreciated as well, if only to tell me that @strong{hexedit} saved the day
+again, or that my obscure program wasted half your day when you already knew how to use
+emacs (M-x hexl-mode) in the first place.@*
+@ @*
+ I can be reached at @emph{apoc@@laker.net}
+
+
+@node Contributions, , Feedback and Bugs, Introduction
+@section Contributions
+The following people contributed valuable feedback and information
+@itemize @bullet
+@item
+John Gatewood Ham: Gave some tips for the documentation.
+@item
+Cort (unknown): Idea for Undo.
+@item
+Matt Noel: EBCDIC support and spacing. Countless suggestions and ideas.
+@item
+Everyone else who mailed me and told me things that broke and gave suggestions.
+@end itemize
+
+
+
+@node Getting Started, Program Operations, Introduction, Top
+@chapter Getting Started
+
+@menu
+* Obtaining Source:: Where to find hexedit.
+* Obtaining Binaries:: Where to find binaries.
+* Building from Source:: What to do to build hexedit.
+* Command Line Invocation:: starting from the shell.
+@end menu
+
+
+
+@node Obtaining Source, Obtaining Binaries, , Getting Started
+@section Obtaining Source
+The latest source tar'd and gzip'd can be obtained at@*
+@emph{http://ccwf.cc.utexas.edu/~apoc/programs/c/hexedit/}@*
+and also from everyone's favorite ftp site@*
+@emph{ftp://metalab.unc.edu/pub/Linux/apps/editors/terminal/}@*
+If you do not know what tar and gzip are, and are using a DOS derived OS,
+@xref{Obtaining Binaries}.
+
+
+@node Obtaining Binaries, Building from Source, Obtaining Source, Getting Started
+@section Obtaining Binaries
+Pre-compiled statically linked binaries can be obtained for the following
+operating systems: i386 Linux, i386 OpenBSD, and DOS.
+The location for these is:@*
+@emph{http://ccwf.cc.utexas.edu/~apoc/programs/c/hexedit/}
+
+I've Built and tested hexedit on the following platforms:
+
+@itemize @bullet
+@item
+Linux 2.0.36 i386 ncurses 4.2 (gcc)
+
+@item
+Linux 2.2.6 i386 ncurses 4.2 (gcc)
+
+@item
+OpenBSD 2.4 i386 ncurses (gcc)
+
+@item
+SunOS 5.6 Sparc curses (gcc)
+
+@item
+AIX 4.3.2 rs6000 curses (gcc and cc)
+
+@item
+AIX 4.3.2 ppc curses (gcc and cc)
+
+@item
+DOS 6.22 i386 pdcurses (djgpp gcc)
+
+@item
+IRIX 6.3 mips curses (gcc)
+
+@item
+HP-UX B.10.20 curses (gcc)
+
+@item
+SunOS 5.5.1 sparc curses (gcc)
+
+@item
+OSF V4.0 alpha curses (gcc)
+@end itemize
+
+
+@node Building from Source, Command Line Invocation, Obtaining Binaries, Getting Started
+@section Building from Source
+Building from source should be very strait forward. I used the GNU
+configure system (autoconf and automake) so, like any GNU compliant program,
+the sequence
+@example
+ ./configure
+ make
+ make install
+@end example
+should be all that's needed to install the package. Additional options may
+need to be given to configure, check INSTALL for such options.
+
+
+@subsection i386 Linux
+I extremely recommend you upgrade to ncurses 4.2 for hexedit to work. It should
+work with all versions, but resizing in an xterm seems to work better with the
+newest release. The latest ncurses can be obtained at the nearest GNU ftp archive
+(or ftp://ftp.gnu.org/pub/gnu/).
+
+
+@subsection i386 OpenBSD
+OpenBSD 2.4 I believe comes with ncurses, and it worked fine at my end.
+
+@subsection rs/6000 AIX 4.3
+I belive I've fixed the previous AIX problems I was having. Let me know if
+anything else turns up.
+
+
+@node Command Line Invocation, , Building from Source, Getting Started
+@section Command Line Invocation
+Basic program usage is as follows:@*
+@example
+@strong{hexedit} [@emph{flags}] [@emph{filename}]@*
+@end example
+Where filename is the file which you wish to edit. Additionally, starting the program
+with no file@*
+@example
+@strong{hexedit} [@emph{flags}]@*
+@end example
+will bring up the file selection widget which will allow you to browse
+for the file. The command line arguments which are supported are@*
+
+ -h, --help Prints help.@*
+ -8, --highbit Allows displaying of high order bit text.@*
+ -a, --alltext Allows displaying of all text (probably bad idea).@*
+ -b, --buffer Buffer the entire file into memory.@*
+ -d, --disk View a fixed disk (Linux only).@*
+ -f, --force Allow editing of disk (Linux only).@*
+ -q, --quiet No Beeping!@*
+ -r, --readonly Prevents modifying the file.@*
+ -v, --version Prints version number.@*
+@*
+
+Defaults may be specified in the HEXEDIT environment variable, i.e.@*
+
+ sh: @emph{export HEXEDIT=-8r}@*
+ csh: @emph{setenv HEXEDIT=-8r}@*
+
+
+@node Program Operations, , Getting Started, Top
+@chapter Program Operations
+
+
+@menu
+* Choosing a file:: How to select a file to edit.
+* Choosing a fixed disk:: How to select a fixed disk to view/edit.
+* Windows:: Descriptions of the various windows.
+* Moving About:: How to traverse the file.
+* Editing:: Editing procedures.
+* Undo:: Fixing mistakes.
+* Searching:: Locating specific strings.
+* Quit:: Exiting the editor.
+* Save:: Commiting changes to disk.
+* Save and Quit:: Commiting changes with exit.
+* Redraw:: Refreshing the screen.
+* View as Text:: Take an text snapshot of offset.
+* Ascii <=> EBCDIC:: Switch between text representations
+* Switch Spacings:: Change the way the bytes are grouped
+* Binary Calculator:: Base conversions.
+* Help:: Accessing online help.
+@end menu
+
+
+
+@node Choosing a file, Choosing a fixed disk, , Program Operations
+@section Choosing a file
+Before editing can begin, you much select a file to edit. This can be done on the
+command line:
+@example
+ hexedit filename
+@end example
+Quite possibly, you may not remember the location of the file you wish to edit, or you
+may wish to browse over many possible files availible to find the file you are looking
+for. Hexedit comes equipted with a full screen file/directory browser which enables you
+to specify the file you wish to edit. Not specifying any file on the command line:
+@example
+ hexedit
+@end example
+will bring up the file selection browser. Choosing (pressing enter) a directory will open
+that directory for viewing. Choosing a file will open that file in the editor.
+
+
+
+@node Choosing a fixed disk, Windows, Choosing a file, Program Operations
+@section Choosing a fixed disk.
+Hexedit, when run in Linux, permits access to read and edit fixed disks (i.e /dev/hda).
+Using the @emph{-d} option will allow you to edit a disk. Currently, the disk can be
+only up to 4.2 gigs, but this will probably change in a future release.@*
+ By default, editing a disk will put you in read-only mode. This is for your own
+protection. If you really think you know what you are doing, issue the @emph{-f} flag
+and it will force edit mode for the disk and allow you to make changes to your disk.
+Use this with @strong{EXTREME CAUTION!} If you make a mistake to your boot sector,
+erase a few important inodes, or hit the wrong keystroke, you could be seriously out
+of luck. It is really easy to put your disk in an unusable state. Also, remember that
+the disk could very well be changing as you look at it. So the next time you view a
+chunk, it may be different, or even the chunk you are currently viewing may have changed
+on disk since you read it into the editor's buffer. So be careful if you want to edit
+a mounted disk.@*
+ To put this in another way, if you don't know exactly why you would want to use
+this option, @emph{Never Use It!} @strong{IMPORTANT}: Never use this in conjunction
+with the @emph{-b} option to buffer the entier file into memory. I will leave it to
+you to think why this would be bad.
+
+
+
+@node Windows, Moving About, Choosing a fixed disk, Program Operations
+@section Windows
+The screen is made up of three windows, the @strong{Status} window, the @strong{Main}
+window, and the @strong{Help} window. A typical view would look something like this.
+@example
+File: data.dat ASCII Offset: 0x00004250 / 0x000096BB (%44)
+00004200 55 89 E5 53 8b 5D 08 A1 A8 0D 05 08 39 05 AC 0D U..S.]......9...
+00004210 05 08 0F 8C 8C 00 00 00 05 00 04 00 00 A3 A8 0D ................
+00004220 05 08 C1 E0 02 50 A1 B0 0D 05 08 50 E8 4B CB FF .....P.....P.K..
+ .
+ .
+ etc
+ .
+ .
+^G Help ^C Exit (No Save) ^T goTo Offset ^X Exit and Save ^W Search
+@end example
+
+And so on.
+
+@subsection Status Window
+The Status Window is the first line of the screen. At all times, it conveys the following
+information
+@itemize @bullet
+ @item
+ @strong{Filename} which you are working on
+ @item
+ @strong{Character Set} which you are using, ASCII or EBCDIC
+ @item
+ @strong{Current Offset} which you are at
+ @item
+ @strong{Size} of file
+ @item
+ @strong{Percent}age way through the file
+ @item
+ @strong{Modified Flag}: A M in the upper right corner signals that the file has been
+ modified since last save, or that the file is read-only
+@end itemize
+
+It typically looks like this
+@example
+File: data.dat ASCII Offset: 0x00004250 / 0x000096BB (%44)
+@end example
+
+
+@subsection Main Window
+The Main Window is the bulk of your view. It is where all viewing and editing of the file
+takes place. All cursor operations and movements take place within this window.
+Operations within the Main Window are described in detail in section @ref{Moving About}
+
+The Main Window is broken up vertically into three columns of information. The
+first column from the left is the base offset@footnote{All offsets are in Hexadecimal (base16)}
+which represents the offset of the first byte of that row in the Data column.
+
+The second column is the Data column, where the Hexadecimal representation of
+each byte of the file is listed. Each row consists of 16 bytes, seperated into 2
+columns of 8 bytes, each seperated into columns of 4 bytes.
+A typical row looks like: (third column not shown)
+@example
+00004280 50 E8 A6 CA@ @ FF FF E8 41@ @ @ CA FF FF 68@ @ 90 F5 04 08
+@end example
+
+The third column of the main window is the text representation on that row's bytes.
+Non printable characters
+are represented as a "." dot.
+
+@subsection Help Window
+The Help Window is the friendly reminder of basic commands within the editor. It cannot
+be removed.
+
+@subsection Popup Windows
+Various commands may bring up a Popup Window. This is a smaller window centered in the
+Main Window. Various operations, such as Searching, Jumping to another offset, saving, etc.
+require their own window, and will "Pop" one up. @emph{Escape}, @emph{Control-X}, and
+@emph{Control-G} can be used to cancel most Popup Windows.
+
+
+@node Moving About, Editing, Windows, Program Operations
+@section Moving About
+Moving about the file is done through the full screen terminal interface. Operations were
+meant to be easy to learn and comfortable to use.
+
+@subsection Hex <=> Text (Tab)
+The Main Window is composed of the hex and text representation of the file. The cursor
+may be moved from one to the other by use of @strong{Tab} or @strong{Control-I}@footnote{Control-X signifies holding down the control key and hitting X}.
+Being on the Hex representation will be called Hex Mode, with being on the text
+representation Text Mode.
+
+@subsection Arrow Keys
+The arrow keys are the basic way to move about the file. In Hex Mode, left and right
+shift you four bits in the file. Going right, you could move to the lower 4 bits of
+the current byte (b & 0x0F), or move to the higher 4 bits of the next byte (b & 0xF0).
+Left can bring you either to the higher 4 bits of the current byte, or to the lower bits
+of the previous byte. Up and Down move you 16 bytes (offset +- 0x10) through the
+file@footnote{This isn't always true if you are near the end of the file}.
+
+In Text Mode, left and right always move you one byte, with Up and Down moving you
+16 bytes.
+
+
+@subsection Jumping
+From your current offset, you can jump to an offset relative to where you are. With
+the cursor in the hex data area, Pressing @emph{+} or @emph{-} will bring up a entry
+box in the help window, in which you can type in the amount to jump. Depending on whether
+you did a plus or minus, you will traverse to @strong{current offset} @emph{+|-}
+@strong{value}. After the first jump, you can use the @emph{n} key to continue to
+jump by that offset a multitude of times.
+
+@subsection Misc
+The following keys function as you'd expect them to
+@itemize @bullet
+ @item
+ @emph{Page Up} (also @emph{Control-Y}, @emph{Control-B}, @emph{Alt-V}, @emph{u}, @emph{y})
+ @item
+ @emph{Page Down} (also @emph{Control-F}, @emph{Control-V}, @emph{space}, @emph{v})
+ @item
+ @emph{Home}
+ @item
+ @emph{End}
+@end itemize
+
+@subsection GoTo Offset
+At any time, you may jump to a specific offset of the file with @emph{Control-T} or @emph{t}.
+This will bring up a Popup Window which will prompt you to enter
+the new file offset. The new offset may be given in
+decimal@footnote{Decimal numbers are base10, ex: 255},
+octal@footnote{Octal numbers are base8, prefixed by a 0, ex: 0377},
+or hex@footnote{Hex numbers are base16, prefixed by 0x, ex: 0xFF}.
+
+Note, the default value will be 0,
+permitting a fast way to jump to the begining of the file.
+
+
+@node Editing, Undo, Moving About, Program Operations
+@section Editing
+Editing is the primary@footnote{This would make viewing the secondary function, perhaps.}
+function of the editor.
+
+@subsection Modifying Bytes
+
+@subsubsection Hex Mode
+In this mode, Characters 0-9 and A-F may be used to change the current byte. All other
+characters are ignored.
+
+@subsubsection Text Mode
+In this mode, any printable character may be used to change the current byte.
+
+@subsection Insert
+Insert allows you to, inplace, insert a new byte of data into the file, thus increasing
+the size of the file by one byte. The new byte is always equal to zero until you modify
+it. Insert is done through the @emph{Insert} key or @emph{Control-A}. Insert is only
+enabled if you use the @emph{-b} option to buffer the entire file into memory. This is
+not something I will consider changing. If you want to modify your copy to allow this,
+best of luck to you. Insert cannot work on disks either.
+
+To simulate appending a byte to the end of the file, Jump to the end of the file,
+and insert a byte. This will have pushed the last byte over one. Copy the value of that
+byte to the new zero'd byte. Now zero the last byte.
+
+@subsection Delete
+Delete allows you to delete the current byte, shifting the remainder of the file back one,
+thus decreasing the size of the file by one byte. Delete is done through the @emph{Delete}
+key or @emph{Control-D}. Delete will only work if you use the @emph{-b} option to buffer
+the entire file into memory. Same as with Insert, this is not going to change in a future
+release. Usually, you can use dd(1) to get the part of the file/disk you want, insert and
+delete on that to your heart's content, and then dd that back to the file/disk.
+
+If there is only one byte in the file, Delete will zero the byte, but you cannot
+reduce the file to zero bytes@footnote{I recommend rm(1) for this}
+
+
+@node Undo, Searching, Editing, Program Operations
+@section Undo
+While editing a file, it is quite likely that you may make a mistake@footnote{Or a typo, if you prefer}.
+To facilitate this, an extensive Undo command has been implemented on your behalf.
+@emph{Control-U} Undoes the previous change to the file. The editor keeps track
+of all modifications, insertions, and deletions. What this means is that at any time
+you can, if you wish, revert the file back to it's original state by a series of
+Undo's.
+
+If you do @emph{Control-U} and the last changed byte is currently viewable
+in the Main Window, then the cursor will relocate to that byte and revert it to it's
+previous state. If the last changed byte is not currently viewable, the currently
+viewable area will shift so that the changed byte is viewable. In other words, you
+will be relocated to that part of the file, with the cursor on that byte at that
+offset. The Byte WILL NOT be Un-done. Another @emph{Control-U} will now undo the
+change@footnote{This is probably worded poorly, but it's easy to see what I mean when
+you try it}.
+
+
+@node Searching, Quit, Undo, Program Operations
+@section Searching
+Searching allows you to quickly@footnote{The fast Boyer-Moore algorithm is used}
+locate a specific sequence of characters or bytes in the file. @emph{Control-W} or @emph{w}
+brings up a Popup Window giving you the options of Find Next (@emph{N}),
+Search for text string (@emph{A}), and Search for Hex bytes (@emph{H}).
+
+@subsection Search for Text String
+This options allows you to search for specific character strings of text. Spaces
+are allowed.
+
+@subsection Search for Hex Bytes
+This options allows you to search for a specific string of bytes in the file. The
+Popup Window has an entry box, which accepts a sequence of bytes in Hex (0-9, A-F),
+while it shows the text representation of those bytes above. Non printable
+characters are shown as "." dot.
+
+@subsection Find Next
+This options allows you to find the next occurence of the previous search (text or
+Hex). This option is not availible until after your first search is completed.
+
+This options is bound to @emph{Control-N} to allow quickly locating the
+next match.
+
+
+@node Quit, Save, Searching, Program Operations
+@section Quit
+Quiting without prompting to save is done by @emph{Control-C}. It will bring up
+a Popup Window to make sure of your decision to quit the program.
+
+
+@node Save, Save and Quit, Quit, Program Operations
+@section Save
+To save the file at any time with the currently made changes is done with
+@emph{Control-O}@footnote{On OpenBSD and a few other OS's, This keystroke
+does not seem to work. It has something to do with the terminal using it}.
+The file may be saved over the current file@footnote{This isn't always possible. One place is
+in DOS if you try to save over the executable currently being ran}, or you may save the file as
+a new or different file. In the event of an error or inability to save, you will be given
+the standard@footnote{perror (filename)} error message in the Popup Window.
+
+
+@node Save and Quit, Redraw, Save, Program Operations
+@section Save and Quit
+To exit the program, saving the file as you go, use @emph{Control-X}. If the file has not
+been modified since the last save, the program will exit without saving. If the file has
+been modified, you will be prompted for the filename to save to, which may be different
+than the current filename. In the event of an error or inability to save, you will be given
+the standard error message in the Popup Window, and the program will resume operations without
+terminating.
+
+
+@node Redraw, View as Text, Save and Quit, Program Operations
+@section Redraw
+In the event that the terminal becomes unreadable, or for any other reason, the screen may
+be redrawn with @emph{Control-L}. This will only erase and redraw the screen. If the
+terminal needs to be reset@footnote{By '/bin/echo "\033c"' perhaps}, the terminal will
+still need to be reset.
+
+
+@node View as Text, Ascii <=> EBCDIC, Redraw, Program Operations
+@section View as Text
+If at any time, you would like to see what the current file looks like as an text dump,
+@emph{Control-E} will let you. Note: This feature was intended for files which are
+mostly made up of text. I implemented this by traveling back to the previous new line
+so that the text would be aligned how it would be in a text editor. Because of this, in
+a file without any new lines for a long time, you may not be able to view certain parts
+of the file in this mode. I do not see this as a problem, and I can recommend some really
+nice text editors for you if you disagree. Just don't use this function@footnote{Don't use this function. Never use it. I don't.}.
+
+This feature was meant to just show you a snapshot of the current section as text.
+That's all it does, that's all it will do.
+
+
+@node Ascii <=> EBCDIC, Switch Spacings, View as Text, Program Operations
+@section Ascii <=> EBCDIC
+Some old IBM mainframes use EBCDIC instead of the ASCII character set. To switch between
+which way the text is represented, @emph{Control-R} will switch it. If you don't know
+what this is, you probably should not use it.
+
+
+@node Switch Spacings, Binary Calculator, Ascii <=> EBCDIC, Program Operations
+@section Switch Spacings
+Some people like having spaces between each byte, and between each 8 bytes:
+@example
+04 30 40 23 23 43 23 54 23 48 83 29 23 12 00 45
+@end example
+Some people like having the bytes grouped into four byte words:
+@example
+04304023 23432354 23488329 23120045
+@end example
+To select which way you'd like to view the file as, use @emph{Control-P} to
+switch the spacings around to the way you like it.
+
+@node Binary Calculator, Help, Switch Spacings, Program Operations
+@section Binary Calculator
+A binary calculator is included which will let you convert between
+base2, base8, base10, and base16 easily. This
+can be brought up with @emph{Control-+}. Currently, this doesn't
+have all the features I'd like to spend the time to put into it, but
+it still is quite useful.
+
+Currently, all numbers in the calculator are represented in
+the machines default signed Integer size, a size which will be displayed
+in the status window. This means that most likely setting the highest
+bit will lead to a negative number. If I get time, unsigned ints as well
+as indefinite precision, and arithmetic functions will be added.
+
+
+@node Help, , Binary Calculator, Program Operations
+@section Help
+At any time, @emph{Control-G} may be used to get a list of commands for the editor. The
+Help Window will also list some commonly used commands.
+
+
+
+@contents
+
+
+@bye
diff --git a/src/Makefile.am b/src/Makefile.am
index e3979a6..03cd93f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,6 +1,6 @@
-bin_PROGRAMS = hexedit
+bin_PROGRAMS = hexeditor
-hexedit_SOURCES = asciikey.c \
+hexeditor_SOURCES = asciikey.c \
calc.c \
calckeys.c \
edit.c \
|