fctl.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1986 AT&T
* All Rights Reserved
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
#include <stdarg.h>
#include <curses.h>
#include "wish.h"
#include "ctl.h"
#include "token.h"
#include "winp.h"
#include "form.h"
#include "vtdefs.h"
{
register struct form *f;
register int retval;
#ifdef _DEBUG
if (fid < 0) {
if ((fid = FORM_curid) < 0)
}
#endif
f = &FORM_array[fid];
switch (cmd) {
case CTSETDIRTY:
if (fid == FORM_curid)
else
break;
case CTSETPOS:
{
checkffield(f, &ffld);
}
break;
case CTSETPAGE:
{
f->flags |= FORM_ALLDIRTY;
line = 0;
if (curpage > 1)
line |= VT_UPPARROW;
line |= VT_DNPARROW;
if (doclear) {
wgo(0, 0);
wclrwin();
}
else {
}
break;
}
case CTGETARG:
{
char **strptr;
else
}
break;
case CTGETWDW:
break;
case CTGETITLE:
break;
case CTGETVT:
break;
case CTGETPARMS:
break;
case CTSETPARMS:
f->flags |= FORM_DIRTY;
break;
case CTSETSHAPE:
{
if (srow >= 0)
}
break;
case CTCLEARWIN:
break;
default:
#ifdef _DEBUG
#endif
break;
}
return retval;
}