Simple status line.

This commit is contained in:
Nicholas Marriott
2007-10-01 14:53:29 +00:00
parent 872696f781
commit bfccbc67d1
7 changed files with 139 additions and 9 deletions

5
tmux.c
View File

@@ -1,4 +1,4 @@
/* $Id: tmux.c,v 1.17 2007-09-28 21:41:52 mxey Exp $ */
/* $Id: tmux.c,v 1.18 2007-10-01 14:53:29 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -35,6 +35,7 @@ const char *malloc_options = "AFGJPX";
volatile sig_atomic_t sigwinch;
volatile sig_atomic_t sigterm;
int debug_level;
u_int status_lines;
void sighandler(int);
@@ -183,6 +184,8 @@ main(int argc, char **argv)
log_open(stderr, LOG_USER, debug_level);
status_lines = 1;
for (i = 0; i < NOP; i++) {
op = op_table + i;
if (strncmp(argv[0], op->cmd, strlen(argv[0])) == 0 ||