1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
/*
* Basic user edit functions
* Copyright
* (C) 1992 Joseph H. Allen
*
* This file is part of JOE (Joe's Own Editor)
*/
#ifndef JUPP_UEDIT_H
#define JUPP_UEDIT_H
#ifdef EXTERN_CMD_C
__IDSTRING(rcsid_uedit_h, "$MirOS: contrib/code/jupp/uedit.h,v 1.10 2020/03/27 06:38:59 tg Exp $");
#endif
extern int pgamnt;
/*
* Movable functions
* return 0 if action was done
* return -1 otherwise
*/
int u_goto_bol(BW *bw); /* move cursor to beginning of line */
int u_goto_eol(BW *bw); /* move cursor to end of line */
int u_goto_bof(BW *bw); /* move cursor to beginning of file */
int u_goto_eof(BW *bw); /* move cursor to end of file */
int u_goto_left(BW *bw); /* move cursor to left (left arrow) */
int u_goto_right(BW *bw); /* move cursor to right (right arrow) */
int u_goto_prev(BW *bw); /* move cursor to prev. word, edge,
or beginning of line */
int u_goto_next(BW *bw); /* move cursor to next word, edge,
or end of line */
int utomatch(BW *bw);
int urvmatch(BW *bw);
int uuparw(BW *bw);
int udnarw(BW *bw);
int utos(BW *bw);
int ubos(BW *bw);
void scrup(BW *bw, int n, int flg);
void scrdn(BW *bw, int n, int flg);
int upgup(BW *bw);
int upgdn(BW *bw);
int uupslide(BW *bw);
int udnslide(BW *bw);
int uline(BW *bw);
int udelch(BW *bw);
int ubacks(BW *bw, int k);
int u_word_delete(BW *bw);
int ubackw(BW *bw);
int udelel(BW *bw);
int udelbl(BW *bw);
int udelln(BW *bw);
int uinsc(BW *bw);
int utypebw(jobject, int k);
int utypebw_raw(BW *bw, int k, int no_decode);
int uquote(BW *bw);
int uquote8(BW *bw);
int rtntw(jobject);
int uopen(BW *bw);
int usetmark(BW *bw, int c);
int ugomark(BW *bw, int c);
int ufwrdc(BW *bw, int k);
int ubkwdc(BW *bw, int k);
int umsg(BASE *b);
int uctrl(BW *bw);
int unedge(BW *bw);
int upedge(BW *bw);
int ubyte(BW *bw);
int ucol(BW *bw);
int utxt(BW *bw);
int uhome(BW *bw);
#endif
|