1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-09 07:46:35 +01:00

add setting to control history size

This commit is contained in:
Jfreegman
2014-05-25 19:54:34 -04:00
parent 083ca2f3b7
commit f0962bd060
5 changed files with 25 additions and 4 deletions

View File

@@ -20,7 +20,7 @@
*
*/
#define NUM_SETTINGS 6
#define NUM_SETTINGS 7
/* holds user setting values */
struct user_settings {
@@ -30,6 +30,7 @@ struct user_settings {
int colour_theme; /* boolean (0 for default toxic colours) */
long int audio_in_dev;
long int audio_out_dev;
int history_size; /* int between MIN_HISTORY and MAX_HISTORY */
};
enum {
@@ -44,6 +45,8 @@ enum {
NATIVE_COLS = 1,
DFLT_COLS = 0,
DFLT_HST_SIZE = 700,
};
int settings_load(struct user_settings *s, char *path);