manpage updated
NOTESIZ shortened to be 6 characters long, as only 6 'X' are used in the glibc version of mkstemp(3). bugfix: wrong calculated len in wins_launch_external(), which lead to erroneus note file name
This commit is contained in:
parent
45199e1df9
commit
fe5621c547
@ -1,3 +1,10 @@
|
||||
13 Feb 2008:
|
||||
manpage updated
|
||||
NOTESIZ shortened to be 6 characters long, as only 6 'X' are
|
||||
used in the glibc version of mkstemp(3).
|
||||
bugfix: wrong calculated len in wins_launch_external(), which
|
||||
lead to erroneus note file name
|
||||
|
||||
11 Feb 2008:
|
||||
TODO list updated
|
||||
status bar updated to display the new 'N' (edit note) and '>'
|
||||
|
@ -1,6 +1,6 @@
|
||||
.\" $calcurse: calcurse.1,v 1.6 2007/08/19 13:04:36 culot Exp $
|
||||
.\" $calcurse: calcurse.1,v 1.7 2008/02/13 19:44:37 culot Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2004-2007 Frederic Culot
|
||||
.\" Copyright (c) 2004-2008 Frederic Culot
|
||||
.\"
|
||||
.\" This program is free software; you can redistribute it and/or modify
|
||||
.\" it under the terms of the GNU General Public License as published by
|
||||
@ -18,7 +18,7 @@
|
||||
.\" Boston, MA 02111-1307, USA.
|
||||
.\"
|
||||
.fam C
|
||||
.TH CALCURSE 1 "August 18, 2007" "Version 1.9" "Calcurse Manual"
|
||||
.TH CALCURSE 1 "February 13, 2008" "Version 2.0" "Calcurse Manual"
|
||||
.SH NAME
|
||||
Calcurse \- text-based organizer
|
||||
.SH SYNOPSIS
|
||||
@ -121,20 +121,37 @@ time calcurse is run :
|
||||
.HP 10
|
||||
$HOME/.calcurse/
|
||||
.br
|
||||
|___notes/
|
||||
.br
|
||||
|___conf
|
||||
.br
|
||||
|___apts
|
||||
.br
|
||||
|___todo
|
||||
.PP
|
||||
The \fIconf\fP file contains the user configuration. The \fIapts\fP
|
||||
file contains all of the user's appointments, and the \fItodo\fP
|
||||
file contains the todo list.
|
||||
.SH LICENCE
|
||||
Copyright (c) 2004-2007 by Frederic Culot.
|
||||
The \fInotes\fP subdirectory contains descriptions of the notes
|
||||
which are attached to appointments, events or todos. One text file is
|
||||
created per note, whose name is built using mkstemp(3) and should be
|
||||
unique, but with no relation with the corresponding item's description.
|
||||
.br
|
||||
This software is released under the GNU General Public License. Please
|
||||
read the COPYING file for more information.
|
||||
The \fIconf\fP file contains the user configuration. The \fIapts\fP
|
||||
file contains all of the user's appointments and events, and the
|
||||
\fItodo\fP file contains the todo list.
|
||||
.SH ENVIRONMENT
|
||||
This section describes the environment variables that affect how
|
||||
calcurse operates.
|
||||
.TP 4
|
||||
\fBVISUAL\fP
|
||||
Specifies the external editor to use for writing notes.
|
||||
.TP 4
|
||||
\fBEDITOR\fP
|
||||
If the \fIVISUAL\fP environment variable is not set, then \fIEDITOR\fP
|
||||
will be used as the default external editor. If none of those variables
|
||||
are set, then \fI/usr/bin/vi\fP is used instead.
|
||||
.TP 4
|
||||
\fBPAGER\fP
|
||||
Specifies the default viewer to be used for reading notes. If this variable
|
||||
is not set, then \fI/usr/bin/less\fP is used.
|
||||
.SH BUGS
|
||||
Incorrect highlighting of items appear when using calcurse black and
|
||||
white theme together with a \fB$TERM\fP variable set to
|
||||
@ -151,13 +168,18 @@ the \fB$TERM\fP variable:
|
||||
.PP
|
||||
If you find other bugs, please send a report to calcurse@culot.org or to the
|
||||
author, below.
|
||||
.SH AUTHOR
|
||||
\fBFrederic Culot\fP <frederic@culot.org>.
|
||||
.SH SEE ALSO
|
||||
ncurses(3), gettext(3)
|
||||
vi(1), less(1), ncurses(3), mkstemp(3)
|
||||
.br
|
||||
Calcurse home page : http://culot.org/calcurse/
|
||||
.br
|
||||
Calcurse manual found in the doc/ directory of the source package, or
|
||||
at:
|
||||
http://culot.org/calcurse/manual.html
|
||||
Calcurse complete manual, translated in many languages and maintained in
|
||||
html format, can be found in the doc/ directory of the source package,
|
||||
or at: http://culot.org/calcurse/manual.html
|
||||
.SH AUTHOR
|
||||
\fBFrederic Culot\fP <frederic@culot.org>.
|
||||
.SH COPYRIGHT
|
||||
Copyright (c) 2004-2008 by Frederic Culot.
|
||||
.br
|
||||
This software is released under the GNU General Public License. Please
|
||||
read the COPYING file for more information.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $calcurse: vars.h,v 1.19 2007/12/30 16:27:59 culot Exp $ */
|
||||
/* $calcurse: vars.h,v 1.20 2008/02/13 19:44:37 culot Exp $ */
|
||||
|
||||
/*
|
||||
* Calcurse - text-based organizer
|
||||
@ -53,7 +53,7 @@
|
||||
#define WEEKINDAYS 7
|
||||
|
||||
#define STATUSHEIGHT 2
|
||||
#define NOTESIZ 10
|
||||
#define NOTESIZ 6
|
||||
|
||||
struct pad_s {
|
||||
int width;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $Id: wins.c,v 1.10 2008/02/10 16:29:50 culot Exp $ */
|
||||
/* $Id: wins.c,v 1.11 2008/02/13 19:44:37 culot Exp $ */
|
||||
|
||||
/*
|
||||
* Calcurse - text-based organizer
|
||||
@ -374,7 +374,8 @@ wins_launch_external(const char *file, const char *cmd)
|
||||
char *p;
|
||||
int len;
|
||||
|
||||
len = strlen(file) + strlen(cmd) + 1;
|
||||
len = strlen(file) + strlen(cmd) + 2; /* Beware of space between cmd and
|
||||
file. */
|
||||
p = (char *)malloc(sizeof(char) * len);
|
||||
if (snprintf(p, len, "%s %s", cmd, file) == -1) {
|
||||
free(p);
|
||||
|
Loading…
x
Reference in New Issue
Block a user