lotto@lhasa.UUCP (10/27/86)
I have run out of ideas trying to implement an SMG$ TERMTABLE entry for Ann Arbor Ambassador terminals without the DEC option. The snag is over one string, the set scrolling region stuff. DEC uses top line, bottom line as the arguments, where Ann Arbor uses top margin, bottom margin. Simple, no? Well, there are two ways to do string substitution. One takes numeric arguments to SMG$GET_TERM_DATA and spits out the decimal ASCII string (!UL). This is what I need, but I have to do a calculation. So DEC provides the (%n) form for the nth argument to SMG$GET_TERM_DATA. I end up with: ESC60;(%1-1);(60-%2);60p But the % form does not do the ASCII conversion. The Ann Arbor terminal insists on ASCII arguments. I can bias the things by 30, but that only works for single digit arguments. Attempting to do the 2 digit case by hand has failed so far, since there are no priority operators (expressions get evaluated left to right). Has anyone solved this problem short of rewriting SMG$GET_TERM_DATA? Thanks for any help you can provide. ____________ Gerald Lotto - Harvard Chemistry Dept. UUCP: {seismo,harpo,ihnp4,linus,allegra,ut-sally}!harvard!endor!lhasa!lotto ARPA: lotto@harvard.harvard.edu or lotto@harvard.ARPA CSNET: lotto%harvard@csnet-relay