summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2009-08-14Reset attributes as well as scroll region before poll(2) and add a big commentNicholas Marriott
explaining why.
2009-08-14Send SGR0 when initialising the screen. Fixes problems on terminals with BCENicholas Marriott
(like putty) if the background colours is non-default when tmux starts. May also fix problems when resuming a suspended tmux.
2009-08-13there are louder and louder moans about the inability to see packetTheo de Raadt
rates at the same time as interrupt counts, so sneak them into the bottom corner of the vmstat screen ok dlg
2009-08-13Switch the prompt code to return an empty string when the user enters noNicholas Marriott
response and reserve NULL for an explicit cancel. Change all callbacks to treat them the same so no functional change. Also add cancel key bindings to emacs mode which were missing.
2009-08-13vi(1)-style half page scroll in copy and scroll modes. Move the vi full pageNicholas Marriott
scroll key to C-b instead of C-u and use C-u/C-d for half page scrolling with vi keys. In emacs mode, half page scrolling is bound to M-Up and M-Down. Suggested by merdely (about a year ago :-)).
2009-08-13Scroll by two less than the number of lines in the screen, like emacs, ratherNicholas Marriott
than by the entire screen, to make it easier to pull things out from under the line indicator. Suggested by claudio.
2009-08-13Disable mode-mouse (mouse in copy/choice mode) by default as it isn't veryNicholas Marriott
useful at the moment and causes confusion.
2009-08-13Add a base-index session option to specify the first index checked when lookingNicholas Marriott
for an index for a new window.
2009-08-13Allowing copy mode to scroll left and right is annoying, so limit it to theNicholas Marriott
real screen width. To indicate the cursor is at the end of the line rather than the cell before, put a '$' in the last cell. Also clear the selection when the terminal is resized to avoid tmux getting confused.
2009-08-13Rather than telling the client to exit in the function when creating a newNicholas Marriott
session detached, let the caller do it. Allows "tmux new -d \; attach" to work.
2009-08-13When creating a new session from the command-line where there is an externalNicholas Marriott
terminal, copy the termios(4) special characters and use them for new windows created in the new session. Suggested by Theo.
2009-08-13use Bk/Ek to avoid ugly split in synopsis;Jason McIntyre
2009-08-13Redraw the screen after resizing.Nicholas Marriott
2009-08-13It was originally intended that scroll mode would show content that wasNicholas Marriott
currently off-screen due to resize, but somewhere along the way this got lost. Restore this behaviour to scroll mode by fixing screen_write_copy to read up to the saved line length rather than the current screen width. Copy mode remains unaltered for now.
2009-08-13Print a warning when rdomain is used on non-AF_INET sockets. Those areClaudio Jeker
currently not supported. Requested by djm sort of.
2009-08-13Allow tcpbench to bind to a different rdomain.Claudio Jeker
OK sthen, djm and maybe more
2009-08-13sync synopsis and usage();Jason McIntyre
2009-08-13If the client passes zero for the window size in the identify message (which itNicholas Marriott
can, for example on serial terminals), reset it to 80x25, same as for resize messages. Problem reported by kettenis@.
2009-08-13Swizzle options: "-P sftp_server_path" moves to "-D sftp_server_path",Damien Miller
add "-P port" to match scp(1). Fortunately, the -P option is only really used by our regression scripts. part of larger patch from carlosvsilvapt@gmail.com for his Google Summer of Code work; ok deraadt markus
2009-08-12i am sorry to commit to userland from a kernel hackathonHenning Brauer
2009-08-12A tty context must not be modified as it may be reused to update multipleNicholas Marriott
clients, so make it const. Also fix an actual modification which caused a hang when a session was connected to multiple terminals at least one of which was missing ich/ich1.
2009-08-12When started as the shell, __progname contains a leading -, so hardcode "tmux"Nicholas Marriott
for socket path and log files, and strip it when working out the shell.
2009-08-12sort options;Jason McIntyre
2009-08-12imsg closes the fd after sending, so dup() STDIN_FILENO before passing it toNicholas Marriott
the parent, otherwise TIOCGWINSZ will fail when the window is resized (that could actually be moved into the server but this is more future-proof and avoids breaking the protocol).
2009-08-12support most of scp(1)'s commandline arguments in sftp(1), as a firstDamien Miller
step towards making sftp(1) a drop-in replacement for scp(1). One conflicting option (-P) has not been changed, pending further discussion. Patch from carlosvsilvapt@gmail.com as part of his work in the Google Summer of Code
2009-08-11Initialise log_fd to -1, prevents spurious disconnection of the client when itNicholas Marriott
ends up as fd 0 (likely if the server is started with "tmux start"). Also add some extra debugging messages to server.c.
2009-08-11Have the client pass its stdin fd to the server when identifying itself andNicholas Marriott
have the server use that rather than reopening the tty. If the fd isn't given, use the old behaviour (so no need for a version change). This allows tmux to be used as the shell, so also change so that when working out the command to execute if default-command is empty (the default), tmux will try not execute itself.
2009-08-11Add a TTY_OPENED flag and tidy a little.Nicholas Marriott
2009-08-11Drop the no_stop argument to tty_close and tty_free in favour of a flag in theNicholas Marriott
tty struct.
2009-08-11Switch tmux to use imsg. This is the last major change to make theNicholas Marriott
client-server protocol more resilient and make the protocol versioning work properly. In future, the only things requiring a protocol version bump will be changes in the message structs, and (when both client and server have this change) mixing different versions should nicely report an error message. As a side effect this also makes the code tidier, fixes a problem with the way errors reported during server startup were handled, and supports fd passing (which will be used in future). Looked over by eric@, thanks. Please note that mixing a client with this change with an older server or vice versa may cause tmux to crash or hang - tmux should be completely exited before upgrading.
2009-08-11Add flags for 1+2 and 2 arguments to the generic target code, use it forNicholas Marriott
cmd-set-environment/option/window-option and remove the generic options parsing.
2009-08-10No arguments are the same as new-session and this requires the environment toNicholas Marriott
be sent, so set that flag too when argc == 0.
2009-08-10Reset the attributes after drawing all or part of the screen, and reset theNicholas Marriott
region before poll(2). This reduces (but does not eliminate) the chance of the attributes not being normal if tmux is disconnected without warning (ssh ~., reboot from inside, etc).
2009-08-10Use the right source and destination lines in grid_duplicate_lines.Nicholas Marriott
2009-08-10some minor tweaks; ok nicmJason McIntyre
2009-08-09sync to 1.8.4: three additional .St macrosIngo Schwarze
2009-08-09sync to 1.8.4: remove superfluous FIXMEsIngo Schwarze
2009-08-09sync to 1.8.4: full .An -[no]split supportIngo Schwarze
2009-08-09sync to 1.8.4: correct error message to complain about .An line argumentsIngo Schwarze
2009-08-09sync to 1.8.4: now that leading blanks in literal text are preserved,Ingo Schwarze
.Bd printing can be simplified (and must be fixed)
2009-08-09sync to 1.8.4: preserve leading whitespace in literal textIngo Schwarze
2009-08-09now in sync with version 1.8.3Ingo Schwarze
excepting one change to .%T that I first want to discuss upstream
2009-08-09sync to 1.8.3: quote macro names without a preceding dotIngo Schwarze
2009-08-09sync to 1.8.3: ugly fix for .Bl or .Bd when nested in .Bl -hangIngo Schwarze
2009-08-09zap trailing whitespace;Jason McIntyre
2009-08-09sync to 1.8.3: In .Bl -column, handle one column in excess,Ingo Schwarze
but still issue a warning
2009-08-09sync to 1.8.3: .Pa without arguments is a synonym for .Pa ~Ingo Schwarze
2009-08-09sync to 1.8.3: bring vspace handling in .Bl -column and -diag closer to groffIngo Schwarze
2009-08-09sync to 1.8.3: remove doubled .Bl -diag whitespaceIngo Schwarze
2009-08-09sync to 1.8.3: right-most column now fills to the right marginIngo Schwarze
(undocumented groff behaviour)