2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License, Version 1.0 only 2N/A * (the "License"). You may not use this file except in compliance 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 2000 by Sun Microsystems, Inc. 2N/A * All rights reserved. 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A * In interactive mode, jmp_buf_ptr should be non-null. 2N/A for (i = 0; i < n; i++)
2N/A for (i = 0; i < n; i++)
2N/A /* backup to beginning of previous line */ 2N/A /* overwrite new line */ 2N/A /* Output blanks to erase previous line chars if old line was longer */ 2N/A /* Backup cursor for new line */ 2N/A default:
/* Ignore anything else */ 2N/A case 'b':
/* Move backward one word */ 2N/A case 'f':
/* Move forward one word */ 2N/A case 'h':
/* Erase from beginning of word to */ 2N/A case 'H':
/* just before cursor, saving chars */ 2N/A case CTRL(
'['):
/* saw esc. character */ 2N/A case CTRL(
'f'):
/* move forward one char */ 2N/A case CTRL(
'a'):
/* cursor to beginning of line */ 2N/A case CTRL(
'e'):
/* cursor to end of line */ 2N/A case CTRL(
'n'):
/* Move to next line in buffer */ 2N/A case CTRL(
'p'):
/* Move to previous line in buffer */ 2N/A case CTRL(
'o'):
/* Insert newline */ 2N/A case CTRL(
'k'):
/* Erase from cursor to eol, saving */ 2N/A /* chars, at eol, joins two lines */ 2N/A case CTRL(
'u'):
/* Erases line, saving chars */ 2N/A case CTRL(
'y'):
/* Insert save buffer before cursor */ 2N/A case CTRL(
'q'):
/* Quote next char */ 2N/A case CTRL(
'l'):
/* Display edit buffer */ 2N/A case CTRL(
'c'):
/* Exit script editor */ 2N/A case CTRL(
'b'):
/* backup cursor */ 2N/A case 0x7f:
/* DEL */