home *** CD-ROM | disk | FTP | other *** search
- $MACRO_FILE STATSET;
- {*****************************MULTI-EDIT MACRO FILE****************************
-
- Name: STATSET
-
- STATSET - Provides an alternate screen setup.
- STATMAC - Writes the template for the status line to the screen.
-
- (C) Copyright 1989 by American Cybernetics, Inc.
- ******************************************************************************}
-
- $MACRO STATSET;
- {*******************************MULTI-EDIT MACRO******************************
-
- Name: STATSET
-
- Description: This is an alternate screen setup. Set this up in the
- Install-Screen setup menu.
-
- Parameters: /S=1 will put the status line on the bottom of the screen.
- /S=0 will put the status line on the top of the screen.
-
- (C) Copyright 1989 by American Cybernetics, Inc.
- ******************************************************************************}
-
- def_int(jx);
-
- refresh := false;
- status_str := '';
- mode_col := 0;
- insert_col := 0;
- mem_col := 0;
- caps_col := 0;
- record_col := 0;
- time_col := 0;
- line_col := 58;
- col_col := 65;
- if parse_int('/S=',mparm_str) then
- status_row := screen_length;
- else
- status_row := 1;
- end;
- message_row := status_row;
- if menu_bar_row <> 0 THEN
- menu_bar_row := status_row + 1;
- END;
- min_window_row := 1 - (status_row = screen_length) + (menu_bar_row <> 0);
- status_macro('STATMAC');
- message_col := 1;
- message_length := 55;
- working_col := 69;
- END_MACRO;
-
- $MACRO STATMAC NOSWAP;
- {*******************************MULTI-EDIT MACRO******************************
-
- Name: STATMAC
-
- Description: Writes the template for the status line to the screen.
-
- (C) Copyright 1989 by American Cybernetics, Inc.
- ******************************************************************************}
- set_virtual_display;
- IF mode = 0 THEN
- IF global_int('MENU_LEVEL') <> 0 then
- write( 'MENU/PROMPT ', 69, status_row, 0, stat2_color );
- elsif (cur_window > 0) then
- write('L C ', 57, status_row, 0, stat1_color);
- write(str(c_line), 58, status_row, 0, stat2_color);
- write(str(c_col), 65, status_row, 0, stat2_color);
- write( truncate_path(file_name), 69, status_row, 0, stat2_color );
- END;
- ELSIF mode = DOS_SHELL THEN
- write('L C ', 57, status_row, 0, stat1_color);
- write( ' DOS SHELL ', 69, status_row, 0, stat2_color );
- end;
- update_virtual_display;
- reset_virtual_display;
- end_macro;