multiline.c revision d67944fbe3fa0b31893a7116a09b0718eecf6078
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1985 AT&T
* All Rights Reserved
*/
#include <stdio.h>
#include <ctype.h>
#include <curses.h>
#include "wish.h"
#include "token.h"
#include "winp.h"
#include "fmacs.h"
static int emptyrow();
{
else
}
static token
{
register int col;
switch (tok) {
case TOK_BACKSPACE:
case TOK_RETURN:
case TOK_WRAP:
else
beep();
break;
case TOK_IL:
beep();
beep();
else {
}
break;
case TOK_DL:
beep();
else {
fdelline(1);
}
break;
case TOK_HOME:
case TOK_BEG:
fgo(0, 0);
break;
case TOK_SHOME:
case TOK_END:
col--;
break;
default:
}
return(rettok);
}
static token
{
register int col;
switch (tok) {
case TOK_DL:
beep();
break;
}
fdelline(1);
break;
case TOK_IL:
beep();
break;
}
Bufflast += FIELDBYTES;
scroll_down(1);
}
}
break;
case TOK_NPAGE:
else {
beep();
}
break;
case TOK_PPAGE:
else {
beep();
}
break;
case TOK_UP:
case TOK_SR:
break;
case TOK_RETURN:
beep();
else {
}
}
break;
case TOK_DOWN:
case TOK_SF:
break;
case TOK_WRAP:
scroll_down(1);
}
col = 0;
beep();
}
break;
case TOK_BACKSPACE:
beep();
else {
fputchar(' ');
}
break;
case TOK_HOME:
case TOK_BEG:
;
fgo(0, 0);
break;
case TOK_SHOME:
case TOK_END:
;
col--;
break;
default:
}
return(rettok);
}
static int
register int row;
{
register int col;
col--;
}