refresh.h revision 148834
1219820Sjeff/*- 2219820Sjeff * Copyright (c) 1992, 1993 3219820Sjeff * The Regents of the University of California. All rights reserved. 4219820Sjeff * 5219820Sjeff * This code is derived from software contributed to Berkeley by 6219820Sjeff * Christos Zoulas of Cornell University. 7219820Sjeff * 8219820Sjeff * Redistribution and use in source and binary forms, with or without 9219820Sjeff * modification, are permitted provided that the following conditions 10219820Sjeff * are met: 11219820Sjeff * 1. Redistributions of source code must retain the above copyright 12219820Sjeff * notice, this list of conditions and the following disclaimer. 13219820Sjeff * 2. Redistributions in binary form must reproduce the above copyright 14219820Sjeff * notice, this list of conditions and the following disclaimer in the 15219820Sjeff * documentation and/or other materials provided with the distribution. 16219820Sjeff * 3. Neither the name of the University nor the names of its contributors 17219820Sjeff * may be used to endorse or promote products derived from this software 18219820Sjeff * without specific prior written permission. 19219820Sjeff * 20219820Sjeff * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21219820Sjeff * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22219820Sjeff * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23219820Sjeff * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 24219820Sjeff * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25219820Sjeff * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26219820Sjeff * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27219820Sjeff * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28219820Sjeff * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29219820Sjeff * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30219820Sjeff * SUCH DAMAGE. 31219820Sjeff * 32219820Sjeff * @(#)refresh.h 8.1 (Berkeley) 6/4/93 33219820Sjeff * $NetBSD: refresh.h,v 1.5 2003/08/07 16:44:33 agc Exp $ 34219820Sjeff * $FreeBSD: head/lib/libedit/refresh.h 148834 2005-08-07 20:55:59Z stefanf $ 35219820Sjeff */ 36219820Sjeff 37219820Sjeff/* 38219820Sjeff * el.refresh.h: Screen refresh functions 39219820Sjeff */ 40219820Sjeff#ifndef _h_el_refresh 41219820Sjeff#define _h_el_refresh 42219820Sjeff 43219820Sjeff#include "histedit.h" 44219820Sjeff 45219820Sjefftypedef struct { 46219820Sjeff coord_t r_cursor; /* Refresh cursor position */ 47219820Sjeff int r_oldcv; /* Vertical locations */ 48219820Sjeff int r_newcv; 49219820Sjeff} el_refresh_t; 50219820Sjeff 51219820Sjeffprotected void re_putc(EditLine *, int, int); 52219820Sjeffprotected void re_clear_lines(EditLine *); 53219820Sjeffprotected void re_clear_display(EditLine *); 54219820Sjeffprotected void re_refresh(EditLine *); 55219820Sjeffprotected void re_refresh_cursor(EditLine *); 56219820Sjeffprotected void re_fastaddc(EditLine *); 57219820Sjeffprotected void re_goto_bottom(EditLine *); 58219820Sjeff 59219820Sjeff#endif /* _h_el_refresh */ 60219820Sjeff