ecn-ec:malcolm@pur-ee.UUCP (08/01/83)
#N:ecn-ec:13000018:000:1877 ecn-ec!malcolm Jul 31 17:49:00 1983 I recently modified notes to redraw the screen, rotated by 13. The rotation by 13 seems to be a fairly standard means of hiding the off-color notes that get submitted to net.jokes. Letting notes redraw the screen makes it a lot easier to see the note, but you have to specifically ask for it so people that don't want to see them can ignore them. :-) As a safeguard to protect the sanity of people that read :-> notes, the new notes program calls the user's parents using :-) the information in the /usr/lib/uucp/L-parents file and verifies :-> that the user is over 21 and should be allowed to read rotated :-) notes. To keep the phone bill down, a record of notes readers :-) that are allowed to read rotated notes is kept in the file :-> ~notes/.utilities/Over_21_and_not_a_Prude!!!!! The 'R' command was added to the main command loop to signify that the text should be rotated by 13. The flag stays in effect for the entire note. The flag is really a flip flop, so if you type 'R' once you get a rotated version of the note, type it twice and you are back to normal. Changes were required to four files. The real meat of the changes goes in dsply.c which actually prints out the text of the note. I added an extra flag to dspnote() and dspresp() that tells them to rotate only the text. A lot of changes were also required in readem.c to set the flag "Rotate" and to reset it when going to a new note or response. Two small changes were also required in control.c (add a flag to the dspnote() call) and to parms.h (add the ROTATE define.) Since I don't like blindly applying diff's I'm sending the new versions of the files parms.h control.c dsply.c readem.c as responses to this note. Except for parms.h which contains local information, you should be able to drop in the new .c files and recompile. Happy reading. Malcolm pur-ee!malcolm