star@fluke.UUCP (David Whitlock) (11/18/85)
Subject: Just a few Questions TO: bobp@amiga.UUCP I just received my developers package last week and the manuals cleared up alot of questions that I had earlier. The sample program "Simple Window and Screen" was sweet and I mastered that technique within an hour. I know that time for examples is at a premium for the remainder of the manual, but the start-up time required for each and every developer to master the basics of Intuition adds weeks to the time it takes to get good software out. I have been reading net.micro.amiga since day one and appreciate your comments I would like for you to post some other simple routines, which expand upon "Simple Window and Screen" to include construct of gadgets and all of the other etcs. like menus, pulldowns. I am not saying that you do the work for the developers, but others who are in love with the Amiga, will spend the wee hours in study. The examples just speed up the learning curve (why re-invent the wheel). Anywho... I have a few simple questions. 1. When listing out to my printer, a Panasonic KX-P1093, I can't get a full line of code. An Example is the "MAKE" file on the Lattice C disk. When using 'ED', any code that expands beyond the screen width is truncated to the next line. This is exactly what appears on my printer. Any clues? I've tried just about everything. 2. How would you get a 'DIR opt a' listing to "prt:". If I say "DIR > prt:" no sweat... but "DIR opt a > prt:" returns an error. 3. Is there any way to have 80 colums appear on the screen using 'ED'. I probably know the answer... but I am so use to a 80 terminal, that 60+ colums is difficult to swallow. Also, I noted that 'SCREENS' will not allow 80 colums either, one solution would be to use a different font and higher resolution, but I haven't mastered that technique yet. Best Regards, David Whitlock
crum@utah-cs.UUCP (Gary L. Crum) (11/19/85)
> 2. How would you get a 'DIR opt a' listing to "prt:". If I say > "DIR > prt:" no sweat... but "DIR opt a > prt:" returns an error. In section 2.1 of the AmigaDOS User's Manual, the syntax of commands with I/O redirection is presented. It is: <command>[>]|[<][<arg>*] This means that the ">prt:" in your example must come before the "opt a". Try "dir >prt: opt a". [Gary C]
bruceb@amiga.UUCP (Bruce Barrett) (11/21/85)
In article <2908@vax4.fluke.UUCP> star@fluke.UUCP (David Whitlock) writes: >Subject: Just a few Questions >TO: bobp@amiga.UUCP > >Anywho... I have a few simple questions. > > >1. When listing out to my printer, a Panasonic KX-P1093, I can't get a > full line of code. An Example is the "MAKE" file on the Lattice C > disk. When using 'ED', any code that expands beyond the screen width > is truncated to the next line. This is exactly what appears on my > printer. Any clues? I've tried just about everything. Have you tried setting preferences margins (L & R) to 1 and 80, or if your printer will handle it 1 and 132, .. Then SAVE and REBOOT (V1.0 has a bug such that it doen not allways pick up printer changes without a save and boot. Fixed for V1.1 > >2. How would you get a 'DIR opt a' listing to "prt:". If I say > "DIR > prt:" no sweat... but "DIR opt a > prt:" returns an error. This is not intended as a flame, but as a warning to others... YOU MUST READ YOUR AmigaDOS Manual CAREFULLY!!! Page 3 of chapter 2 talks about the "<" and ">" commands (sic). The definition of these is given as: COMMAND [> ToFile] [< FromFile] [arg1 arg2 ...] It means what it says... do not try to out think it by using Unix syntax. The ">" and "<" options MUST be specified between the command and its arguments. Therefore the answer to your question is: DIR > PRT: OPT A (Simple, once someone has told you.) >3. Is there any way to have 80 colums appear on the screen using 'ED'. > I probably know the answer... but I am so use to a 80 terminal, that > 60+ colums is difficult to swallow. Also, I noted that 'SCREENS' will > not allow 80 colums either, one solution would be to use a different > font and higher resolution, but I haven't mastered that technique yet. Again I would suggest you use preferences to see if it will fix this problem. Select the 80 column gadget about two-thirds of the way down the left hand side of the screen. Looks like: Text [60] [80] Select 80, again SAVE and boot ED will now display 77 characters per line. You may also want to set the right hand margin to 80 (90?, 120??) by typing: <Esc>SR 80 <RETURN> every time you enter ED. This will eliminate the "auto word wrap" at about column 75. ED will NOT display the entier line if it is wider than the window.... so ... any thing that shows up in the second line IS the second line. I usually do not bother settiny the right hand margin. ED only wraps as you type over the right margin for the first time (per line) so I've gotten used to typing: <up-arrow><CTRL-]><space><Esc><J><RETURN> This re connects the line and makes it the way I wanted in the first place. Best of luck in your explorations.... Bruce Barrett
star@fluke.UUCP (David Whitlock) (11/22/85)
Thanks for all your answers, You were right, the only thing that I did not do after saving preferences, was to reboot from 1.0, other than that, I did try resetting everything with out success. I hate BUGS... Redirection was an oversite. When you are used to UNIX syntax, all others seem to be a variation on a forgotten theme... Can someone from Commodore, post a listing of the Fixes that 1.1 will correct. Best Regards, Dave Whitlock