[comp.os.vms] Question/Problem with SMG

HAMPARIAN@BATTELLE.ARPA (Don Hamparian) (01/23/88)

Hello out there. One of our users is having a problem with SMG under
VMS V4.5. Any help/ideas would be appreciated!

A user is using SMG$ runtime library routines to scroll a file on a VT100
terminal screen and bold parts of it.  If she bolds specific FULL lines, all
works perfectly!  But she cannot get this to work if she needs to bold parts of
lines. 

 She has tried to do this two ways without success:

I.

The file contains escape sequences the bold sentences that are in the text
such as <ESC>[1m and <ESC>[0m.


  1.create a pasteboard
  2.create a virtual display
  3.make the display a scrolling display
  4.paste the virtual display
  5.open the file
  6.do SMG$ALLOW_ESCAPE with ESC-FLAG=1 so that the esc sequences will
    be interpreted and bolding will occur.
  7.loop, reading and putting the line to the screen with SMG$PUT_WITH SCROLL

Result:  no bolding occurs.  And the substitution chars for the esc sequence
show on the screen.

II.
The file does not have esc sequences, but the character position within
a line in the file that needs to be bolded is known to the program.

  1.create a pasteboard
  2.create a virtual display
  3.make the display a scrolling display
  4.paste the virtual display
  5.open the file
  7.loop, reading a line and if something needs to be bolded, use
    SMG$PUT_CHARS to put those chars to the screen with bold parameter turned
    on. Reposition the cursor to col 1, next row
  8.if the line does not need to have part bolded, use SMG$PUT_WITH_SCROLL
    to write it to the screen
  
Result:  When the screen is full, scrolling does not occur.  Variations of
repainting last line seem to make scrolling work, but some lines are lost. It
seems as if there is some combination that might work, but I haven't discovered
it yet! 
Any thoughts????

 Don Hamparian
 Battelle Memorial Institute
 Columbus OH USA

 ARPA: HAMPARIAN@BATTELLE.ARPA
 AT&T 614-424-5086