summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2009-07-09When the terminal size is reduced horizontally, don't truncate lines to the newNicholas Marriott
width, so that if the same lines are later increased in size the content reappears.
2009-07-09Cursor up and down should be limited by the scroll region (cuu should stop atNicholas Marriott
the scroll region top if starting from below it and cud stop at the bottom if starting from above). Fixes another vttest test.
2009-07-09New command, if-shell (alias if). Executes the tmux command in the secondNicholas Marriott
argument if the shell command in the first succeeds, for example: if "[ -e ~/.tmux.conf.alt ]" "source .tmux.conf.alt" Written by Tiago Cunha, many thanks.
2009-07-09Stop in the right place so all the lines selected are copied. Reported by KalleNicholas Marriott
Olavi Niemitalo, thanks.
2009-07-09Don't leak FILE * on malloc failure. From ivoire at users dot sourceforge ↵Nicholas Marriott
dot net.
2009-07-09Change inserting and deleting lines inside the scroll region to properly clearNicholas Marriott
lines that should be inserted/deleted but not moved. Fixes problems with mutt reported by Brian Lewis, thanks.
2009-07-09Tidy by removing unused argument from grid_view_{insert,delete}_line_regionNicholas Marriott
functions (currently don't fully work, this is to make fix easier).
2009-07-08Fix two memory leaks when assigning shell variables in configurationNicholas Marriott
file/command prompt. From Tiago Cunha.
2009-07-08Add POSIX-compliant fuser mode to fstat. Originally based onTodd C. Miller
a diff from Peter Werner but largely rewritten to use kinfo_file2. OK deraadt@ with man fixes from jmc@ and sobrado@
2009-07-08When reinitialising the screen, do not omit to clear the last line.Nicholas Marriott
2009-07-08Just appending -l to $SHELL to create a login shell is wrong: -l is not POSIX,Nicholas Marriott
and some people may use shells which do not support it. Instead, make an empty default-command option mean a login shell, and fork it with a - in argv[0] which is the method used by login(1). Also fix the automatic-rename code to handle this correctly and to strip a leading - if present.
2009-07-08sync to 1.7.23: fixed const-nessesIngo Schwarze
2009-07-08sync to 1.7.21: unified escape sequence validation for mdoc and manIngo Schwarze
checking is still incomplete, but a bit better, in particular for man now in sync with 1.7.22: the only 1.7.22 diff was already in
2009-07-07Don't let ambiguous commands override an exact alias match: eg if commandsNicholas Marriott
"abc-1", "abc-2", "abc-3" exist and "abc-3" has the alias "abc", "tmux abc" should execute abc-3, not complain about the command being ambiguous. Not a problem at the moment but will be soon.
2009-07-07Rename the global options variables to be shorter and to make session optionsNicholas Marriott
clear. No functional change, getting this out of the way to make later options changes easier.
2009-07-07Handle empty or unset TERM correctly; also fix a fatal() message while here.Nicholas Marriott
2009-07-07When sending a "protocol mismatch" error message, tell the client to exitNicholas Marriott
afterwards, otherwise it hangs.
2009-07-07..couldn't resist..Jasper Lievisse Adriaanse
2009-07-07The fix for default-path (use target session options instead of global options)Nicholas Marriott
is required here as well, doh.
2009-07-07Minor fix: look for default-path in the options for the specified session firstNicholas Marriott
rather than just the global options. From Brandon Mercer, thanks.
2009-07-07sync to 1.7.21: provide WESCAPE and MAN_IGN_ESCAPE,Ingo Schwarze
to be used soon in man_validate.c
2009-07-07The word "indent" has a special meaning in ".Bd -tag -offset indent",Ingo Schwarze
but *not* in ".Bd -tag -width indent", so in the latter case, it should not be handled specially. ok kristaps@ and jmc@ and contained in 1.7.22
2009-07-07sync to 1.7.21: kristaps@ seems to prefer British spelling...Ingo Schwarze
2009-07-07sync to 1.7.21: suboptarg is not portable to Linux;Ingo Schwarze
no functional change on OpenBSD
2009-07-07sync to 1.7.21:Ingo Schwarze
document the \fX escapes (not recommended) add some more details about escape sequences document white space handling simplify some explanations, don't talk about ontologies
2009-07-06sync to 1.7.21:Ingo Schwarze
document the \fX escapes document white space handling explain global STRUCTURE before explaining SYNTAX details point to mdoc(7) for groff COMPATIBILITY
2009-07-06sync to 1.7.21: increment offset by the value of .Bd -offsetIngo Schwarze
instead of resetting it to the value; no functional change, as currently offset is always 0 at this point, but perhaps it's safer with respect to possible future changes
2009-07-06.Bd -offset indent-two is two times 6, not two times 5 spacesIngo Schwarze
ok kristaps@ and contained in 1.7.21
2009-07-06remove unused WDEPCOL warning that became unused in 1.7.19Ingo Schwarze
ok kristaps@ and contained in 1.7.21
2009-07-06(1) exit with failure not success if options parsing fails;Ingo Schwarze
(2) use warn not warnx if fstat fails; (3) getsubopt modifies arg, so printing it on error will print the wrong thing: use suboptarg instead. from nicm@ ok kristaps@ and contained in 1.7.21
2009-07-06sync to 1.7.21: convert the last plain mdoc_err() in this file to verr();Ingo Schwarze
this is still not really good, but can stay like this for now
2009-07-06Add a section summarising how options work, make the distinction between windowNicholas Marriott
and session options clearer, and fix the incorrect synopses and descriptions of show-options and show-window-options.
2009-07-05only send SSH2_MSG_DISCONNECT if we're in compat20; from dtucker@Kevin Steves
ok deraadt@ markus@
2009-07-02Fix two copy/paste bugs: forbid zero-length buffers to prevent a fatal errorNicholas Marriott
when trying to paste them, found by me, and miscalculation of the start/end causing random fatal errors when copying in copy-mode, reported by sthen. ok sthen "put it in" deraadt
2009-07-02allow for long home dir paths (bz #1615). ok deraadtDarren Tucker
2009-06-30crank version; ok deraadtMarkus Friedl
2009-06-30When unlocking the server, don't try to clear the prompt on clients without aNicholas Marriott
prompt (such as the one issuing the unlock request). This caused the server to die if the wrong password was entered when unlocking from the command line with -U (nasty).
2009-06-30Add missing single quotes around a colon in Runas_Spec definition.Todd C. Miller
2009-06-29Fix two errors with character/line insertion and deletion: the maximum numberNicholas Marriott
of characters which may be inserted or deleted is the screen width, not one less (and similarly for lines and height); and if characters or lines are deleted by moving the ones that follow, the space at the end needs to be cleared. This appears to solve long-standing redraw issues most visible when using the force-width option then scrolling in view(1) or unwrapping lines in emacs.
2009-06-29sync with sudo 1.7.2Todd C. Miller
2009-06-29Fix the range of a #ifndef SMALL ... #endif not to include the "break;"Alexander Hall
needed not to make a status of 200 (OK) fall through to the redirect handling. This was not noticed since the later code would ignore the isredirect flag unless it also received a "Location: " header. ok martynas@
2009-06-29Don't try to page up with scroll-mode -u or copy-mode -u unless the mode wasNicholas Marriott
successfully changed - if already in a different mode, it would corrupt the mode data.
2009-06-27release storage after asprintf. ok sthen@Martynas Venckus
2009-06-27Use gmtime_r so the current time isn't overwritten, the minute comparison worksNicholas Marriott
and the clock is actually updated. It was already used for lock-server but not here.
2009-06-27Now in sync with 1.7.20, except that a few patches looking incorrectIngo Schwarze
have not been merged but instead reported upstream, and a few additional patches approved upstream have already been merged.
2009-06-27sync to 1.7.20: minimum offset for .Bl -enum is 5 spaces, not 4Ingo Schwarze
2009-06-27Copy the 256-colour flag into the tty saved cell as well as the actual colour,Nicholas Marriott
otherwise colour 8 isn't reset properly.
2009-06-27sync to 1.7.20: (1) -width Ds is 6 spaces, not 8, see the manual.Ingo Schwarze
(2) When determining the offset, add two more spaces to the width. For -width Ds, these two bugs cancelled each other, but for -width [01-9]+n, they did not, leaving the offset to narrow. (3) When determining the width using strlen, we need to add two spaces instead of one, just like in the case (2).
2009-06-27sync to 1.7.20: .Bd -indent uses 6-space, not 5-space indentIngo Schwarze
2009-06-27sync to 1.7.20: .Bl -diag get two spaces after the tagIngo Schwarze