Change how the screen objects are pushed/popped
[screen-lua.git] / src / mark.h
bloba1bdae24f44f0bcacb6f60449050fe250b068485
1 /* Copyright (c) 1993-2002
2 * Juergen Weigert (jnweiger@immd4.informatik.uni-erlangen.de)
3 * Michael Schroeder (mlschroe@immd4.informatik.uni-erlangen.de)
4 * Copyright (c) 1987 Oliver Laumann
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program (see the file COPYING); if not, write to the
18 * Free Software Foundation, Inc.,
19 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
21 ****************************************************************
22 * $Id$ FAU
25 struct markdata
27 struct win *md_window;/* pointer to window we are working on */
28 struct acluser *md_user; /* The user who brought us up */
29 int cx, cy; /* cursor Position in WIN coords*/
30 int x1, y1; /* first mark in WIN coords */
31 int second; /* first mark dropped flag */
32 int left_mar, right_mar, nonl;
33 int rep_cnt; /* number of repeats */
34 int append_mode; /* shall we overwrite or append to copybuffer */
35 int write_buffer; /* shall we do a KEY_WRITE_EXCHANGE right away? */
36 int hist_offset; /* how many lines are on top of the screen */
37 char isstr[100]; /* string we are searching for */
38 int isstrl;
39 char isistr[200]; /* string of chars user has typed */
40 int isistrl;
41 int isdir; /* current search direction */
42 int isstartpos; /* position where isearch was started */
43 int isstartdir; /* direction when isearch was started */
44 struct { /* bookkeeping for fFtT;, commands */
45 int flag, target, direction;
46 } f_cmd;
51 #define W2D(y) ((y) - markdata->hist_offset)
52 #define D2W(y) ((y) + markdata->hist_offset)