1/*- 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Christos Zoulas of Cornell University. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 29 unchanged lines hidden (view full) --- 38static char sccsid[] = "@(#)refresh.c 8.1 (Berkeley) 6/4/93"; 39#endif /* not lint && not SCCSID */ 40 41/* 42 * refresh.c: Lower level screen refreshing functions 43 */ 44#include "sys.h" 45#include <stdio.h> |
46#include <ctype.h> |
47#include <unistd.h> 48#include <string.h> 49 50#include "el.h" 51 52private void re_addc __P((EditLine *, int)); 53private void re_update_line __P((EditLine *, char *, char *, int)); 54private void re_insert __P((EditLine *, char *, int, int, --- 806 unchanged lines hidden (view full) --- 861/* re_refresh_cursor(): 862 * Move to the new cursor position 863 */ 864protected void 865re_refresh_cursor(el) 866 EditLine *el; 867{ 868 char *cp; |
869 int c; |
870 int h, v, th; 871 872 /* first we must find where the cursor is... */ 873 h = el->el_prompt.p_pos.h; 874 v = el->el_prompt.p_pos.v; 875 th = el->el_term.t_size.h; /* optimize for speed */ 876 877 /* do input buffer to el->el_line.cursor */ --- 139 unchanged lines hidden --- |