Commit Graph

  • e2a7ac4b36 Fix UTF-8 in c&p mode. Nicholas Marriott 2009-03-30 19:57:02 +00:00
  • 6fdac02b53 Add UTF-8 to grid_compare.. Nicholas Marriott 2009-03-30 19:44:55 +00:00
  • 4db72582aa Include protocol version. Nicholas Marriott 2009-03-29 19:09:57 +00:00
  • 23fef99009 8 -> UTF8_SIZE. Nicholas Marriott 2009-03-29 11:18:28 +00:00
  • 4cbf7d489e - Ignore padding when writing so copying the screen for copy-mode doesn't include extra characters. - Handle combined characters properly when the previous character is not UTF-8. Nicholas Marriott 2009-03-29 11:06:22 +00:00
  • ae0ba11ac2 Add some more to server-info. Nicholas Marriott 2009-03-29 10:51:50 +00:00
  • c9856ebad1 Update/reorganise. Nicholas Marriott 2009-03-28 20:20:51 +00:00
  • cf7b384c43 Better UTF-8 support, including combined characters. Unicode data is now stored as UTF-8 in a separate array, the code does a lookup into this every time it gets to a UTF-8 cell. Zero width characters are just appended onto the UTF-8 data for the previous cell. This also means that almost no bytes extra are wasted non-Unicode data (yay). Nicholas Marriott 2009-03-28 20:17:29 +00:00
  • 34dd72f008 _fill functions are no longer needed. Nuke them. Nicholas Marriott 2009-03-28 16:57:03 +00:00
  • abf170d6d0 Whoops. Missed a few changes. Nicholas Marriott 2009-03-28 16:55:46 +00:00
  • 6c0728fe07 Step 2 of the Grand Plan To Make UTF-8 Better. Nicholas Marriott 2009-03-28 16:30:05 +00:00
  • 5872633aef Now unused variable. Nicholas Marriott 2009-03-28 15:49:05 +00:00
  • 989d67ccd7 struct grid_data -> struct grid. Stage 1 of the Grand Plan To Make UTF-8 Better. Nicholas Marriott 2009-03-28 15:43:41 +00:00
  • 8762338e30 +. Nicholas Marriott 2009-03-28 15:40:10 +00:00
  • cb2ac5c269 Key repeating is now a property of the key binding not of the command. Repeat is turned on when the key is bound with the -r flag to bind-key. next/previous- window no longer repeat by default as it turned out to annoy me. Nicholas Marriott 2009-03-28 14:08:09 +00:00
  • 587badecdb Clear using ED when redrawing the screen. I foolishly assumed using spaces would be equivalent and terminals would pick up on this, but apparently not. This fixes copy and paste in xterm/rxvt. Nicholas Marriott 2009-03-28 10:15:01 +00:00
  • a7f57773b7 Not const. Nicholas Marriott 2009-03-27 17:04:04 +00:00
  • f1aa1ff57f const. Nicholas Marriott 2009-03-27 16:59:57 +00:00
  • f6001f9ffc Whoops. Didn't mean to commit this yet. Nicholas Marriott 2009-03-27 16:44:51 +00:00
  • b97264bb70 Update TODO. Nicholas Marriott 2009-03-27 16:44:00 +00:00
  • be0c79f3ad Sockets in /tmp are now created in a subdirectory named, tmux-UID, eg tmux-1000. The default socket is thus /tmp/tmux-UID/default. To start a separate server, the new -L command line option should be used: this creates a socket in the same directory with a different name ("-L main" will create socket called "main"). -S should only be used to place the socket outside /tmp. This makes sockets a little more secure and a bit more convenient to use multiple servers. Nicholas Marriott 2009-03-27 15:57:10 +00:00
  • 0cb069a6b1 Use lstat. No change yet due to realpath call in tmux.c. Nicholas Marriott 2009-03-27 08:58:28 +00:00
  • 52fb9ca250 Clear pollfds first. Nicholas Marriott 2009-03-27 08:46:02 +00:00
  • 12bb7436c3 Update. Nicholas Marriott 2009-03-27 08:44:29 +00:00
  • 1f06ae2def Typo. Nicholas Marriott 2009-03-27 08:44:12 +00:00
  • f5f04a9344 * New session flag "set-remain-on-exit" to set remain-on-exit flag for new windows created in that session (like "remain-by-default" used to do). Not perfectly happy about this, but until I can think of a good way to introduce it generically (maybe a set of options in the session) this will do. Fixes SF request 2527847. Nicholas Marriott 2009-03-21 12:44:06 +00:00
  • 7398241e58 Done. Nicholas Marriott 2009-03-07 10:46:36 +00:00
  • e6d35b6aa4 Support for 88 colour terminals. Nicholas Marriott 2009-03-07 10:29:06 +00:00
  • 521fa7d640 Unused variable. Nicholas Marriott 2009-03-07 10:11:20 +00:00
  • 3f09bf99b8 char not char *... Nicholas Marriott 2009-03-07 09:42:13 +00:00
  • 56f80a5b09 break-pane command to split a pane off into a new window; bound to ! by default. Nicholas Marriott 2009-03-07 09:29:54 +00:00
  • 8a6a7e74da CSR resets the cursor to the top-left. Reported by merdely. Nicholas Marriott 2009-03-05 20:27:51 +00:00
  • 0402ef2e31 Log socket path so I can tell which tmux log is which. Nicholas Marriott 2009-03-05 20:24:41 +00:00
  • a9a22d7ede Initialise socket_path before parsing configuration file. Nicholas Marriott 2009-03-04 17:33:30 +00:00
  • 65b9aeb337 Put socket path in $TMUX. Nicholas Marriott 2009-03-04 17:24:07 +00:00
  • 171256057e Extra function keys from Dashing dashing at hushmail dot com Nicholas Marriott 2009-03-02 18:05:40 +00:00
  • 5803c4fc5b Fix window choice mode, again. Nicholas Marriott 2009-03-02 17:01:00 +00:00
  • 57f5f44d0f Sort out escape key handling so it works. Nicholas Marriott 2009-03-02 16:55:23 +00:00
  • 792b4db4a7 Doh. Set a message when pane is too small rather than dying... Nicholas Marriott 2009-03-01 22:05:35 +00:00
  • a2a5abef13 This is now fixed. Nicholas Marriott 2009-02-28 12:13:38 +00:00
  • 26edf4cce0 Don't segfault on lock when no sessions attached. Nicholas Marriott 2009-02-27 16:01:31 +00:00
  • eae026f2f7 Redraw selection properly. Nicholas Marriott 2009-02-25 21:56:46 +00:00
  • 092cca4b5f Update TODO. Nicholas Marriott 2009-02-25 21:55:15 +00:00
  • c45eb2713b Check the right variable. Doh. Nicholas Marriott 2009-02-24 21:49:05 +00:00
  • 3969b59ae5 Don't turn cursor off unless actually drawing something. Nicholas Marriott 2009-02-21 19:25:58 +00:00
  • 5b7e882bf6 Don't redraw status if it has already been redrawed as part of entire screen. Nicholas Marriott 2009-02-21 17:52:25 +00:00
  • afd67ce89f Allow selection in vi mode. Nicholas Marriott 2009-02-21 17:46:13 +00:00
  • 78f420e7a9 Reuse CPPFLAGS. Nicholas Marriott 2009-02-18 09:04:15 +00:00
  • 664c79cf73 INCDIRS after CPPFLAGS. Nicholas Marriott 2009-02-18 08:50:30 +00:00
  • 761db94050 Exclude NetBSD. Nicholas Marriott 2009-02-18 08:41:46 +00:00
  • 03b76dbf35 Use CPPFLAGS. Nicholas Marriott 2009-02-18 08:41:22 +00:00
  • 6d8ff85167 -err.h. Nicholas Marriott 2009-02-17 18:54:14 +00:00
  • 546a9d5257 Don't die on any error from fd. Nicholas Marriott 2009-02-17 18:53:10 +00:00
  • ca8b6a08ff NetBSD flags. Nicholas Marriott 2009-02-17 08:08:42 +00:00
  • 5a6ed33a3f Don't leak string arguments and options. Nicholas Marriott 2009-02-16 19:29:17 +00:00
  • b03783efad strdup() not necessary here. Nicholas Marriott 2009-02-16 19:01:16 +00:00
  • f5126e20f1 And another memory leak. Nicholas Marriott 2009-02-16 18:58:14 +00:00
  • 4573ef1869 Memory leak. Nicholas Marriott 2009-02-16 18:57:16 +00:00
  • a4f5d127e2 Don't leak top line of history and status screen. Nicholas Marriott 2009-02-16 18:51:39 +00:00
  • a766f9743a Don't leak existing keys. Nicholas Marriott 2009-02-16 18:43:07 +00:00
  • 17017ef3bc These are fixed. Nicholas Marriott 2009-02-15 23:06:49 +00:00
  • 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. Nicholas Marriott 2009-02-13 21:39:45 +00:00
  • 47e6b2725d Reset mode before adding text. Nicholas Marriott 2009-02-13 20:19:30 +00:00
  • b2282f243b Use the right row when calling RI. Nicholas Marriott 2009-02-13 19:45:16 +00:00
  • 488cec3149 More TODO. Nicholas Marriott 2009-02-13 19:36:39 +00:00
  • d76d42f4f9 Update TODO. Nicholas Marriott 2009-02-13 19:30:06 +00:00
  • 0450b4a5d4 Move status prompt/message init and teardown into status.c. Nicholas Marriott 2009-02-13 18:57:55 +00:00
  • fdafe63004 Reset region before using CUD etc. Nicholas Marriott 2009-02-13 17:09:55 +00:00
  • eb7d229bac Code tidying on my way to find tmux-in-tmux bug. Nicholas Marriott 2009-02-13 16:53:14 +00:00
  • 1a88dbf797 Some extra emacs keys from Christian Weisgerber. Nicholas Marriott 2009-02-13 16:40:04 +00:00
  • 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. Nicholas Marriott 2009-02-13 00:43:04 +00:00
  • b1e911aff0 Update TODO. Nicholas Marriott 2009-02-12 23:16:00 +00:00
  • 3a7f3bd292 Reset name when clearing mode. Nicholas Marriott 2009-02-12 17:31:23 +00:00
  • 9d2697f78b Whoops. Build testing is a good idea... Nicholas Marriott 2009-02-12 00:19:31 +00:00
  • e6ed1cc44f Never draw last character: stops stray scrolling sometimes should status line be disabled. Nicholas Marriott 2009-02-12 00:18:05 +00:00
  • 5a04f74d81 Only use RI at the top of the screen. Nicholas Marriott 2009-02-12 00:03:58 +00:00
  • 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. Nicholas Marriott 2009-02-11 23:16:45 +00:00
  • 4ddac7f0b3 Update. Nicholas Marriott 2009-02-11 19:37:05 +00:00
  • e0fe64b464 Further unbreakage. Nicholas Marriott 2009-02-11 19:35:50 +00:00
  • c6193f7f3f Unbreak OS X. Nicholas Marriott 2009-02-11 19:31:58 +00:00
  • d5eaf3a9f6 Emulate CSR with existing screen data on old/stupid terminals which don't support it. Nicholas Marriott 2009-02-11 19:06:58 +00:00
  • 6c76aaca92 Lose unnecessary cursor restores, fix a couple of placement bugs and remove unused CR. Nicholas Marriott 2009-02-11 18:44:08 +00:00
  • 03d531ebc6 Move sx,sy into tty rather than client. Nicholas Marriott 2009-02-11 17:50:36 +00:00
  • 65378588ac Don't debug this stuff. Nicholas Marriott 2009-02-11 17:08:09 +00:00
  • 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. Nicholas Marriott 2009-02-11 17:04:39 +00:00
  • 91c9d95279 Change tty_cmd_* to use a window_pane. Nicholas Marriott 2009-02-11 07:02:34 +00:00
  • 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. Nicholas Marriott 2009-02-11 06:50:16 +00:00
  • c6be7d3ee6 Simplify screen/tty write code to eliminate function pointer which is now unnecessary (it always does the same thing). Nicholas Marriott 2009-02-11 06:31:09 +00:00
  • 89f30822ef Update TODO. Nicholas Marriott 2009-02-11 06:30:19 +00:00
  • 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. Nicholas Marriott 2009-02-10 00:18:06 +00:00
  • cc5a0ab0e4 Update TODO. Nicholas Marriott 2009-02-10 00:17:00 +00:00
  • d9f3bcdb50 Zero to turn off updates. Nicholas Marriott 2009-02-10 00:09:44 +00:00
  • b7c446f051 FAQ entry for automatic rename CPU use. Nicholas Marriott 2009-02-09 18:13:41 +00:00
  • 1b036c1ca9 Return -1 not NULL on error. Doh. Nicholas Marriott 2009-02-09 18:09:58 +00:00
  • c9cfc9a9f3 Don't try to change the window name unless the pid of the process chosen has changed. Reduces CPU use. Nicholas Marriott 2009-02-09 18:08:01 +00:00
  • 9d90d9ad70 Increase name refresh interval to 250 ms to reduce CPU use. Nicholas Marriott 2009-02-09 16:11:26 +00:00
  • 8c7c4423e1 Tweak language. Nicholas Marriott 2009-02-08 19:06:16 +00:00
  • 44cc9c4459 Typos. Nicholas Marriott 2009-02-08 18:41:03 +00:00
  • 9b09c8d71e Test. Nicholas Marriott 2009-02-08 18:33:04 +00:00
  • f5d064afba Test syncmail III. Nicholas Marriott 2009-02-08 18:30:47 +00:00