Commit Graph

  • 5743da5588 Update. Tiago Cunha 2009-09-23 15:01:10 +00:00
  • 1310ea2729 Sync OpenBSD patchset 347: Tiago Cunha 2009-09-23 15:00:09 +00:00
  • 2acf349d4e Sync OpenBSD patchset 346: Tiago Cunha 2009-09-23 14:44:02 +00:00
  • fecf8dc44e Remove PROMPT_HIDDEN code which is now unused. Nicholas Marriott 2009-09-23 14:42:48 +00:00
  • acedc2dcf2 Sync OpenBSD patchset 345: Tiago Cunha 2009-09-23 14:39:30 +00:00
  • c40d8cbda4 Sync OpenBSD patchset 344: Tiago Cunha 2009-09-23 14:33:13 +00:00
  • 07bd160861 +. Nicholas Marriott 2009-09-23 12:07:08 +00:00
  • 9200a0be7a Support -c like sh(1) to execute a command, useful when tmux is a login shell. Suggested by halex@. Nicholas Marriott 2009-09-23 12:03:30 +00:00
  • 18ea820cb0 On SIGTERM, just abandon any suspended/locked clients and leave them to it, otherwise the server will hang around (refusing new connections) until they exit properly. Nicholas Marriott 2009-09-23 08:21:57 +00:00
  • 631a618238 Don't die if the client is detaching (the tty has been closed) after waking up from locking. Nicholas Marriott 2009-09-23 07:25:31 +00:00
  • b01dcd7971 Remove the internal tmux locking and instead detach each client and run the command specified by a new option "lock-command" (by default "lock -np") in each client. Nicholas Marriott 2009-09-23 06:18:47 +00:00
  • 962fa20b36 Trim some code by moving the ioctl(TIOCGWINSZ) after SIGWINCH from the client into the server. Nicholas Marriott 2009-09-23 06:12:58 +00:00
  • 64caf59e84 Don't attempt to open() the tty path, rely on the client sending its stdin fd with imsg and fatal if it doesn't, then set the FD_CLOEXEC flag in tty_init instead of tty_open to prevent them leaking into child processes if any are created between the two calls. Nicholas Marriott 2009-09-23 06:05:02 +00:00
  • 2c9d4dfdd4 Tweak tparm() to make Solaris' backward userland happy and remove the -I mess in configure which tried to deal with the fallout from their horrible package management. Nicholas Marriott 2009-09-22 19:20:08 +00:00
  • 0a9005678d Be more careful about what flags are cleared when opening the terminal, otherwise the opened/started flags are cleared and the terminal never released. Nicholas Marriott 2009-09-22 19:11:52 +00:00
  • df7b68480c Sync OpenBSD patchset 343: Tiago Cunha 2009-09-22 14:22:21 +00:00
  • 31ccf2f813 Sync OpenBSD patchset 342: Tiago Cunha 2009-09-22 14:06:40 +00:00
  • 480211f0ee Sync OpenBSD patchset 341: Tiago Cunha 2009-09-22 14:03:11 +00:00
  • 59e65cbda2 Sync OpenBSD patchset 340: Tiago Cunha 2009-09-22 13:59:46 +00:00
  • 649b7c132d Sync OpenBSD patchset 339: Tiago Cunha 2009-09-22 13:56:02 +00:00
  • b6bc8a6828 Sync OpenBSD patchset 338: Tiago Cunha 2009-09-22 13:51:24 +00:00
  • f2d249fdc7 Sync OpenBSD patchset 337: Tiago Cunha 2009-09-22 13:49:13 +00:00
  • c28d4e41cf Sync OpenBSD patchset 336: Tiago Cunha 2009-09-22 13:45:06 +00:00
  • 96dd3e8eb9 Permit multiple prefix keys to be defined, separated by commas, for example: Nicholas Marriott 2009-09-22 12:38:10 +00:00
  • 1572e483c2 Done. Nicholas Marriott 2009-09-22 11:40:11 +00:00
  • 6fab9a3e6f Use KEYC_NONE constant instead of 0 on init. Nicholas Marriott 2009-09-21 15:32:06 +00:00
  • a448524424 Nuke -i option which isn't used anymore. Nicholas Marriott 2009-09-21 15:25:36 +00:00
  • 6b37b2d79d Use option print function for info messages as well. Nicholas Marriott 2009-09-21 14:56:03 +00:00
  • e3c3d746f7 Move common code from show-options and show-window-options into a function. Nicholas Marriott 2009-09-21 14:46:47 +00:00
  • b769aa59d3 zap trailing whitespace; Jason McIntyre 2009-09-21 07:45:10 +00:00
  • fc9107a16a Drop tiny union from option struct. Nicholas Marriott 2009-09-21 07:00:09 +00:00
  • c7a8db5543 Key options were implemented as a number so these struct members are unused. Nicholas Marriott 2009-09-21 06:55:06 +00:00
  • f8ea4f44e8 Update. Tiago Cunha 2009-09-20 22:20:51 +00:00
  • e3dcc5327a Sync OpenBSD patchset 335: Tiago Cunha 2009-09-20 22:20:10 +00:00
  • bd24bdd411 Sync OpenBSD patchset 334: Tiago Cunha 2009-09-20 22:17:03 +00:00
  • 7335ef5792 Sync OpenBSD patchset 333: Tiago Cunha 2009-09-20 22:15:32 +00:00
  • 3266fb5441 Sync OpenBSD patchset 332: Tiago Cunha 2009-09-20 22:11:27 +00:00
  • ab96772436 Delete backup files in the compat directory, as well. Tiago Cunha 2009-09-20 22:06:34 +00:00
  • 14ebcab5b0 run-shell command to run a shell command without opening a window, sending stdout to output mode. Nicholas Marriott 2009-09-20 19:15:01 +00:00
  • c7ace08193 Now working on 1.1. Nicholas Marriott 2009-09-20 19:01:01 +00:00
  • be20fc8699 This commit was manufactured by cvs2svn to create tag 'TMUX_1_0'. 1.0 no_author 2009-09-20 18:54:22 +00:00
  • f82598ca2d 1.0. Nicholas Marriott 2009-09-20 18:54:21 +00:00
  • b29d4affd8 Don't try to use tio if it is NULL. Nicholas Marriott 2009-09-20 18:31:16 +00:00
  • 6594af3729 These are done. Nicholas Marriott 2009-09-20 17:52:39 +00:00
  • 6df9ac7c37 FreeBSD tree.h is fine. Nicholas Marriott 2009-09-20 17:51:54 +00:00
  • 105ce36792 Nuke unused variables and fix stupid error message. Nicholas Marriott 2009-09-20 17:31:26 +00:00
  • 9b5f5ed8e8 Move some common and untidy code for window link/unlink into generic functions instead of duplicating it in move/link window.. Nicholas Marriott 2009-09-20 17:27:18 +00:00
  • 273f1b385c Regularise some fatal messages. Nicholas Marriott 2009-09-20 14:58:12 +00:00
  • 73f58b90a0 Update. Tiago Cunha 2009-09-19 18:53:56 +00:00
  • 23d7ed3187 Sync OpenBSD patchset 331: Tiago Cunha 2009-09-19 18:53:01 +00:00
  • 63d499f480 New option, set-titles-string, to allow the window title to be specified (as for status-left/right) if set-titles is on. Also only update the title when the status line is being redrawn. Nicholas Marriott 2009-09-18 15:19:27 +00:00
  • a2e03ce3cb Add some bits. Nicholas Marriott 2009-09-18 14:19:18 +00:00
  • 15b643fc11 Sync from OpenBSD: Nicholas Marriott 2009-09-16 12:36:28 +00:00
  • 5c60162e3c Rather than constructing an entire termios struct from ttydefaults.h, just let forkpty do it and then alter the bits that should be changed after fork. A little neater and more portable. Nicholas Marriott 2009-09-16 12:35:04 +00:00
  • 150fba5ecd Sync OpenBSD patchset 329: Tiago Cunha 2009-09-15 23:59:40 +00:00
  • c507bf25de Sync OpenBSD patchset 328: Tiago Cunha 2009-09-15 23:54:57 +00:00
  • dbaa28492e Sync OpenBSD patchset 327: Tiago Cunha 2009-09-15 23:52:30 +00:00
  • 960cd3da69 Sync OpenBSD patchset 326: Tiago Cunha 2009-09-15 23:50:32 +00:00
  • 82d6bab57c +. Nicholas Marriott 2009-09-15 19:02:35 +00:00
  • a6dd9e8e7e Enclose repeated buffer draining code in a new msgbuf_drain() function, which is additionally exported for use by others. Jacek Masiulaniec 2009-09-15 18:12:51 +00:00
  • 4278199101 Stick line length to what is actually used (removing an optimization that allowed it to be bigger), and use clear line/EOL sequences rather than spaces in copy/scroll mode. Nicholas Marriott 2009-09-15 15:14:09 +00:00
  • f39865e8e4 The default terminal size should be 80x24, not 80x25. Nicholas Marriott 2009-09-15 07:45:16 +00:00
  • 24baf14e53 Update. Nicholas Marriott 2009-09-15 07:43:25 +00:00
  • 8548624676 Nuke unused server_client_index function, pointed out by martynas@. Nicholas Marriott 2009-09-14 11:25:35 +00:00
  • 5fcf7149d4 Always set VERASE to \177. Tiago Cunha 2009-09-13 20:56:52 +00:00
  • 4d4ec52df8 Zap unused variables. Tiago Cunha 2009-09-13 20:43:21 +00:00
  • 69e7f4af19 Sync OpenBSD patchset 324: Tiago Cunha 2009-09-13 20:37:37 +00:00
  • 61990deb36 Sync OpenBSD patchset 323: Tiago Cunha 2009-09-13 20:30:12 +00:00
  • 8a873b97a3 Doh, trim variables unused now. Nicholas Marriott 2009-09-12 13:09:43 +00:00
  • 8cb8a0da8d Tidy some common code for destroying sessions into a new function. Nicholas Marriott 2009-09-12 13:01:19 +00:00
  • d771614d33 tmux always outputs \177 for backspace, so explicitly set VERASE to \177 for new windows. Nicholas Marriott 2009-09-12 09:54:34 +00:00
  • 0ec1ce005c Sync OpenBSD patchset 322: Tiago Cunha 2009-09-11 14:13:52 +00:00
  • 372a8cb1d9 Permit options such as status-bg to be configured using the entire 256 colour palette by setting "colour0" to "colour255". Nicholas Marriott 2009-09-10 17:16:24 +00:00
  • f0cb57d8ac Sync OpenBSD patchset 321: Tiago Cunha 2009-09-08 00:01:11 +00:00
  • 930f67f474 Sync OpenBSD patchset 320: Tiago Cunha 2009-09-07 23:59:19 +00:00
  • 1de812d5a8 Sync OpenBSD patchset 319: Tiago Cunha 2009-09-07 23:50:07 +00:00
  • c272de7cba Sync OpenBSD patchset 318: Tiago Cunha 2009-09-07 23:48:54 +00:00
  • 5edc465802 Sync OpenBSD patchset 317: Tiago Cunha 2009-09-07 23:37:48 +00:00
  • 3f3b01c7ce While the display-panes indicator is on screen, make the number keys select the pane with that index. Nicholas Marriott 2009-09-07 21:12:12 +00:00
  • 51c95747d8 Reference count clients and sessions rather than relying on a saved index for cmd-choose-*. Nicholas Marriott 2009-09-07 21:01:50 +00:00
  • e323f6620d Tiny cleanup. Matthias Kilian 2009-09-07 19:08:45 +00:00
  • ccba613e5b Give each paste buffer a size member instead of requiring them to be zero-terminated. Nicholas Marriott 2009-09-07 18:50:45 +00:00
  • ec195a4e15 +. Nicholas Marriott 2009-09-07 15:41:52 +00:00
  • e97006b102 Permit embedded colour and attributes in status-left and status-right using new #[] special characters, for example #[fg=red,bg=blue,blink]. Nicholas Marriott 2009-09-07 10:49:32 +00:00
  • bb2d57dcbf Sync OpenBSD patchset 316: Tiago Cunha 2009-09-05 19:03:41 +00:00
  • ffab22bb35 Only redraw all clients once when the backoff timer expires rather than every second all the time. Nicholas Marriott 2009-09-05 17:42:16 +00:00
  • 02c4760ace Sync OpenBSD patchset 315: Tiago Cunha 2009-09-04 20:37:40 +00:00
  • 51a1f25247 Sync OpenBSD patchset 314: Tiago Cunha 2009-09-04 20:27:06 +00:00
  • 83af55bed4 Tidy main and make it a bit easier to read. Nicholas Marriott 2009-09-04 15:15:24 +00:00
  • 895efe7b05 Solaris needs a knob twiddled to get POSIX getpwduid_r. Nicholas Marriott 2009-09-04 14:48:25 +00:00
  • be0d6faa15 Tell the user when sleeping due to password backoff. Nicholas Marriott 2009-09-04 13:29:10 +00:00
  • 83f5581da4 Sync OpenBSD patchset 313: Tiago Cunha 2009-09-03 21:06:30 +00:00
  • 884ebb6dab Sync OpenBSD patchset 309: Tiago Cunha 2009-09-03 21:02:55 +00:00
  • c274551db6 - Make it compile on operating systems other than BSD due to OpenBSD patchset 308. - While there, remove some duplicate code from the compat header file. Tiago Cunha 2009-09-03 20:54:39 +00:00
  • f796336a12 Sync OpenBSD patchset 308: Tiago Cunha 2009-09-03 20:44:38 +00:00
  • 751a2fa915 Fix a race condition when asking a client to take over the terminal (switching to a different poll loop): Nicholas Marriott 2009-09-02 23:49:25 +00:00
  • 3b944fe7e8 Sync OpenBSD patchset 307: Tiago Cunha 2009-09-02 22:45:17 +00:00
  • afd0bd7cb0 When shutting down the server, expect clients to be polite and exit when asked with the right message. Nicholas Marriott 2009-09-02 21:36:00 +00:00
  • 81a457e6fb When shutting down the server, expect clients to be polite and exit when asked with the right message. Nicholas Marriott 2009-09-02 21:25:57 +00:00
  • a5c17d77bf Nuke debugging. Nicholas Marriott 2009-09-02 20:17:23 +00:00