path: husc6!think!ames!vsi1!altnet!uunet!steinmetz!yosemite!elliott from: elliott@yosemite.steinmetz newsgroups: comp.binaries.apple2 subject: view.exe, a file-browsing segment for atp-pro message-id: <11775@steinmetz.ge.com> date: 8 aug 88 17:35:24 gmt sender: news@steinmetz.ge.com reply-to: elliott@crd.ge.com (jim elliott) organization: rensselaer polytechnic institute, troy ny lines: 180 here's a new segment for atp, one of the several i have been promising for a while. this is file view.exe, which when execed produces view.bqy. use blu to extract view, and move it into your segments subdirectory. view lets you look at prodos files in several different formats, and does a reasonable job of guessing what format to use initially. i haven't rewritten the help screens to describe view yet, but it has built-in help. here's a nutshell description to get you started: when you launch view, it will ask you for the pathname of the file you'd like to view. it will then open a window in which it will display the start of the file. (the last two lines of the screen still show your host session, as usual, so you can see if something important happens there, and so that this segment is compatible with remote mode. (yes, this means you can use atp in server mode to look at files on your system from another machine.)) inside view there are some simple commands. hitting these keys while it is displaying a screen will interrupt the display and process the command immediately. "?" will give you a helpful summary of the available commands. "=" shows the filename and position within that file which is displayed. "f", the space bar and the down arrow will all move you forward in the file by one screen. "b" and the up arrow will put you back at the previous screen. (in order to deal with the complexities of variable-length screens, view maintains a stack of previous screens. since you can have up to 240 screens in this stack, space should not be a problem. if you do run out of space, screen-forward requests will beep to warn you that this position is not being added to the stack. you can use the "g" command below to clear the stack.) "h" re-displays the current screen as a hex dump. "a" re-displays it as ascii with control-characters shown in inverse video. "t" re-displays it as text; control-characters are discarded (other than cr, which is interpreted as a carriage return/line feed). this is the most useful way to look at apple text files. "v" re-displays it verbatim, passing all control characters to your current emulation. note that this might not do what you want, for example, if cr just causes a carriage return and there are no line feeds in the file, the whole thing will overwrite itself on the first line of the screen. "g" lets you enter a decimal number or a "$" followed by a hex number, and will jump to that byte in the file. this essentially sets a new origin in the file, clearing the screen stack, as mentioned above. you can hit "g" by itself and a return to go back to the beginning. if you just start typing a number or "$" without the "g", view takes it as implied. "q" and esc quit, returning you to terminal mode. stay tuned for file transfer and other fun stuff... this segment is a good example of what can be done in an afternoon and evening's work in the atp development environment... (of course i do have an unfair advantage in being very familiar with the routines available. but i do hope other people will try playing with them.) -------->8--------cut here--------8<-------- CALL-151 E00:38 A5 FF D0 32 D8 20 8E FD AD 30 BF 8D 6A 0E 20 00 BF C7 6D 0E 0D 80 02 E18:D0 1D 20 00 BF C5 69 0E B0 15 AD 81 02 29 0F AA E8 8E 80 02 A9 2F 8D 81 E30:02 20 00 BF C6 6D 0E A2 08 B0 0E 20 00 BF C3 70 0E B0 06 A2 26 20 53 0E E48:AA 20 53 0E 4C D0 03 20 ED FD E8 BD 59 0E D0 F7 60 A0 F3 E1 F6 E5 E4 8D E60:00 C5 F2 F2 EF F2 87 8D 00 02 00 81 02 01 80 02 07 7E 0E E3 06 00 00 00 E78:00 00 08 B1 00 00 08 D6 C9 C5 D7 AE C2 D1 D9 00 F00:D8 A0 00 84 FF 88 84 E0 A9 0F 85 E1 20 67 FD A0 00 A2 FF 20 2F 0F E6 E0 F18:D0 02 E6 E1 0A 0A 0A 0A 91 E0 20 2F 0F 11 E0 91 E0 45 FF 85 FF 90 E4 E8 F30:BD 00 02 09 80 C9 A0 F0 F6 49 B0 C9 0A 90 17 69 88 09 20 C9 FA B0 0C 68 F48:68 E0 04 B0 BF 98 91 E0 4C 69 FF 18 29 0F 60 F00G 0A474CE3F4091002070008B1000008B100000200860B0007564945572E515100 0000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000005A0000000000000000 0000000000000000000000000000000000000000000700000000000000000000 76FFE6317669657700C400020001000400030006000500080007000A0009000C 000B000E000D0010000F0012001100140013001600150018001700DFFF19001B 001A001D001C001E005FFF20001F00210056FF2300220025002400270026005A FF2800FFFF29002B002A007AFF2C00B3FF2D002E0036FF30002F00E5FF310032 002FFF0FFF330035003400370036003900380072FF3A003C003B003E003D003F 001AFF400010FF42004100430044001EFFFDFF6FFFFCFF47004600480045009F FF49004A0059FF4D004B004F004C0050004E00E3FF51000CFF520053000DFF55 005400CFFF16FF5DFF0BFF560045FF4FFFEDFF570011FF5A0058005B0059005D 005C0019FF5E005F00E7FFFEFF52FF61006000630062006500660058FF64006B 006900680067005BFF6A001CFF6C00DEFFFBFF6E006D006F0070007200710076 00730077007500EEFF740064FF97FF1BFF13FF17FFE9FF790078007C007A00F9 FF7B00B7FF5CFF80007E007F007D00820083008600850081008700A7FF8400FA FF75FFEBFF08FFF8FFE4FF8A0088008E008C008B0089005EFF8D000AFF62FFF5 FFF6FF3FFF3EFF65FF63FF6CFFECFF77FFC7FF1DFF12FF42FF24FF9000EFFF8F 00910095009300960094009D009200980097009B009A009C00990057FF06FF67 FFBDFF6AFF69FFA5FF6BFFB8FF9E0096FFBFFF89FF6DFF8CFFD1FF4EFFD6FFA2 00A000A400A100A600A3009F00A500B9FF53FFBCFFBBFF07FF14FF18FF39FF2C FF29FFF7FF3AFFF0FFDBFFE1FFA700C4FFBAFFEAFF6EFF2BFF92FF1FFF31FFA4 FF37FF51FFB4FFA800A900AC00AB00AA00AD00B000AF00B200AE00B400B300B6 00B50060FFB100E6FFF3FF09FF01FF8BFF79FF93FF20FF33FF2EFF38FFD9FF40 FF3BFFB700B5FF66FFF2FF68FFC3FFE8FFC6FF80FF7FFF04FF8FFFD8FF2DFF4A FF3CFF4CFFAFFFB8004DFFBA00BB00BD00B900BF00BE00C200BC00C000C10055 FFC30061FFF1FFC5FFBEFF74FFC9FFD2FFD0FF9AFF28FF35FF00FFDAFFA3FF48 FF3DFF71FFDDFFE2FF4BFFC8FFFFFE05FF02FFF4FF73FFCEFFCCFF15FF7CFF22 FF8DFF2AFFD5FFD7FF99FF32FF30FFA6FFA2FF49FFA8FF50FFABFF2AD33AFBF8 1454AC7730B44E979AE69B822AB18E5B3F3D3B524B2D5989C78BABA9D043CB81 49DB5AE974A3CF6DF7FAF3F92BAFD3395BCEEDFCF89FFB99CC19DCF66BA70CA1 07ED30DD92C3AD2D5246E31858D1AAB7E461DACE986EC6FBD6447FBC65C28F37 5D09DA53D1B66F5CAA4363AE8717BB625C20798E1E3D7F41FD8E8DCBF6A79BF1 0ED3907833711A1AEFC2123448A25A3C9EE88F0FD8DF9497EC8A3C92AE73BD17 4640FDF661BCC3A12263C9AEC8305953676C07836B280CE58EA79BF12629C59B 55FCD88C571D121BBCEAD0D8CCA0C626A4FCE7422E23758D2047723B9E6EC682 076C2B4AF166FAF66D81F142153FB66FBD6070AB43E2733014D5A1F139184A35 36A17AA9092FE43252D708B2443B9E6EC60977C28F13C534244E94D3D058F080 5D5A8A377730DF14A8B109825746BC0008F9A5CCA213AA4B1E79A1818FB5F0ED CFC23FF4954FE0FD1F62DEFBE471869FCFE979DC7961D8B07DE3A24A127836BC D8B171812F5E045EEC8A7181673E1A5EEC605C1ED2DC065E08AD4B758DC099F7 E8391D7821C5BAD43502A7027DB55E7207F415734BBEF042035F2F7CC5DC9293 7CF41C037D55B2299791BA4648D1E34B56A314030EB297D207A872802D9973DB 6DE595C3692FA50FC06A76DEC5F72EECBC9E1144582CDE8A780148EE8F2FE580 143DBE643562D53884038DBD943EE0706B8B3015381CF652FA00B98512A52894 2844A1842B38E890F652FA00B985D20CA250C21385D2788283545663B54AD3FA 0FFE75E70F5ED9C1B026B7D772425805973B18D6E4F65A4E489825328B6E456C 05CB232F34F0B116BEFD5938E671E513F455AF2BB77BF49C76486FCA4172297A 96DB4E4E687F39A16D2727A4EE4B758DD03FB7EDE484F69713DA767242290793 619F02EE808D6CEEB990CB488D5C6EC744DA554EA893DB15C3AA914B36576AC4 A298837DF4A51A164CE60B2FD0CCD70BC28A9C10F6EA2036974FDAB593532397 2CFBBCF36C2F2C399505E32B724258FB7376F34686D25CE5325223973B9855E3 30896541B90512A6BBDA90766D32B26A5693E346308E946E0493DEA0535AB56F C74B8E162FA576062F641CFA6D57E903D435425A35B8C961285232943B4C979A AA24217823AA55A796B89E837E3B07FDBAF33B67705BA221B10FF9AFBF58A5EA A09AEC60B7965627FBAEE49866EF4A69A2AFEB67A6D56651FB2EB39A1C4567EF 328E948AD2D765921DECA705CFDF9AF1C2EE32657FB8E20558D1F8042F24AB51 59B54B4EA8E305F8D629AB8674553D7F341FC9E89FB976768EE6A0D77AFAD9FB 65399FD79FEEF9F58023E26FA9E7C77B0DFE96B7E81E598EEDFDF5A3D73FCFC9 B4F7573BFD22BB1D765C7FBAF59FD7C7FF7AABBBBFA59E1FEF35F85BDEA27B64 39B6F7D7F447EFF6EE141DCFCEEB0FA3D7EB5BEAF9F15E83BFE52DBA4796637B 7FFD63FD5BE73C7074ACEFD32FBCDB61EB3FEAADEEFE6FEDB04F2602E7B5AF69 EAFFEBFB1FF54496F63F51BFF6F53BF5BD3BBA83067E86FF13F56B5FDF29B20C FF4479CFC00FAABBE73FBADFEBEED7EFAEEFC37F047ED57B22B92699773E0EFC 36EB516F75F77FEAD7F978AEE7033F9DF5A8B7BAFBBFB5E067E0A7B2A652FF63 FD9D888FED2702B596B37304FEF5FDBFB5C3F61464D646C103920BF71F5FA5F7 846B56138571244A93B6434E6807734849705072080E4AAB8283F65A4E687F39 A11D0C2B64DFD9FCC757F3322C9B5FF6BDC3961AE485E13B985C62A1AFBCF0CE E640EC62369BB2EF8283647CDDE32BFCE5FE72429D1CB4A41CB77E987038EC77 E9033A3958EF60728782FD2E7D009B03B10BAA3665DF33C7E57F3123EB0E7B56 A41880CDCC8299ACFBD3B322E500AC9C5027078B24F7C797728064352627DEB5 6030B1DCDA0B40939155B39A1C378271A474239824E3EB1E5FE12FD51865B4E0 597FCF17195FF7F80A7F2964DFD9FCA7A2658ECBBA3C3497AA3CB7E17F3123EB 0E7B56A41880CDCC8288757F7A56A41C8055567BE713BC90AC46E5FCCEBF177C 39A1E4C4BB1619DCD50B2552C4C7F40291B683C94F0523BF17E8DDFAE966BC07 4CF8F19E6D1A126FDAA7A1F10E53F178D37650E26B8FAF4A367978F4BB62F277 3005D501B1F96C41A7C066C06C5AF0C806091AAC68BB32DD8C370909DA0EF2C8 AE88B3EC20C38465CC4D0B9E3F66780F6386777DF0C806CFEA252E354B8DEB05 5F5D4609379F5A3351E41F9B89329F1AB937062E35B512979AD05797116D0C5C 6ADA506B1A5C9B63D350D850236728B5DD70751CA9E8A60128157A32AB03900C D65507202DEC8A39682BB77B7A2185B05707295268E5764F2FA4D00EE680BD3A 4891423CC01EF6F054B443A07EE0198B9ECC853A21FB7346F346B63AA154E899 3D2DAD997D28BD91E874328B8E63A0AF4A36F9C20B885B65F1BE2283757B92C1 BA9D218375D8AB83CC75B3D4A48C4EB9A16A2383E6BA36F532FA161DFFF0F31C F4EBCE3FB677E7F33C02FFD6390F1C1DCFF5FC47F7F613D7793FEF759EF7A333 F512F1CE27AEF33EA89EE78E7FF8BCEE1EF86FFBCFAFFFDC6BA7C8094CFC5F51 A77D1D4BECA9F7FFC5FA8F3A4673507407FDECE701B7FF65B9B7EDFC5B6A50FB 9A7AFFBFB2FED974AD3046F6D4FB7FF9EB3FBAC895C5E21365971EC5F7D4FBFF 18EB3FBAC84CE54FBDFFDF76FD4BD7F3F613CDDB16F449F4FF51E7D8DEFFCCB3 EEA9F7FF99D6BF743D6F3FD1BCFE24FAFFA8736CEF7FE659F7D4DB0BEFEDEBF5 6DAF546762CA5AD2F52793F73C3D3B434E68CFA84E285D87FA4D1ED2C42B50BF 11A485C7B0E190B101D507701F361CD006541F203444D622598D92D5A8D6A24E 08635B18635BFE028CB1A5C3D01BC6F6764C61CCED3B18F7741DF66CC6D509F1 18361CCAB301D5076818DB45D15D31EEE93AECD983D409F118361C98BF01D507 68185B868A1A0C75B71FAEB88DB83A8E9C1033AC4774DC60DDC1C0E19AC15077 FBE18A9BA1F1103A6E30EE607EB8E22627D49F06ACB55408FAEA068E960A415F 3113472B2FFF0000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000DF BSAVE VIEW.BQY,A$1000,L$0C80 E00G . . . . . . ... . . . . . . . . . . ... . . JIM ELLIOTT / ...!SEISMO!UUNET!STEINMETZ!CRD!ELLIOTT / USERE2U7@RPITSMTS.BITNET "DON'T LOOK, SON, IT'S / JIM_ELLIOTT%MTS@ITSGW.RPI.EDU [SCHOOL] A SECULAR HUMANIST!" / (OR) ELLIOTT@GE-CRD.ARPA [WORK] . . . . . . ... . . . . . . . . . . ... . .