Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ub.d.umn.edu!cs.umn.edu!!jdege From: jdege@ (Jeff Dege) Newsgroups: comp.sys.handhelds Subject: Re: Tetris Message-ID: <1990Aug9.033305.27351@cs.umn.edu> Date: 9 Aug 90 03:33:05 GMT References: <0093AE41.AB3A5320@lne.kth.se> <8394@ccncsu.ColoState.EDU> Sender: iacovou@cs.umn.edu (Danny Iacovou) Reply-To: jdege@donald.UUCP (Jeff Dege) Distribution: all Organization: University of Minnesota, Minneapolis Lines: 28 In article <8394@ccncsu.ColoState.EDU> jn163051@longs.LANCE.ColoState.Edu (Joel Nevison) writes: >In article <0093AE41.AB3A5320@lne.kth.se> lennartb@lne.kth.se (Lennart Boerjeson @ KTH/LNE, The Royal Inst. of Tech.) writes: >>This is Tetris for the HP48. The program is quite big. >> >>Before loading this program, be sure to pack all GROBs on one line. > >Wonderful! I couldn't wait to try this out.....but...I can't >get the big grob packed into one line. My text editor crashes because >the line is too long. My sysadm says I'm out of luck unless I write >some shell script or c code to remove the CR's. Yikes! is c code I had teh same problem. I ended up stripping the leading spaces, deleting the terminal linefeed, and replacing the last character with a control character - i.e. 000F became 000^F. Fortunately, my editor splits lines on most control characters, so the result didn't excede the max linelength. Then I just called up a hex editor and replaced the control characters with the appropriate character (since my hex editor won't insert characters). 0F I replaced with 46. Another approach would be to split the file into pre-grob, grob, and post-grob (since there was only one grob that wouldn't fit on my maxline, this would work. Then strip everything but the linefeeds from the grob file with your editor, then pass it through a line-feed stripper. Building this would be 5 minutes work, max. Finally join everything back together. You don't need a large, special program, just appropriate use of the usual small utilities.