Commit Graph

1687 Commits

Author SHA1 Message Date
Nicholas Marriott
546a9d5257 Don't die on any error from fd. 2009-02-17 18:53:10 +00:00
Nicholas Marriott
ca8b6a08ff NetBSD flags. 2009-02-17 08:08:42 +00:00
Nicholas Marriott
5a6ed33a3f Don't leak string arguments and options. 2009-02-16 19:29:17 +00:00
Nicholas Marriott
b03783efad strdup() not necessary here. 2009-02-16 19:01:16 +00:00
Nicholas Marriott
f5126e20f1 And another memory leak. 2009-02-16 18:58:14 +00:00
Nicholas Marriott
4573ef1869 Memory leak. 2009-02-16 18:57:16 +00:00
Nicholas Marriott
a4f5d127e2 Don't leak top line of history and status screen. 2009-02-16 18:51:39 +00:00
Nicholas Marriott
a766f9743a Don't leak existing keys. 2009-02-16 18:43:07 +00:00
Nicholas Marriott
17017ef3bc These are fixed. 2009-02-15 23:06:49 +00:00
Nicholas Marriott
95c8c049f5 Redo mode keys slightly more cleanly and apply them to command prompt editing. vi or emacs mode is controlled by the session option status-keys. 2009-02-13 21:39:45 +00:00
Nicholas Marriott
47e6b2725d Reset mode before adding text. 2009-02-13 20:19:30 +00:00
Nicholas Marriott
b2282f243b Use the right row when calling RI. 2009-02-13 19:45:16 +00:00
Nicholas Marriott
488cec3149 More TODO. 2009-02-13 19:36:39 +00:00
Nicholas Marriott
d76d42f4f9 Update TODO. 2009-02-13 19:30:06 +00:00
Nicholas Marriott
0450b4a5d4 Move status prompt/message init and teardown into status.c. 2009-02-13 18:57:55 +00:00
Nicholas Marriott
fdafe63004 Reset region before using CUD etc. 2009-02-13 17:09:55 +00:00
Nicholas Marriott
eb7d229bac Code tidying on my way to find tmux-in-tmux bug. 2009-02-13 16:53:14 +00:00
Nicholas Marriott
1a88dbf797 Some extra emacs keys from Christian Weisgerber. 2009-02-13 16:40:04 +00:00
Nicholas Marriott
cce03e138b Looking up argv[0] is expensive, so just use p_comm for the window name which is good enough. Also increase name update time to 500 ms. 2009-02-13 00:43:04 +00:00
Nicholas Marriott
b1e911aff0 Update TODO. 2009-02-12 23:16:00 +00:00
Nicholas Marriott
3a7f3bd292 Reset name when clearing mode. 2009-02-12 17:31:23 +00:00
Nicholas Marriott
9d2697f78b Whoops. Build testing is a good idea... 2009-02-12 00:19:31 +00:00
Nicholas Marriott
e6ed1cc44f Never draw last character: stops stray scrolling sometimes should status line be disabled. 2009-02-12 00:18:05 +00:00
Nicholas Marriott
5a04f74d81 Only use RI at the top of the screen. 2009-02-12 00:03:58 +00:00
Nicholas Marriott
959eeef505 FreeBSD's console wraps lines at $COLUMNS - 1 rather than $COLUMNS (the cursor can never be beyond $COLUMNS - 1) and does not appear to support changing this behaviour, or any of the obvious possibilities (turning off right margin wrapping, insert mode). This is irritating, most notably because it impossible to write to the very bottom-right of the screen without scrolling. To work around this, if built on FreeBSD and run with a "cons" $TERM, the bottom-right cell on the screen is omitted. 2009-02-11 23:16:45 +00:00
Nicholas Marriott
4ddac7f0b3 Update. 2009-02-11 19:37:05 +00:00
Nicholas Marriott
e0fe64b464 Further unbreakage. 2009-02-11 19:35:50 +00:00
Nicholas Marriott
c6193f7f3f Unbreak OS X. 2009-02-11 19:31:58 +00:00
Nicholas Marriott
d5eaf3a9f6 Emulate CSR with existing screen data on old/stupid terminals which don't support it. 2009-02-11 19:06:58 +00:00
Nicholas Marriott
6c76aaca92 Lose unnecessary cursor restores, fix a couple of placement bugs and remove unused CR. 2009-02-11 18:44:08 +00:00
Nicholas Marriott
03d531ebc6 Move sx,sy into tty rather than client. 2009-02-11 17:50:36 +00:00
Nicholas Marriott
65378588ac Don't debug this stuff. 2009-02-11 17:08:09 +00:00
Nicholas Marriott
514fe11727 We are going to need the updated screen data for emulating the scroll region,
which may involve changing the cursor position; however, the old (before
redraw) cursor position is necessary for writing to the tty. So, save it before
doing the redraw then update the internal screen then update the tty.

Not sure I like this solution but it does the job for now.
2009-02-11 17:04:39 +00:00
Nicholas Marriott
91c9d95279 Change tty_cmd_* to use a window_pane. 2009-02-11 07:02:34 +00:00
Nicholas Marriott
e444b0b92a Split most of tty_cmd_cell off to tty_cell. First step on making tty_cmd_* take
a window_pane for later use emulating scroll region.
2009-02-11 06:50:16 +00:00
Nicholas Marriott
c6be7d3ee6 Simplify screen/tty write code to eliminate function pointer which is now
unnecessary (it always does the same thing).
2009-02-11 06:31:09 +00:00
Nicholas Marriott
89f30822ef Update TODO. 2009-02-11 06:30:19 +00:00
Nicholas Marriott
b37399304f Don't redraw status line unless it has actually changed. Stops extraneous
updates between clock/#() changes and doesn't require manual status-interval 0
when no updates are occuring.
2009-02-10 00:18:06 +00:00
Nicholas Marriott
cc5a0ab0e4 Update TODO. 2009-02-10 00:17:00 +00:00
Nicholas Marriott
d9f3bcdb50 Zero to turn off updates. 2009-02-10 00:09:44 +00:00
Nicholas Marriott
b7c446f051 FAQ entry for automatic rename CPU use. 2009-02-09 18:13:41 +00:00
Nicholas Marriott
1b036c1ca9 Return -1 not NULL on error. Doh. 2009-02-09 18:09:58 +00:00
Nicholas Marriott
c9cfc9a9f3 Don't try to change the window name unless the pid of the process chosen has
changed. Reduces CPU use.

osdep-* stuff is a bit horrible now but there we go :-/.
2009-02-09 18:08:01 +00:00
Nicholas Marriott
9d90d9ad70 Increase name refresh interval to 250 ms to reduce CPU use. 2009-02-09 16:11:26 +00:00
Nicholas Marriott
8c7c4423e1 Tweak language. 2009-02-08 19:06:16 +00:00
Nicholas Marriott
44cc9c4459 Typos. 2009-02-08 18:41:03 +00:00
Nicholas Marriott
9b09c8d71e Test. 2009-02-08 18:33:04 +00:00
Nicholas Marriott
f5d064afba Test syncmail III. 2009-02-08 18:30:47 +00:00
Nicholas Marriott
b94ddce409 Test syncmail II. 2009-02-08 18:27:10 +00:00
Nicholas Marriott
b9af4919c1 Test syncmail. 2009-02-08 18:23:52 +00:00