"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "help.c" between
multitail-6.2.1.tgz and multitail-6.4.tgz

About: multitail lets you view one or multiple files like the original tail program.

help.c  (multitail-6.2.1.tgz):help.c  (multitail-6.4.tgz)
#define _LARGEFILE64_SOURCE /* required for GLIBC to enable stat64 and friend s */ #define _LARGEFILE64_SOURCE /* required for GLIBC to enable stat64 and friend s */
#include <ctype.h> #include <ctype.h>
#include <regex.h> #include <regex.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <unistd.h>
#include <netinet/in.h> #include <netinet/in.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/types.h> #include <sys/types.h>
#include "error.h" #include "error.h"
#include "mt.h" #include "mt.h"
#include "mem.h" #include "mem.h"
#include "help.h" #include "help.h"
#include "term.h" #include "term.h"
#include "utils.h" #include "utils.h"
skipping to change at line 603 skipping to change at line 604
"the tty you've been logged on directly.", "the tty you've been logged on directly.",
NULL NULL
}; };
char *help_scrollback_help[] = { char *help_scrollback_help[] = {
"The scrollback menu lets you scrollback in the", "The scrollback menu lets you scrollback in the",
"buffer. The default size of the buffer is 100", "buffer. The default size of the buffer is 100",
"lines. This size can be set with the ^-m^ command-", "lines. This size can be set with the ^-m^ command-",
"line parameter or the ^m^-key in the main menu.", "line parameter or the ^m^-key in the main menu.",
" ^c^ set colors", " ^c^ set colors",
" ^x^ copy contents to X clipboard (xclip)",
" ^f^/^/^ search for a string in the buffer", " ^f^/^/^ search for a string in the buffer",
" ^n^ find the next occurence", " ^n^ find the next occurence",
" ^Y^ toggle linewrap. if linewrap is disabled,", " ^Y^ toggle linewrap. if linewrap is disabled,",
" one can scroll left/right with the cursor-", " one can scroll left/right with the cursor-",
" keys.", " keys.",
" ^ctrl^+^t^ show (sub-)window number in front of", " ^ctrl^+^t^ show (sub-)window number in front of",
" each line", " each line",
" ^t^ show a list of window-nrs and what they", " ^t^ show a list of window-nrs and what they",
" contain. can also display statistics.", " contain. can also display statistics.",
" ^s^ save the buffer to a file", " ^s^ save the buffer to a file",
" ^F9^/^ctrl+w^ switch to full screen mode (and back)",
"Press ^ctrl+g^ to abort.", "Press ^ctrl+g^ to abort.",
NULL NULL
}; };
char *help_scrollback_savefile[] = { char *help_scrollback_savefile[] = {
"Save a buffer to a file.", "Save a buffer to a file.",
" ^a^ write all lines to the file", " ^a^ write all lines to the file",
" ^m^ write only the lines to the file which", " ^m^ write only the lines to the file which",
" match the regular expression(s) (if any)", " match the regular expression(s) (if any)",
NULL NULL
skipping to change at line 1238 skipping to change at line 1241
free(copy); free(copy);
p = n; p = n;
} }
} }
char ansi_terminal(void) char ansi_terminal(void)
{ {
const char *term = getenv("TERM"); const char *term = getenv("TERM");
if (!isatty(1) || !isatty(2))
return 0;
if (!term) if (!term)
return 0; return 0;
if (strcasecmp(term, "ansi") == 0) if (strcasecmp(term, "ansi") == 0)
return 1; return 1;
if (strcasecmp(term, "console") == 0 || strcasecmp(term, "con80x25") == 0 || strcasecmp(term, "linux") == 0 || strcasecmp(term, "linux-80x25") == 0) if (strcasecmp(term, "console") == 0 || strcasecmp(term, "con80x25") == 0 || strcasecmp(term, "linux") == 0 || strcasecmp(term, "linux-80x25") == 0)
return 1; return 1;
if (strcasecmp(term, "screen") == 0) if (strcasecmp(term, "screen") == 0)
 End of changes. 4 change blocks. 
0 lines changed or deleted 6 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS