/* * @OPENGROUP_COPYRIGHT@ * COPYRIGHT NOTICE * Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc. * Copyright (c) 1996, 1997, 1998, 1999, 2000 The Open Group * ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for * the full copyright text. * * This software is subject to an open license. It may only be * used on, with or for operating systems which are themselves open * source systems. You must contact The Open Group for a license * allowing distribution and sublicensing of this software on, with, * or for operating systems which are not Open Source programs. * * See http://www.opengroup.org/openmotif/license for full * details of the license agreement. Any use, reproduction, or * distribution of the program constitutes recipient's acceptance of * this agreement. * * EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS * PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY * WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY * OR FITNESS FOR A PARTICULAR PURPOSE * * EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT * NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN * ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE * EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGES. */ /* * HISTORY */ /* static char rcsid[] = "$XConsortium: Text2.dat /main/7 1995/07/13 19:27:52 drk $" */ #) This text widget has defined a number of different translations, which are listed below. Try each translation and verify that the correct action is performed. The fontList for this text widget is variable. If you need to add more text to the example, do so. !) Ctrlg beep Ctrli insert string "newstring" Ctrlright bracket forward a paragraph Ctrlleft bracket back a paragraph Metau scroll one line up Metad scroll down one line Ctrlf next page Ctrlb previous page BackSpace kill previous character Ctrls kill selection Ctrlk kill next word Metak kill previous word Ctrlu unkill Ctrlr delete previous word Metar delete next word. Ctrlc cut primary selection C) /* test case for PIR 3520 */ /* This PIR was closed, test is no longer valid. * #) Select any word in the text by double clicking MB1 on it. * #) Press the Backspace key to kill the selection. * #) Click MB1 somewhere else in the text. * #) Press Ctrlu to unkill the selection and paste it at the * insertion cursor position. * #) Perform the same sequence of select word, kill and unkill using * the kill-next-word ( Ctrlk ) action. * #) Once again, perform the sequence using the kill-previous-word * ( Metak ) action. * C) */ /* end of test case for PIR 3520 */ /* test case for CR 8029 */ #) Move the cursor to the beginning of the text. Type the following lines, typing a space where the instructions indicate \"_\". !) __A paragraph that starts with whitespace #) Move the cursor to the beginning of the text again. Type Ctrlright bracket to move forward a paragraph. You should be able to continue, no infinite loop should occur. C) E)