Trailing-Edge
-
PDP-10 Archives
-
bb-r775e-bm_tops20_ks_upd_5
-
sources/edt/mcup.bli
There are 10 other files named mcup.bli in the archive. Click here to see a list.
%TITLE 'MCUP - move cursor up'
MODULE MCUP ( ! Move cursor up
IDENT = '3-001' ! File: MCUP.BLI Edit: GB3001
) =
BEGIN
!
! COPYRIGHT (c) 1981, 1985 BY
! DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.
! ALL RIGHTS RESERVED.
!
! THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND COPIED
! ONLY IN ACCORDANCE WITH THE TERMS OF SUCH LICENSE AND WITH THE
! INCLUSION OF THE ABOVE COPYRIGHT NOTICE. THIS SOFTWARE OR ANY OTHER
! COPIES THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY
! OTHER PERSON. NO TITLE TO AND OWNERSHIP OF THE SOFTWARE IS HEREBY
! TRANSFERRED.
!
! THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT NOTICE
! AND SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL EQUIPMENT
! CORPORATION.
!
! DIGITAL ASSUMES NO RESPONSIBILITY FOR THE USE OR RELIABILITY OF ITS
! SOFTWARE ON EQUIPMENT WHICH IS NOT SUPPLIED BY DIGITAL.
!
!++
! FACILITY: EDT -- The DEC Standard Editor
!
! ABSTRACT:
!
! Move cursor up.
!
! ENVIRONMENT: Runs at any access mode - AST reentrant
!
! AUTHOR: Bob Kushlis, CREATION DATE: September 9, 1979
!
! MODIFIED BY:
!
! 1-001 - Original. DJS 19-FEB-1981. This module was created by
! extracting routine EDT$$CS_UP from module MOVCUR.
! 1-002 - Regularize headers. JBS 11-Mar-1981
! 1-003 - Remove EDT$$G_LN_NO for new screen update logic. JBS 29-Sep-1982
! 3-001 - Add updates from V3 sources. GB 03-May-1983
!--
%SBTTL 'Declarations'
!
! TABLE OF CONTENTS:
!
REQUIRE 'EDTSRC:TRAROUNAM';
FORWARD ROUTINE
EDT$$CS_UP;
!
! INCLUDE FILES:
!
REQUIRE 'EDTSRC:EDTREQ';
!
! MACROS:
!
! NONE
!
! EQUATED SYMBOLS:
!
! NONE
!
! OWN STORAGE:
!
! NONE
!
! EXTERNAL REFERENCES:
!
! In the routine
%SBTTL 'EDT$$CS_UP - move cursor up'
GLOBAL ROUTINE EDT$$CS_UP ! Move cursor up
=
!++
! FUNCTIONAL DESCRIPTION:
!
! This routine moves the cursor up to the first character of the preceding
! line. If the current line is the first line in the buffer, it fails.
!
! FORMAL PARAMETERS:
!
! NONE
!
! IMPLICIT INPUTS:
!
! NONE
!
! IMPLICIT OUTPUTS:
!
! NONE
!
! ROUTINE VALUE:
!
! 1 = move successful
! 0 = move unsuccessful because we are on the top line
!
! SIDE EFFECTS:
!
! NONE
!
!--
BEGIN
EXTERNAL ROUTINE
EDT$$RPL_CHGDLN : NOVALUE,
EDT$$GET_TXTLN : NOVALUE,
EDT$$RD_PRVLN;
!+
! Replace the current line in the work file if it has changed.
!-
EDT$$RPL_CHGDLN ();
!+
! Attempt to go back one line.
!-
IF EDT$$RD_PRVLN ()
THEN
BEGIN
!+
! It succeeded, get the new line and return success.
!-
EDT$$GET_TXTLN ();
RETURN (1);
END
ELSE
!+
! No line above, return failure.
!-
RETURN (0);
END;
END
ELUDOM