Deleted Added
full compact
refresh.c (17524) refresh.c (26926)
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>
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>
46#include <unistd.h>
47#include <string.h>
48
49#include "el.h"
50
51private void re_addc __P((EditLine *, int));
52private void re_update_line __P((EditLine *, char *, char *, int));
53private void re_insert __P((EditLine *, char *, int, int,

--- 806 unchanged lines hidden (view full) ---

860/* re_refresh_cursor():
861 * Move to the new cursor position
862 */
863protected void
864re_refresh_cursor(el)
865 EditLine *el;
866{
867 char *cp;
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;
868 int c;
869 int c;
869 int h, v, th;
870
871 /* first we must find where the cursor is... */
872 h = el->el_prompt.p_pos.h;
873 v = el->el_prompt.p_pos.v;
874 th = el->el_term.t_size.h; /* optimize for speed */
875
876 /* do input buffer to el->el_line.cursor */

--- 139 unchanged lines hidden ---
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 ---