"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "wml_aux/iselect/iselect_browse.c" between
wml-2.28.0.tar.xz and wml-2.30.0.tar.xz

About: WML (Website META Language) is an extensible Webdesigner’s off-line HTML generation toolkit.

iselect_browse.c  (wml-2.28.0.tar.xz):iselect_browse.c  (wml-2.30.0.tar.xz)
/* _ ____ _ _ /*
** (_) ___| ___| | ___ ___| |_
** / /\___ \ / _ \ |/ _ \/ __| __|
** / / ___) | __/ | __/ (__| |_
** (_( |____/ \___|_|\___|\___|\__|
**
** iSelect -- Interactive Selection Tool ** iSelect -- Interactive Selection Tool
** **
** iSelect is a Curses-based tool for interactive line selection ** iSelect is a Curses-based tool for interactive line selection
** in an ASCII file via a full-screen terminal session. ** in an ASCII file via a full-screen terminal session.
** **
** ====================================================================== ** ======================================================================
** **
** Copyright (c) 1996-1999 Ralf S. Engelschall. ** Copyright (c) 1996-1999 Ralf S. Engelschall.
** **
** This program is free software; it may be redistributed and/or ** This program is free software; it may be redistributed and/or
skipping to change at line 49 skipping to change at line 44
#include <ncurses.h> #include <ncurses.h>
#endif #endif
#ifdef USE_CURSES #ifdef USE_CURSES
#include <curses.h> #include <curses.h>
#endif #endif
#include "iselect_global.h" #include "iselect_global.h"
#include "iselect_browse.h" #include "iselect_browse.h"
#include "iselect_keys.h" #include "iselect_keys.h"
extern char *iSelect_Help; extern const char * const iSelect_Help;
extern char *iSelect_README; extern const char * const iSelect_README;
void strip(char *string); void strip(char *string);
void diehard(int signum); void diehard(int signum);
void diesoft(void); void diesoft(void);
void setup(void); void setup(void);
char *iSelect_InputField(int wYSize, int wXSize, int wYPos, int wXPos, int bAllo wEmpty); char *iSelect_InputField(int wYSize, int wXSize, int wYPos, int wXPos, int bAllo wEmpty);
void iSelect_Draw(WINDOW *wField, void iSelect_Draw(WINDOW *wField,
int wYSize, int wXSize, int wYPos, int wXPos, int wYSize, int wXSize, int wYPos, int wXPos,
int nAbsFirstLine, int nAbsLastLine, int nAbsFirstLine, int nAbsLastLine,
int nRelMarked, int nRelMarked,
skipping to change at line 374 skipping to change at line 369
int bEOI; int bEOI;
int bQuit = false; int bQuit = false;
int y; int y;
int x; int x;
char msg[1024]; char msg[1024];
char ca[1024]; char ca[1024];
char ca3[1024]; char ca3[1024];
char *cp; char *cp;
char *cp2; char *cp2;
char *cp3; char *cp3;
char **cpp; const char **cpp;
int ok; int ok;
int bAllowEmpty; int bAllowEmpty;
/* /*
* Browser field * Browser field
*/ */
wField = newwin(wYSize, wXSize, wYPos, wXPos); wField = newwin(wYSize, wXSize, wYPos, wXPos);
werase(wField); werase(wField);
crmode(); crmode();
noecho(); noecho();
skipping to change at line 708 skipping to change at line 703
else if (c == 'h' || c == 'v') { else if (c == 'h' || c == 'v') {
if (c == 'h') if (c == 'h')
strcpy(msg, "Help Page: Press 'q' to exit"); strcpy(msg, "Help Page: Press 'q' to exit");
else else
strcpy(msg, "Version Page: Press 'q' to exit"); strcpy(msg, "Version Page: Press 'q' to exit");
iSelect_Draw(wField, wYSize, wXSize, wYPos, wXPos, nAbsFirs tLine, nAbsLastLine, nRelMarked, nRelFirstDraw, nRelLastDraw, nLines, sField, ti tle, name, mField, msg, tagbegin, tagend); iSelect_Draw(wField, wYSize, wXSize, wYPos, wXPos, nAbsFirs tLine, nAbsLastLine, nRelMarked, nRelFirstDraw, nRelLastDraw, nLines, sField, ti tle, name, mField, msg, tagbegin, tagend);
wrefresh(wField); wrefresh(wField);
hField = newwin(wYSize, wXSize, wYPos, wXPos); hField = newwin(wYSize, wXSize, wYPos, wXPos);
werase(hField); werase(hField);
char *iSelect_READMEs[] = {iSelect_README, NULL}; const char *iSelect_READMEs[] = {iSelect_README, NULL};
char *iSelect_Helps[] = {iSelect_Help, NULL}; const char *iSelect_Helps[] = {iSelect_Help, NULL};
if (c == 'h') if (c == 'h')
cpp = iSelect_Helps; cpp = iSelect_Helps;
else else
cpp = iSelect_READMEs; cpp = iSelect_READMEs;
for (y = 0; y < wYSize && cpp[y] != NULL; y++) { for (y = 0; y < wYSize && cpp[y] != NULL; y++) {
sprintf(ca, "%s", cpp[y]); sprintf(ca, "%s", cpp[y]);
cp = ca; cp = ca;
x = 0; x = 0;
while (1) { while (1) {
if ((cp2 = strstr(cp, "<b>")) != NULL) { if ((cp2 = strstr(cp, "<b>")) != NULL) {
skipping to change at line 918 skipping to change at line 913
* close Curses package * close Curses package
*/ */
werase(wMain); werase(wMain);
wrefresh(wMain); wrefresh(wMain);
delwin(wMain); delwin(wMain);
diesoft(); diesoft();
CUS: CUS:
return rc; return rc;
} }
/*EOF*/
 End of changes. 5 change blocks. 
11 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)