COMPILATION LISTING OF SEGMENT xmail_Review_Processing_ Compiled by: Multics PL/I Compiler, Release 30, of February 16, 1988 Compiled at: Honeywell Bull, Phoenix AZ, SysM Compiled on: 09/02/88 0750.0 mst Fri Options: optimize map 1 /****^ *********************************************************** 2* * * 3* * Copyright, (C) Honeywell Information Systems Inc., 1985 * 4* * * 5* *********************************************************** */ 6 7 8 /****^ HISTORY COMMENTS: 9* 1) change(86-03-05,Blair), approve(86-03-05,MCR7358), 10* audit(86-04-21,RBarstad), install(86-05-28,MR12.0-1062): 11* Written by Joanne Backs from xmail_Review_Defaults_.pl1. 12* 2) change(87-01-16,Blair), approve(87-02-05,MCR7618), 13* audit(87-04-10,RBarstad), install(87-04-26,MR12.1-1025): 14* Add a new option for including interactive messages in the mailbox. 15* END HISTORY COMMENTS */ 16 17 xmail_Review_Processing_: proc; 18 19 /* BEGIN DESCRIPTION 20* 21*function: This procedure provides the xmail user with a menu for the 22* purpose of inspecting and updating default values which control 23* processing aspects during the operation of xmail. 24* 25*END DESCRIPTION 26**/ 27 28 /* AUTOMATIC */ 29 30 dcl choice fixed bin; 31 dcl code fixed bin (35); 32 dcl display_needed bit (1) aligned; 33 34 /* CONSTANTS */ 35 36 dcl NAME init ("xmail_Review_Processing_") char (24) int static options (constant); 37 dcl N_COLUMNS fixed bin int static options (constant) init (2); 38 dcl OPTION_NAMES int static options (constant) init ( 39 "Process Interactive Messages", 40 "Display Lists As Menus", 41 "Remove Menu While Editing", 42 "Always Use Escape Sequences", 43 "Multics Command Mode", 44 "Include Interactive Messages" 45 ) dim (6) char (28) var; 46 dcl TITLE init ("Personalize Processing Options") char (30) 47 int static options (constant); 48 49 /* EXTERNAL STATIC */ 50 51 dcl iox_$user_output ptr ext static; 52 dcl xmail_err_$help_requested ext static fixed bin (35); 53 dcl xmail_err_$exit_now ext static fixed bin (35); 54 55 /* INTERNAL STATIC */ 56 57 dcl menu int static ptr init (null); 58 59 /* ENTRIES */ 60 61 dcl ioa_ entry options (variable); 62 dcl xmail_create_menu_ entry (char (*), (*) char (*) var, fixed bin, ptr, fixed bin (35)); 63 dcl xmail_display_help_ entry (char (*), char (*), fixed bin (35)); 64 dcl xmail_error_$no_code entry () options (variable); 65 dcl xmail_get_choice_ entry (ptr, char (*), char (*), char (*), char (*), bit (1) aligned, char (*), fixed bin, fixed bin (35)); 66 dcl xmail_Review_Defaults_$escape_keys entry (char (*)); 67 dcl xmail_Review_Defaults_$interactive_msgs entry (char (*)); 68 dcl xmail_Review_Defaults_$lists_as_menus entry (char (*)); 69 dcl xmail_Review_Defaults_$msgs_as_mail entry (char (*)); 70 dcl xmail_Review_Defaults_$multics_mode entry (char (*)); 71 dcl xmail_Review_Defaults_$remove_menu entry (char (*)); 72 dcl xmail_window_manager_$reconnect entry options (variable); 73 74 /* CONDITIONS */ 75 76 dcl (program_interrupt, xmail_redisplay_menu, quit) condition; 77 78 /* BUILTINS */ 79 80 dcl (null, translate) builtin; 81 82 /* INCLUDE FILES */ 83 1 1 /* BEGIN INCLUDE FILE menu_dcls.incl.pl1 1 2* declarations for the menu_ subroutines MTB 493 1 3* James R. Davis 26 Jan 81 to 20 Februrary 81 1 4**/ 1 5 1 6 /* format: off */ 1 7 1 8 dcl menu_$create entry ( 1 9 (*) char (*) varying, /* input: choices */ 1 10 (*) char (*) varying, /* input: headers */ 1 11 (*) char (*) varying, /* input: trailers */ 1 12 pointer, /* input: to format info */ 1 13 (*) char (1) unal, /* input: keys to use */ 1 14 pointer, /* input: to area */ 1 15 pointer, /* input: to needs str. */ 1 16 pointer, /* to menu: output */ 1 17 fixed bin (35) /* code */ 1 18 ); 1 19 1 20 dcl menu_$display entry ( 1 21 pointer, /* window */ 1 22 pointer, /* menu */ 1 23 fixed bin (35) /* code */ 1 24 ); 1 25 1 26 dcl menu_$get_choice entry ( 1 27 pointer, /* window */ 1 28 pointer, /* menu */ 1 29 pointer, /* to function key info */ 1 30 bit (1) aligned, /* function key hi: output */ 1 31 fixed bin, /* output: selection number */ 1 32 fixed bin (35) /* output: code */ 1 33 ); 1 34 1 35 dcl menu_$describe entry ( 1 36 pointer, /* menu */ 1 37 pointer, /* needs */ 1 38 fixed bin (35) /* code */ 1 39 ); 1 40 1 41 dcl menu_$destroy entry ( 1 42 pointer, /* menu */ 1 43 fixed bin (35) /* code */ 1 44 ); 1 45 1 46 dcl menu_$store entry ( 1 47 character (*), 1 48 character (*), 1 49 character (*), 1 50 bit (1) aligned, 1 51 pointer, 1 52 fixed bin (35)); 1 53 1 54 dcl menu_$retrieve entry ( 1 55 character (*), 1 56 character (*), 1 57 character (*), 1 58 pointer, 1 59 pointer, 1 60 fixed bin (35)); 1 61 dcl menu_$delete entry ( 1 62 character (*), 1 63 character (*), 1 64 character (*), 1 65 fixed binary (35)); 1 66 1 67 dcl menu_$list entry ( 1 68 character (*), 1 69 character (*), 1 70 character (*), 1 71 pointer, 1 72 fixed bin, 1 73 pointer, 1 74 fixed bin (35)); 1 75 1 76 dcl 1 menu_format aligned based (menu_format_ptr), 1 77 2 version fixed bin, 1 78 2 constraints, 1 79 3 max_width fixed bin, 1 80 3 max_height fixed bin, 1 81 2 n_columns fixed bin, 1 82 2 flags, 1 83 3 center_headers bit (1) unal, 1 84 3 center_trailers bit (1) unal, 1 85 3 pad bit (34) unal, 1 86 2 pad_char char (1); 1 87 1 88 dcl 1 menu_requirements aligned based (menu_requirements_ptr), 1 89 2 version fixed bin, 1 90 2 lines_needed fixed bin, 1 91 2 width_needed fixed bin, 1 92 2 n_options fixed bin; 1 93 1 94 dcl menu_format_ptr pointer; 1 95 dcl menu_requirements_ptr pointer; 1 96 1 97 dcl (menu_format_version_1, menu_requirements_version_1) 1 98 fixed bin internal static init (1) options (constant); 1 99 1 100 dcl MENU_OPTION_KEYS (35) char (1) unal internal static 1 101 options (constant) init 1 102 ("1", "2", "3", "4", "5", "6", "7", "8", "9", 1 103 "A", "B", "C", "D", "E", "F", "G", "H", "I", 1 104 "J", "K", "L", "M", "N", "O", "P", "Q", "R", 1 105 "S", "T", "U", "V", "W", "X", "Y", "Z"); 1 106 1 107 /* END INCLUDE FILE ... menu_dcls.incl.pl1 */ 84 85 2 1 /* BEGIN INCLUDE FILE: xmail_data.incl.pl1 */ 2 2 2 3 2 4 /****^ HISTORY COMMENTS: 2 5* 1) change(85-12-20,Blair), approve(86-03-06,MCR7358), 2 6* audit(86-04-21,RBarstad), install(86-05-28,MR12.0-1062): 2 7* Modified 03/15/85 by Joanne Backs adding confirm_print flag. 2 8* 2) change(85-12-20,LJAdams), approve(86-03-06,MCR7358), 2 9* audit(86-04-21,RBarstad), install(86-05-28,MR12.0-1062): 2 10* Adding switch to indicate request for menu display came from general help. 2 11* This is so general help menu will be displayed in top screen. 2 12* 3) change(86-01-10,Blair), approve(86-03-06,MCR7358), 2 13* audit(86-04-21,RBarstad), install(86-05-28,MR12.0-1062): 2 14* Add switch to indicate whether or not it is permissible to process mail 2 15* in other users' mailboxes (foreign_mailbox). 2 16* 4) change(86-01-13,Blair), approve(86-03-06,MCR7358), 2 17* audit(86-04-21,RBarstad), install(86-05-28,MR12.0-1062): 2 18* Add bit to indicate whether or not this is a true cleanup condition. 2 19* 5) change(86-02-06,Blair), approve(86-03-06,MCR7358), 2 20* audit(86-04-21,RBarstad), install(86-05-28,MR12.0-1062): 2 21* Rearrange to group all the bit flags together in one word with a pad. 2 22* 6) change(86-03-05,Blair), approve(86-03-05,MCR7358), 2 23* audit(86-04-21,RBarstad), install(86-05-28,MR12.0-1062): 2 24* Change value_seg ptr to value_seg_pathname to avoid the situation where 2 25* you keep around a pointer to a structure which no longer exists. 2 26* 7) change(87-01-16,Blair), approve(87-02-05,MCR7618), 2 27* audit(87-04-15,RBarstad), install(87-04-26,MR12.1-1025): 2 28* Add a field to indicate whether or not we should process interactive msgs. 2 29* Increment version to 4.1 so default value will get set. 2 30* 8) change(87-02-13,Blair), approve(87-02-13,MCR7618), 2 31* audit(87-04-15,RBarstad), install(87-04-26,MR12.1-1025): 2 32* Add a field to indicate whether or not we're processing a reply so that we 2 33* will be able to rebuild the screens properly after a disconnect occurs. 2 34* Error_list #114. 2 35* 9) change(88-07-26,Blair), approve(88-07-26,MCR7959), 2 36* audit(88-08-25,RBarstad), install(88-09-02,MR12.2-1098): 2 37* Add a bit to indicate whether or not the error segment had to be created 2 38* in the pdir (because we didn't have sma access to the mlsys_dir). 2 39* END HISTORY COMMENTS */ 2 40 2 41 2 42 /* Written 5/13/81 by Paul H. Kyzivat */ 2 43 /* Modified 12/16/81 by S. Krupp to delete unused parts of structure 2 44* and to add n_fkeys_used */ 2 45 /* Modified 12/14/82 by Dave Schimke to make the xmail version a 10 character 2 46* varying string. */ 2 47 /* Modified 09/12/83 by Dave Schimke adding interactive_msgs flag */ 2 48 /* Modified 09/14/83 by Dave Schimke adding moved_user_io */ 2 49 /* Modified 09/06/84 by Joanne Backs adding lists_as_menus flag */ 2 50 /* Modified 09/21/84 by Joanne Backs adding remove_menus flag */ 2 51 2 52 dcl xmail_data_ptr external static ptr init (null); 2 53 2 54 dcl 1 xmail_data aligned based (xmail_data_ptr), 2 55 2 mail_dir char (168) varying, 2 56 2 first_label label, 2 57 2 quit_label label, 2 58 2 value_seg_pathname char (168) varying, 2 59 2 moved_user_io ptr, 2 60 2 normal_usage char (80) unal, 2 61 2 function_key_info, 2 62 3 function_key_data_ptr ptr, 2 63 3 n_fkeys_used fixed bin, 2 64 2 actee, 2 65 3 person char(32) varying, 2 66 3 project char(32) varying, 2 67 2 flags aligned, 2 68 3 mail_in_incoming bit (1) unal, 2 69 3 lists_as_menus bit (1) unal, /* personalization */ 2 70 3 remove_menus bit (1) unal, /* personalization */ 2 71 3 confirm_print bit (1) unal, /* personalization */ 2 72 3 multics_mode bit (1) unal, /* personalization */ 2 73 3 interactive_msgs bit (1) unal, /* personalization */ 2 74 3 foreign_mailbox bit (1) unal, /* read others' mailboxes */ 2 75 3 general_help bit (1) unal, /* indicated requesting gen help*/ 2 76 3 cleanup_signalled bit (1) unal, /* on when true cleanup condition */ 2 77 3 msgs_as_mail bit (1) unal, /* on for include_msgs */ 2 78 3 reply_request bit (1) unal, /* on if we're doing a reply */ 2 79 3 error_seg_in_pdir bit (1) unal, /* on if the error_seg is in the pdir */ 2 80 3 pad bit (24) unal; 2 81 2 82 2 83 2 84 dcl xmail_version char(10) var static options(constant) init("4.1"); 2 85 2 86 /* END INCLUDE FILE: xmail_data.incl.pl1 */ 86 87 3 1 /* BEGIN INCLUDE FILE xmail_help_infos.incl.pl1 */ 3 2 3 3 /****^ HISTORY COMMENTS: 3 4* 1) change(85-03-06,Backs), approve(86-03-06,MCR7358), 3 5* audit(86-04-21,RBarstad), install(86-05-28,MR12.0-1062): 3 6* Modified to add date info. 3 7* END HISTORY COMMENTS */ 3 8 3 9 /* Created 06/18/81 by Suzanne Krupp */ 3 10 3 11 /* Help files and info entry points. */ 3 12 3 13 dcl (PROMPT_REPLIES_HELP char(28) init("xmail_prompt_replies.gi.info"), 3 14 GENERAL_HELP_HELP char(26) init("xmail_general_help.gi.info"), 3 15 GETTING_STARTED_HELP char(29) init("xmail_getting_started.gi.info"), 3 16 INITIAL_HELP char(26) init("xmail_initial_help.gi.info"), 3 17 MULTICS_MODE_HELP char(27) init("xmail_multics_mode_.gi.info"), 3 18 REVIEW_DEFAULTS_HELP char(29) init("xmail_Review_Defaults.gi.info")) 3 19 int static options(constant); 3 20 3 21 dcl (CREATE_MFILE_INFO char(19) init("creating_mail_files"), /* Prompt Infos */ 3 22 DEL_MSG_SELECT_INFO char(23) init("which_discarded_message"), 3 23 SEARCH_STR_INFO char(14) init("search_string"), 3 24 MSG_SELECT_INFO char(14) init("which_message"), 3 25 USE_SPEC_SET_INFO char(12) init("use_spec_set"), 3 26 GETTING_HELP_INFO char(12) init("getting_help"), 3 27 DATE_INFO char(14) init("date_selection"), 3 28 MORE_HELP_INFO char(9) init("more_help")) 3 29 int static options(constant); 3 30 3 31 /* END INCLUDE FILE ... xmail_help_infos.incl.pl1 */ 88 89 4 1 /* Begin include file: xmail_windows.incl.pl1 */ 4 2 /* Created 6/24/81 by Paul Kyzivat */ 4 3 /* Mofified 6/20/84 by DJ Schimke to add the mm_status window */ 4 4 4 5 dcl 1 xmail_windows aligned external static, 4 6 2 initial_position fixed bin, 4 7 2 min_lines_needed fixed bin, 4 8 2 (status, mm_status, menu, bottom) aligned like xmail_window_info_format; 4 9 4 10 dcl 1 xmail_window_info_format aligned based, 4 11 2 iocb ptr, 4 12 2 position aligned like window_position_info; 4 13 5 1 /* BEGIN INCLUDE FILE ... window_control_info.incl.pl1 JRD */ 5 2 /* format: style3 */ 5 3 5 4 /* Modified 26 January 1982 by William York to add the set_more_handler 5 5* and reset_more_handler control orders. */ 5 6 /* Modified October 1982 by WMY to add set and get_token_characters, 5 7* set and get_more_prompt. */ 5 8 /* Modified February 1983 by WMY to add the line_editor_key_binding_info 5 9* structure. */ 5 10 /* Modified 30 September 1983 by Jon A. Rochlis to add the origin.column for 5 11* partial screen width windows. */ 5 12 /* Modified 9 October 1983 by JR to add version 1 window_edit_line_info. 5 13* This should be removed when window_info.incl.pl1 is created. */ 5 14 /* Modified 29 February 1984 by Barmar to add version 1 5 15* get_editor_key_bindings_info. */ 5 16 /* Modified 1 March 1984 by Barmar to add version 1 5 17* set_editor_key_bindings_info. */ 5 18 /* Modified 2 March 1984 by Barmar to upgrade to version 3 5 19* line_editor_key_bindings_info, which includes the name, description, and 5 20* info path */ 5 21 5 22 /* structure for the set_window_info and get_window_info 5 23* control orders. */ 5 24 5 25 dcl 1 window_position_info 5 26 based (window_position_info_ptr), 5 27 2 version fixed bin, 5 28 2 origin, 5 29 3 column fixed bin, 5 30 3 line fixed bin, 5 31 2 extent, 5 32 3 width fixed bin, 5 33 3 height fixed bin; 5 34 5 35 dcl (window_position_info_version, window_position_info_version_1) 5 36 fixed bin internal static init (1) options (constant); 5 37 dcl window_position_info_ptr 5 38 pointer; 5 39 5 40 /* structure for the set_window_status and get_window_status 5 41* control orders */ 5 42 5 43 declare window_status_info_ptr 5 44 pointer; 5 45 declare 1 window_status_info 5 46 aligned based (window_status_info_ptr), 5 47 2 version fixed bin, 5 48 2 status_string bit (36) aligned; /* string (window_status) */ 5 49 /* see window_status.incl.pl1 for the contents of this string */ 5 50 5 51 5 52 declare (window_status_version, window_status_version_1) 5 53 fixed bin internal static init (1) options (constant); 5 54 5 55 /* info structure for the set_more_responses and get_more_responses control 5 56* orders */ 5 57 5 58 5 59 dcl 1 more_responses_info 5 60 aligned based (more_responses_info_ptr), 5 61 2 version fixed bin, 5 62 2 n_yeses fixed bin, /* how many valid characters in the strings below */ 5 63 2 n_noes fixed bin, 5 64 2 yeses char (32) unaligned, 5 65 2 noes char (32) unaligned; 5 66 5 67 dcl (more_responses_info_version_1, more_responses_version) 5 68 fixed bin internal static init (1) options (constant); 5 69 dcl more_responses_info_ptr 5 70 pointer; 5 71 5 72 /* structure for the set_break_table and get_break_table 5 73* control orders */ 5 74 5 75 declare break_table_ptr pointer; 5 76 declare 1 break_table_info aligned based (break_table_ptr), 5 77 2 version fixed bin, 5 78 2 breaks (0:127) bit (1) unaligned; 5 79 5 80 declare (break_table_info_version, break_table_info_version_1) 5 81 fixed bin init (1) internal static options (constant); 5 82 5 83 declare 1 more_handler_info aligned based (more_handler_info_ptr), 5 84 2 version fixed bin, 5 85 2 flags unaligned, 5 86 3 old_handler_valid 5 87 bit(1), 5 88 3 pad bit(35), 5 89 2 more_handler entry (pointer, bit(1) aligned), 5 90 2 old_more_handler entry (pointer, bit(1) aligned); 5 91 5 92 declare more_handler_info_ptr pointer; 5 93 5 94 declare (more_handler_info_version, more_handler_info_version_3) 5 95 fixed bin internal static options (constant) init (3); 5 96 5 97 declare 1 token_characters_info aligned based (token_characters_info_ptr), 5 98 2 version char(8), 5 99 2 token_character_count 5 100 fixed bin, 5 101 2 token_characters 5 102 char (128) unaligned; 5 103 5 104 declare token_characters_info_ptr pointer; 5 105 5 106 declare token_characters_info_version_1 char(8) internal static options (constant) init ("wtci0001"); 5 107 5 108 declare 1 more_prompt_info aligned based (more_prompt_info_ptr), 5 109 2 version char(8), 5 110 2 more_prompt char(80); 5 111 5 112 declare more_prompt_info_ptr pointer; 5 113 5 114 declare more_prompt_info_version_1 char(8) static options (constant) init ("wsmp0001"); 5 115 5 116 /* Line editor stuff ... */ 5 117 5 118 dcl line_editor_key_binding_info_ptr 5 119 pointer; 5 120 5 121 dcl line_editor_binding_count 5 122 fixed bin; 5 123 dcl line_editor_longest_sequence 5 124 fixed bin; 5 125 /* For each binding, action defines what to do for that sequence. Constants 5 126* are defined in window_editor_values.incl.pl1. Only if action is set to 5 127* EXTERNAL_ROUTINE does the editor_routine entry variable get examined. */ 5 128 5 129 dcl 1 line_editor_key_binding_info 5 130 aligned based (line_editor_key_binding_info_ptr), 5 131 2 version char(8), 5 132 2 binding_count fixed bin, 5 133 2 longest_sequence fixed bin, 5 134 2 bindings (line_editor_binding_count refer 5 135 (line_editor_key_binding_info.binding_count)), 5 136 3 sequence char(line_editor_longest_sequence refer 5 137 (line_editor_key_binding_info.longest_sequence)) varying, 5 138 3 action fixed bin, 5 139 3 numarg_action fixed binary, 5 140 3 editor_routine entry (pointer, fixed bin(35)), 5 141 3 name char (64) varying unaligned, 5 142 3 description char (256) varying unaligned, 5 143 3 info_path unaligned, 5 144 4 info_dir char (168), 5 145 4 info_entry char (32); 5 146 5 147 5 148 dcl line_editor_key_binding_info_version_3 5 149 char(8) static options (constant) init ("lekbi003"); 5 150 5 151 dcl 1 get_editor_key_bindings_info aligned based (get_editor_key_bindings_info_ptr), 5 152 2 version char (8), 5 153 2 flags, 5 154 3 entire_state bit (1) unaligned, 5 155 3 mbz bit (35) unaligned, 5 156 2 key_binding_info_ptr ptr, 5 157 2 entire_state_ptr ptr; 5 158 5 159 dcl get_editor_key_bindings_info_ptr ptr; 5 160 dcl get_editor_key_bindings_info_version_1 char (8) int static options (constant) init ("gekbi_01"); 5 161 5 162 dcl 1 set_editor_key_bindings_info aligned 5 163 based (set_editor_key_bindings_info_ptr), 5 164 2 version char (8), 5 165 2 flags, 5 166 3 replace bit (1) unaligned, 5 167 3 update bit (1) unaligned, 5 168 3 mbz bit (34) unaligned, 5 169 2 key_binding_info_ptr ptr; 5 170 5 171 dcl set_editor_key_bindings_info_ptr ptr; 5 172 dcl set_editor_key_bindings_info_version_1 char (8) int static options (constant) init ("sekbi_01"); 5 173 5 174 /* This should be moved to window_info.incl.pl1 when that include file is 5 175* created. JR 2/1/84 */ 5 176 5 177 dcl 1 window_edit_line_info 5 178 based (window_edit_line_info_ptr), 5 179 2 version char (8), 5 180 2 line_ptr ptr, 5 181 2 line_length fixed bin (21); /* later we will hack initial cursor position, key bindings, etc. */ 5 182 5 183 dcl window_edit_line_info_version_1 5 184 char (8) static options (constant) init ("wedl0001"); 5 185 5 186 dcl window_edit_line_info_ptr 5 187 ptr; 5 188 5 189 /* END INCLUDE FILE window_control_info.incl.pl1 */ 4 14 4 15 4 16 /* End include file: xmail_windows.incl.pl1 */ 90 91 6 1 /* begin include fine window_dcls.incl.pl1 BIM June 1981 */ 6 2 /* Modified 9 October 1983 by Jon A. Rochlis to add window_$edit_line. */ 6 3 6 4 /* format: style3 */ 6 5 6 6 declare window_$bell entry (pointer, fixed binary (35)); 6 7 declare window_$clear_region 6 8 entry (pointer, fixed binary, fixed binary, fixed binary, fixed binary, fixed binary (35)); 6 9 declare window_$clear_to_end_of_line 6 10 entry (pointer, fixed binary (35)); 6 11 declare window_$clear_to_end_of_window 6 12 entry (pointer, fixed binary (35)); 6 13 declare window_$clear_window 6 14 entry (pointer, fixed binary (35)); 6 15 declare window_$delete_chars 6 16 entry (pointer, fixed binary, fixed binary (35)); 6 17 declare window_$get_cursor_position 6 18 entry (pointer, fixed binary, fixed binary, fixed binary (35)); 6 19 6 20 /* Call window_$get_echoed_chars (iocb_ptr, n_to_read, read_buffer, n_read, read_break, code); */ 6 21 6 22 declare window_$get_echoed_chars 6 23 entry (pointer, fixed binary (21), character (*), fixed binary (21), character (1) var, 6 24 fixed binary (35)); 6 25 declare window_$get_unechoed_chars 6 26 entry (pointer, fixed binary (21), character (*), fixed binary (21), character (1) var, 6 27 fixed binary (35)); 6 28 declare window_$insert_text entry (pointer, character (*), fixed binary (35)); 6 29 declare window_$overwrite_text 6 30 entry (pointer, character (*), fixed binary (35)); 6 31 declare window_$position_cursor 6 32 entry (pointer, fixed binary, fixed binary, fixed binary (35)); 6 33 6 34 /* Call window_$position_cursor_rel (iocb_ptr, delta_line, delta_column, code); */ 6 35 6 36 declare window_$position_cursor_rel 6 37 entry (pointer, fixed binary, fixed binary, fixed binary (35)); 6 38 6 39 /* Call window_$scroll_region (iocb_ptr, first_line_of_region, n_lines_of_region, distance_to_scroll_region_negative_is_up, 6 40* code); */ 6 41 6 42 declare window_$scroll_region 6 43 entry (pointer, fixed binary, fixed binary, fixed binary, fixed binary (35)); 6 44 declare window_$sync entry (pointer, fixed binary (35)); 6 45 6 46 /* Call window_$write_raw_text (iocb_ptr, text_string, code); */ 6 47 6 48 declare window_$write_raw_text 6 49 entry (pointer, character (*), fixed binary (35)); 6 50 6 51 /* Call window_$write_sync_read (iocb_ptr, prompt_string, n_to_read, read_buffer, n_read, break_char, code); */ 6 52 6 53 declare window_$write_sync_read 6 54 entry (pointer, character (*), fixed bin (21), character (*), fixed binary (21), 6 55 character (1) var, fixed binary (35)); 6 56 6 57 /* Call window_$change_line (iocb_ptr, new_line, code); */ 6 58 6 59 declare window_$change_line entry (pointer, fixed binary, fixed binary (35)); 6 60 6 61 /* Call window_$change_column (iocb_ptr, new_column, code); */ 6 62 6 63 declare window_$change_column 6 64 entry (pointer, fixed binary, fixed binary (35)); 6 65 6 66 /* Call window_$get_one_unechoed (iocb_ptr, char_or_len_0, block_flag, code); */ 6 67 declare ( 6 68 window_$get_one_unechoed, 6 69 window_$get_one_unechoed_char 6 70 ) entry (pointer, character (1) var, bit (1) aligned, fixed binary (35)); 6 71 6 72 declare window_$create entry (pointer, pointer, pointer, fixed binary (35)); 6 73 6 74 declare window_$destroy entry (pointer, fixed binary (35)); 6 75 6 76 declare window_$edit_line entry (pointer, pointer, pointer, fixed bin(21), fixed bin(21), fixed bin(35)); 6 77 6 78 /* call window_$edit_line (iocb_ptr, window_edit_line_info_ptr, buffer_ptr, 6 79* buffer_len, n_returned, code); */ 6 80 6 81 6 82 /* end include file window_dcls.incl.pl1 */ 92 93 94 /* BEGIN */ 95 on condition (xmail_redisplay_menu) begin; 96 if menu ^= null 97 then call menu_$display (xmail_windows.menu.iocb, menu, (0)); 98 end; 99 100 if menu = null then do; 101 call xmail_create_menu_ (TITLE, OPTION_NAMES, N_COLUMNS, menu, code); 102 if code ^= 0 then call xmail_error_$no_code (status, NAME, "q", 103 "A programming error has been detected which prevents " || 104 "the use of the ^a menu.", TITLE); 105 106 end; 107 108 on condition (program_interrupt) go to START; 109 on condition (quit) begin; 110 call xmail_window_manager_$reconnect (); 111 go to START; 112 end; 113 114 call window_$clear_window (iox_$user_output, (0)); 115 call ioa_ (" "); 116 117 START: display_needed = "1"b; 118 do while ("1"b); 119 call xmail_get_choice_ (menu, "", "", "", xmail_data.normal_usage, 120 display_needed, "", choice, code); 121 display_needed = "0"b; 122 if code = 0 then call PERFORM_OPTION (choice, display_needed); 123 else if code = xmail_err_$help_requested then call EXPLAIN_OPTION (choice); 124 else if code = xmail_err_$exit_now then go to EXIT; 125 else call window_$bell (iox_$user_output, (0)); 126 end; 127 EXIT: return; 128 129 /* INTERNAL PROCEDURES */ 130 131 PERFORM_OPTION: proc (opt, redisplay); 132 133 /* PARAMETERS */ 134 135 dcl redisplay bit (1) aligned parameter; 136 dcl opt fixed bin parameter; 137 138 /* AUTOMATIC */ 139 140 dcl name char (28) varying; 141 142 /* BEGIN PERFORM_OPTION */ 143 144 call window_$clear_window (iox_$user_output, (0)); 145 name = OPTION_NAMES (opt); /* include name of option*/ 146 go to OPT (opt); 147 148 OPT (1): redisplay = "0"b; 149 call xmail_Review_Defaults_$interactive_msgs ((name)); 150 go to OPT_EXIT; 151 152 OPT (2): redisplay = "0"b; 153 call xmail_Review_Defaults_$lists_as_menus ((name)); 154 go to OPT_EXIT; 155 156 OPT (3): redisplay = "0"b; 157 call xmail_Review_Defaults_$remove_menu ((name)); 158 go to OPT_EXIT; 159 160 OPT (4): redisplay = "0"b; 161 call xmail_Review_Defaults_$escape_keys ((name)); 162 go to OPT_EXIT; 163 164 OPT (5): redisplay = "0"b; 165 call xmail_Review_Defaults_$multics_mode ((name)); 166 go to OPT_EXIT; 167 168 OPT (6): redisplay = "0"b; 169 call xmail_Review_Defaults_$msgs_as_mail ((name)); 170 go to OPT_EXIT; 171 172 OPT_EXIT: return; 173 end PERFORM_OPTION; 174 175 EXPLAIN_OPTION: proc (opt); 176 177 dcl opt fixed bin parameter; 178 179 call window_$clear_window (iox_$user_output, (0)); 180 call xmail_display_help_ (REVIEW_DEFAULTS_HELP, 181 translate (OPTION_NAMES (opt), "_", " "), 182 (0)); 183 184 end EXPLAIN_OPTION; 185 186 end xmail_Review_Processing_; SOURCE FILES USED IN THIS COMPILATION. LINE NUMBER DATE MODIFIED NAME PATHNAME 0 09/02/88 0746.6 xmail_Review_Processing_.pl1 >spec>install>MR12.2-1098>xmail_Review_Processing_.pl1 84 1 03/27/82 0429.3 menu_dcls.incl.pl1 >ldd>include>menu_dcls.incl.pl1 86 2 09/02/88 0743.4 xmail_data.incl.pl1 >spec>install>MR12.2-1098>xmail_data.incl.pl1 88 3 05/28/86 1117.7 xmail_help_infos.incl.pl1 >ldd>include>xmail_help_infos.incl.pl1 90 4 12/02/84 1132.9 xmail_windows.incl.pl1 >ldd>include>xmail_windows.incl.pl1 4-14 5 09/12/84 0916.7 window_control_info.incl.pl1 >ldd>include>window_control_info.incl.pl1 92 6 09/12/84 0916.7 window_dcls.incl.pl1 >ldd>include>window_dcls.incl.pl1 NAMES DECLARED IN THIS COMPILATION. IDENTIFIER OFFSET LOC STORAGE CLASS DATA TYPE ATTRIBUTES AND REFERENCES (* indicates a set context) NAMES DECLARED BY DECLARE STATEMENT. NAME 000106 constant char(24) initial packed unaligned dcl 36 set ref 102* N_COLUMNS 000115 constant fixed bin(17,0) initial dcl 37 set ref 101* OPTION_NAMES 000026 constant varying char(28) initial array dcl 38 set ref 101* 145 180 180 REVIEW_DEFAULTS_HELP 000006 constant char(29) initial packed unaligned dcl 3-13 set ref 180* TITLE 000016 constant char(30) initial packed unaligned dcl 46 set ref 101* 102* choice 000100 automatic fixed bin(17,0) dcl 30 set ref 119* 122* 123* code 000101 automatic fixed bin(35,0) dcl 31 set ref 101* 102 119* 122 123 124 display_needed 000102 automatic bit(1) dcl 32 set ref 117* 119* 121* 122* ioa_ 000020 constant entry external dcl 61 ref 115 iocb 22 000054 external static pointer level 3 dcl 4-5 set ref 96* iox_$user_output 000012 external static pointer dcl 51 set ref 114* 125* 144* 179* menu 000010 internal static pointer initial dcl 57 in procedure "xmail_Review_Processing_" set ref 96 96* 100 101* 119* menu 22 000054 external static structure level 2 in structure "xmail_windows" dcl 4-5 in procedure "xmail_Review_Processing_" menu_$display 000050 constant entry external dcl 1-20 ref 96 name 000134 automatic varying char(28) dcl 140 set ref 145* 149 153 157 161 165 169 normal_usage 142 based char(80) level 2 packed packed unaligned dcl 2-54 set ref 119* null builtin function dcl 80 ref 96 100 opt parameter fixed bin(17,0) dcl 177 in procedure "EXPLAIN_OPTION" ref 175 180 180 opt parameter fixed bin(17,0) dcl 136 in procedure "PERFORM_OPTION" ref 131 145 146 program_interrupt 000104 stack reference condition dcl 76 ref 108 quit 000120 stack reference condition dcl 76 ref 109 redisplay parameter bit(1) dcl 135 set ref 131 148* 152* 156* 160* 164* 168* status 2 000054 external static structure level 2 dcl 4-5 set ref 102* translate builtin function dcl 80 ref 180 180 window_$bell 000056 constant entry external dcl 6-6 ref 125 window_$clear_window 000060 constant entry external dcl 6-13 ref 114 144 179 window_position_info based structure level 1 unaligned dcl 5-25 xmail_Review_Defaults_$escape_keys 000032 constant entry external dcl 66 ref 161 xmail_Review_Defaults_$interactive_msgs 000034 constant entry external dcl 67 ref 149 xmail_Review_Defaults_$lists_as_menus 000036 constant entry external dcl 68 ref 153 xmail_Review_Defaults_$msgs_as_mail 000040 constant entry external dcl 69 ref 169 xmail_Review_Defaults_$multics_mode 000042 constant entry external dcl 70 ref 165 xmail_Review_Defaults_$remove_menu 000044 constant entry external dcl 71 ref 157 xmail_create_menu_ 000022 constant entry external dcl 62 ref 101 xmail_data based structure level 1 dcl 2-54 xmail_data_ptr 000052 external static pointer initial dcl 2-52 ref 119 xmail_display_help_ 000024 constant entry external dcl 63 ref 180 xmail_err_$exit_now 000016 external static fixed bin(35,0) dcl 53 ref 124 xmail_err_$help_requested 000014 external static fixed bin(35,0) dcl 52 ref 123 xmail_error_$no_code 000026 constant entry external dcl 64 ref 102 xmail_get_choice_ 000030 constant entry external dcl 65 ref 119 xmail_redisplay_menu 000112 stack reference condition dcl 76 ref 95 xmail_window_info_format based structure level 1 dcl 4-10 xmail_window_manager_$reconnect 000046 constant entry external dcl 72 ref 110 xmail_windows 000054 external static structure level 1 dcl 4-5 NAMES DECLARED BY DECLARE STATEMENT AND NEVER REFERENCED. CREATE_MFILE_INFO internal static char(19) initial packed unaligned dcl 3-21 DATE_INFO internal static char(14) initial packed unaligned dcl 3-21 DEL_MSG_SELECT_INFO internal static char(23) initial packed unaligned dcl 3-21 GENERAL_HELP_HELP internal static char(26) initial packed unaligned dcl 3-13 GETTING_HELP_INFO internal static char(12) initial packed unaligned dcl 3-21 GETTING_STARTED_HELP internal static char(29) initial packed unaligned dcl 3-13 INITIAL_HELP internal static char(26) initial packed unaligned dcl 3-13 MENU_OPTION_KEYS internal static char(1) initial array packed unaligned dcl 1-100 MORE_HELP_INFO internal static char(9) initial packed unaligned dcl 3-21 MSG_SELECT_INFO internal static char(14) initial packed unaligned dcl 3-21 MULTICS_MODE_HELP internal static char(27) initial packed unaligned dcl 3-13 PROMPT_REPLIES_HELP internal static char(28) initial packed unaligned dcl 3-13 SEARCH_STR_INFO internal static char(14) initial packed unaligned dcl 3-21 USE_SPEC_SET_INFO internal static char(12) initial packed unaligned dcl 3-21 break_table_info based structure level 1 dcl 5-76 break_table_info_version internal static fixed bin(17,0) initial dcl 5-80 break_table_info_version_1 internal static fixed bin(17,0) initial dcl 5-80 break_table_ptr automatic pointer dcl 5-75 get_editor_key_bindings_info based structure level 1 dcl 5-151 get_editor_key_bindings_info_ptr automatic pointer dcl 5-159 get_editor_key_bindings_info_version_1 internal static char(8) initial packed unaligned dcl 5-160 line_editor_binding_count automatic fixed bin(17,0) dcl 5-121 line_editor_key_binding_info based structure level 1 dcl 5-129 line_editor_key_binding_info_ptr automatic pointer dcl 5-118 line_editor_key_binding_info_version_3 internal static char(8) initial packed unaligned dcl 5-148 line_editor_longest_sequence automatic fixed bin(17,0) dcl 5-123 menu_$create 000000 constant entry external dcl 1-8 menu_$delete 000000 constant entry external dcl 1-61 menu_$describe 000000 constant entry external dcl 1-35 menu_$destroy 000000 constant entry external dcl 1-41 menu_$get_choice 000000 constant entry external dcl 1-26 menu_$list 000000 constant entry external dcl 1-67 menu_$retrieve 000000 constant entry external dcl 1-54 menu_$store 000000 constant entry external dcl 1-46 menu_format based structure level 1 dcl 1-76 menu_format_ptr automatic pointer dcl 1-94 menu_format_version_1 internal static fixed bin(17,0) initial dcl 1-97 menu_requirements based structure level 1 dcl 1-88 menu_requirements_ptr automatic pointer dcl 1-95 menu_requirements_version_1 internal static fixed bin(17,0) initial dcl 1-97 more_handler_info based structure level 1 dcl 5-83 more_handler_info_ptr automatic pointer dcl 5-92 more_handler_info_version internal static fixed bin(17,0) initial dcl 5-94 more_handler_info_version_3 internal static fixed bin(17,0) initial dcl 5-94 more_prompt_info based structure level 1 dcl 5-108 more_prompt_info_ptr automatic pointer dcl 5-112 more_prompt_info_version_1 internal static char(8) initial packed unaligned dcl 5-114 more_responses_info based structure level 1 dcl 5-59 more_responses_info_ptr automatic pointer dcl 5-69 more_responses_info_version_1 internal static fixed bin(17,0) initial dcl 5-67 more_responses_version internal static fixed bin(17,0) initial dcl 5-67 set_editor_key_bindings_info based structure level 1 dcl 5-162 set_editor_key_bindings_info_ptr automatic pointer dcl 5-171 set_editor_key_bindings_info_version_1 internal static char(8) initial packed unaligned dcl 5-172 token_characters_info based structure level 1 dcl 5-97 token_characters_info_ptr automatic pointer dcl 5-104 token_characters_info_version_1 internal static char(8) initial packed unaligned dcl 5-106 window_$change_column 000000 constant entry external dcl 6-63 window_$change_line 000000 constant entry external dcl 6-59 window_$clear_region 000000 constant entry external dcl 6-7 window_$clear_to_end_of_line 000000 constant entry external dcl 6-9 window_$clear_to_end_of_window 000000 constant entry external dcl 6-11 window_$create 000000 constant entry external dcl 6-72 window_$delete_chars 000000 constant entry external dcl 6-15 window_$destroy 000000 constant entry external dcl 6-74 window_$edit_line 000000 constant entry external dcl 6-76 window_$get_cursor_position 000000 constant entry external dcl 6-17 window_$get_echoed_chars 000000 constant entry external dcl 6-22 window_$get_one_unechoed 000000 constant entry external dcl 6-67 window_$get_one_unechoed_char 000000 constant entry external dcl 6-67 window_$get_unechoed_chars 000000 constant entry external dcl 6-25 window_$insert_text 000000 constant entry external dcl 6-28 window_$overwrite_text 000000 constant entry external dcl 6-29 window_$position_cursor 000000 constant entry external dcl 6-31 window_$position_cursor_rel 000000 constant entry external dcl 6-36 window_$scroll_region 000000 constant entry external dcl 6-42 window_$sync 000000 constant entry external dcl 6-44 window_$write_raw_text 000000 constant entry external dcl 6-48 window_$write_sync_read 000000 constant entry external dcl 6-53 window_edit_line_info based structure level 1 unaligned dcl 5-177 window_edit_line_info_ptr automatic pointer dcl 5-186 window_edit_line_info_version_1 internal static char(8) initial packed unaligned dcl 5-183 window_position_info_ptr automatic pointer dcl 5-37 window_position_info_version internal static fixed bin(17,0) initial dcl 5-35 window_position_info_version_1 internal static fixed bin(17,0) initial dcl 5-35 window_status_info based structure level 1 dcl 5-45 window_status_info_ptr automatic pointer dcl 5-43 window_status_version internal static fixed bin(17,0) initial dcl 5-52 window_status_version_1 internal static fixed bin(17,0) initial dcl 5-52 xmail_version internal static varying char(10) initial dcl 2-84 NAMES DECLARED BY EXPLICIT CONTEXT. EXIT 000542 constant label dcl 127 ref 124 EXPLAIN_OPTION 000764 constant entry internal dcl 175 ref 123 OPT 000000 constant label array(6) dcl 148 ref 146 OPT_EXIT 000763 constant label dcl 172 ref 150 154 158 162 166 170 PERFORM_OPTION 000543 constant entry internal dcl 131 ref 122 START 000437 constant label dcl 117 ref 108 111 xmail_Review_Processing_ 000210 constant entry external dcl 17 THERE WERE NO NAMES DECLARED BY CONTEXT OR IMPLICATION. STORAGE REQUIREMENTS FOR THIS PROGRAM. Object Text Link Symbol Defs Static Start 0 0 1576 1660 1254 1606 Length 2226 1254 62 332 321 2 BLOCK NAME STACK SIZE TYPE WHY NONQUICK/WHO SHARES STACK FRAME xmail_Review_Processing_ 226 external procedure is an external procedure. on unit on line 95 74 on unit on unit on line 108 64 on unit on unit on line 109 64 on unit PERFORM_OPTION internal procedure shares stack frame of external procedure xmail_Review_Processing_. EXPLAIN_OPTION internal procedure shares stack frame of external procedure xmail_Review_Processing_. STORAGE FOR INTERNAL STATIC VARIABLES. LOC IDENTIFIER BLOCK NAME 000010 menu xmail_Review_Processing_ STORAGE FOR AUTOMATIC VARIABLES. STACK FRAME LOC IDENTIFIER BLOCK NAME xmail_Review_Processing_ 000100 choice xmail_Review_Processing_ 000101 code xmail_Review_Processing_ 000102 display_needed xmail_Review_Processing_ 000134 name PERFORM_OPTION THE FOLLOWING EXTERNAL OPERATORS ARE USED BY THIS PROGRAM. alloc_char_temp call_ext_out_desc call_ext_out return_mac tra_ext_1 enable_op shorten_stack ext_entry int_entry THE FOLLOWING EXTERNAL ENTRIES ARE CALLED BY THIS PROGRAM. ioa_ menu_$display window_$bell window_$clear_window xmail_Review_Defaults_$escape_keys xmail_Review_Defaults_$interactive_msgs xmail_Review_Defaults_$lists_as_menus xmail_Review_Defaults_$msgs_as_mail xmail_Review_Defaults_$multics_mode xmail_Review_Defaults_$remove_menu xmail_create_menu_ xmail_display_help_ xmail_error_$no_code xmail_get_choice_ xmail_window_manager_$reconnect THE FOLLOWING EXTERNAL VARIABLES ARE USED BY THIS PROGRAM. iox_$user_output xmail_data_ptr xmail_err_$exit_now xmail_err_$help_requested xmail_windows LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC LINE LOC 17 000207 95 000215 96 000231 98 000251 100 000252 101 000257 102 000307 108 000350 109 000367 110 000403 111 000407 114 000412 115 000424 117 000437 118 000441 119 000442 121 000512 122 000513 123 000520 124 000526 125 000530 126 000541 127 000542 131 000543 144 000545 145 000557 146 000571 148 000573 149 000574 150 000615 152 000617 153 000620 154 000641 156 000643 157 000644 158 000665 160 000667 161 000670 162 000711 164 000713 165 000714 166 000735 168 000737 169 000740 170 000761 172 000763 175 000764 179 000766 180 001000 184 001040 ----------------------------------------------------------- Historical Background This edition of the Multics software materials and documentation is provided and donated to Massachusetts Institute of Technology by Group BULL including BULL HN Information Systems Inc. as a contribution to computer science knowledge. This donation is made also to give evidence of the common contributions of Massachusetts Institute of Technology, Bell Laboratories, General Electric, Honeywell Information Systems Inc., Honeywell BULL Inc., Groupe BULL and BULL HN Information Systems Inc. to the development of this operating system. Multics development was initiated by Massachusetts Institute of Technology Project MAC (1963-1970), renamed the MIT Laboratory for Computer Science and Artificial Intelligence in the mid 1970s, under the leadership of Professor Fernando Jose Corbato. Users consider that Multics provided the best software architecture for managing computer hardware properly and for executing programs. Many subsequent operating systems incorporated Multics principles. Multics was distributed in 1975 to 2000 by Group Bull in Europe , and in the U.S. by Bull HN Information Systems Inc., as successor in interest by change in name only to Honeywell Bull Inc. and Honeywell Information Systems Inc. . ----------------------------------------------------------- Permission to use, copy, modify, and distribute these programs and their documentation for any purpose and without fee is hereby granted,provided that the below copyright notice and historical background appear in all copies and that both the copyright notice and historical background and this permission notice appear in supporting documentation, and that the names of MIT, HIS, BULL or BULL HN not be used in advertising or publicity pertaining to distribution of the programs without specific prior written permission. Copyright 1972 by Massachusetts Institute of Technology and Honeywell Information Systems Inc. Copyright 2006 by BULL HN Information Systems Inc. Copyright 2006 by Bull SAS All Rights Reserved