Category : Files from Magazines
Archive   : DDJSRC.ZIP
Filename : EDITOR.H

 
Output of file : EDITOR.H contained in archive : DDJSRC.ZIP
/* ------------ editor.h ------------- */
#define ALT_Q 144
#define ALT_R 147
/* -------- configured editor commands ---------- */
#define BACKTAB SHIFT_HT
#define NEXTWORD CTRL_FWD
#define PREVWORD CTRL_BS
#define TOPSCREEN CTRL_T
#define BOTSCREEN CTRL_B
#define BEGIN_BUFFER CTRL_HOME
#define END_BUFFER CTRL_END
#define BEGIN_LINE HOME
#define END_LINE END
#define DELETE_LINE ALT_D
#define DELETE_WORD CTRL_D
#define INSERT INS
#define QUIT ALT_Q
#define PARAGRAPH F2
#define BEGIN_BLOCK F5
#define END_BLOCK F6
#define MOVE_BLOCK F3
#define COPY_BLOCK F4
#define DELETE_BLOCK F8
#define HIDE_BLOCK F9
#define REPAINT ALT_R
/* ------- configured default modes ----------- */
#define TAB 4
#define REFORMING TRUE /* auto paragraph reformat mode */
#ifndef INSERTING
#define INSERTING TRUE /* insert/overwrite mode */
#endif
/* ---------- editor prototype ---------------- */
int text_editor(char *, int, int);
/* ------- macros ------------ */
#define curr(x,y) (ev.bfptr+(y)*ev.wwd+(x))
#define lineno(y) ((unsigned)(ev.bfptr-ev.topptr)/ev.wwd+(y))
/* ---------- editor environment ------------- */
struct edit_env {
int envinuse; /* TRUE if the env is in use */
struct wn *wdo; /* the editor window */
int wwd; /* width of edit window */
int wsz; /* size (chars) of window */
char *topptr; /* -> first char in buffer */
char *bfptr; /* -> first char in window */
char *nowptr; /* -> current char in buffer */
char *lstptr; /* -> last nonblank char */
char *endptr; /* -> last char in buffer */
int text_changed; /* TRUE if text has changed */
int nolines; /* no. of lines in buffer */
int blkbeg; /* marked block: 1st line */
int blkend; /* marked block: last line */
int curr_x, curr_y; /* current buffer coordinates */
int edinsert; /* toggled insert mode */
int reforming; /* toggled para reform mode */
};


  3 Responses to “Category : Files from Magazines
Archive   : DDJSRC.ZIP
Filename : EDITOR.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/