initialize the broadcast manipulation code; SMG makes this easy */
| 394 | /* initialize the broadcast manipulation code; SMG makes this easy |
| 395 | */ |
| 396 | unsigned long |
| 397 | init_broadcast_trapping(void) /* called by setftty() [once only] */ |
| 398 | { |
| 399 | unsigned long sts, preserve_screen_flag = 1; |
| 400 | |
| 401 | /* we need a pasteboard to pass to the broadcast setup/teardown routines */ |
| 402 | sts = smg$create_pasteboard(&pasteboard_id, 0, 0, 0, |
| 403 | &preserve_screen_flag); |
| 404 | if (!vms_ok(sts)) { |
| 405 | errno = EVMSERR, vaxc$errno = sts; |
| 406 | raw_print(""); |
| 407 | perror("?can't create SMG pasteboard for broadcast trapping"); |
| 408 | wait_synch(); |
| 409 | broadcasts = -1; /* flag that trapping is currently broken */ |
| 410 | } |
| 411 | return sts; |
| 412 | } |
| 413 | |
| 414 | /* set up the terminal driver to deliver $brkthru data to a mailbox device |
| 415 | */ |
no test coverage detected