summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2019-05-10For PermitOpen violations add the remote host and port toFlorian Obser
be able to find out from where the request was comming. Add the same logging for PermitListen violations which where not logged at all. Pointed out by Robert Kisteleki (robert AT ripe.net) input markus OK deraadt
2019-05-10Fix a typo in previous (, -> :).Nicholas Marriott
2019-05-10Add support for simple menus usable with mouse or keyboard. New commandNicholas Marriott
display-menu shows a menu (bound to the mouse on status line by default) and a couple of extra formats for the default menus.
2019-05-10Add a function to draw a simple menu onto a screen.Nicholas Marriott
2019-05-10Backout latest, commited by mistake.Alexandre Ratchov
2019-05-10Use the correct length for MIDI common messages.Alexandre Ratchov
2019-05-10Don't try to send to device helper process if it's terminated.Alexandre Ratchov
2019-05-10Delete superfluous #includes of <ifaddrs.h>, <net/if_dl.h>, and <net/if_enc.h>Philip Guenther
ok krw@, jsg@
2019-05-09This no longer uses utime(3), so it doesn't need <utime.h>Philip Guenther
2019-05-09Use the new sysctl to print systat pf 1. This now works even for unprivedClaudio Jeker
users. OK deraadt@, sashan@
2019-05-09ftp makes a new connection for each auto-fetch file. Remove a lie claimingChristian Weisgerber
otherwise. ok tb@ tedu@
2019-05-09Save mouse buttons as well as position.Nicholas Marriott
2019-05-09send-keys also needs to insert key commands in the right order.Nicholas Marriott
2019-05-09delete five unused macrosIngo Schwarze
2019-05-09UTF-8 cleanup in the function pshift().Ingo Schwarze
Use the standard functions mbtowc(3), wcwidth(3), iscntrl(3) instead of bad functions like get_wchar(), utf_len(), is_wide_char(), is_composing_char(), is_combining_char(), control_char(). If only half of a double-width character is shifted off screen, do not inspect anything following it because that clearly remains on-screen. Improve and add comments. OK millert@
2019-05-09Change swap-window -d to be the other way round (stay with src window),Nicholas Marriott
so it works like swap-pane.
2019-05-09Add formats to show if pane is the marked pane and if any marked pane is set.Nicholas Marriott
2019-05-08allow switching to print stats since boot via 'b'.Ted Unangst
ok beck deraadt
2019-05-08remove sess argument from all functions that only used it for loggingSebastian Benoit
functions. ok deraadt@
2019-05-08remove sess argument from log functions. ok deraadt@Sebastian Benoit
2019-05-08Add a flag to redraw only the overlay, and remove the overlay on resize.Nicholas Marriott
2019-05-08Adjust how mouse targets are found so they always have a session, windowNicholas Marriott
and pane.
2019-05-08xr to sysupgradeTed Unangst
2019-05-07fix an obvious documentation bug: -# requires an argumentIngo Schwarze
2019-05-07Move around the display-panes identify code to make it a bit moreNicholas Marriott
generic and hide the display-panes specific bits into cmd-display-panes.c.
2019-05-07Adjust the same bit to adjust the selection for history-top andNicholas Marriott
history-bottom as for cursor-up and cursor-down. GitHub issue 1723.
2019-05-07Completely clean up UTF-8 handling in the file filename.c:Ingo Schwarze
Employ the usual form of an mbtowc(3) loop, eliminating two calls to the bad function step_char() and reducing the number of nested loops by one. This also removes the last caller of the bad function binary_char(), which is consequently deleted. While here, count ASCII C0 non-whitespace control characters as binary (except backspace and, with -R only, escape). OK millert@
2019-05-07UTF-8 cleanup of the function pappend():Ingo Schwarze
Use the standard function mbrtowc(3) to distinguish valid, incomplete, and invalid multibyte characters, getting rid of five calls to functions and macros that we want to phase out, and of one goto. Add comments. OK millert@.
2019-05-07Rename the ENVIRONMENT section which was squatting on the standardIngo Schwarze
manual page section and create a new ENVIRONMENT with the expected content. Move some information that was misplaced below the -u flag into that new section. Feedback and OK nicm@ jmc@ tb@
2019-05-07Treat keys in identify mode (display-panes) specially and handle themNicholas Marriott
immediately rather than queuing them (the command can block the queue which means they were not being seen until it finished which was too late). Reported by denis@ and solene@, ok solene@.
2019-05-07Do not use evbuffer_add_buffer because it is destructive and doesn'tNicholas Marriott
work in newer libevent.
2019-05-06Remove an example that doesn't do what the accompanying text says,Ingo Schwarze
with the current formatting. OK benno@ naddy@ The original suggestion to delete it rather than fix it came from deraadt@: we do not want to encourage use of --rsync-path because it is important that the openrsync client smoothly works with the Samba rsync server. If it doesn't, we should fix it and not fragment the ecosystem.
2019-05-03Fix order of insertion in load_cfg.Nicholas Marriott
2019-05-03Allow panes to be empty (no command), output can be piped to them withNicholas Marriott
split-window or display-message -I.
2019-05-03Insert after the right element on queue.Nicholas Marriott
2019-05-03Do not store the mouse position we calculate as the start of a drag backNicholas Marriott
into the mouse event that later code uses, it has been adjusted and they should use the original position. GitHub issue 1710.
2019-05-03avoid duplicate "bad argument" error message, also shortening the codeIngo Schwarze
2019-05-03Enter dangling .so links into the database, to avoid harassingIngo Schwarze
users of man(1) about running makewhatis(8), which won't help. Seeing the content of the broken .so request might even help users to figure out how to access the manual page they want. Fixing the last issue reported by Lorenzo Beretta <loreb at github> as part of https://github.com/void-linux/void-packages/issues/9868 .
2019-05-03Use the right index for user-keys.Nicholas Marriott
2019-05-03When processing unknown output options, prevent passing NULL to printf.anton
ok schwarze@
2019-05-03In fs_lookup(), use stat(2) rather than access(2) to check file existence.Ingo Schwarze
Some mildly broken real-world packages on some operating systems contain dangling symlinks in manual page directories: pestering the user to run makewhatis(8) makes no sense because that won't help. On the other hand, missing read permissions deserve ugly error messages and are unlikely to occur in practice anyway. Fixing an issue reported by Lorenzo Beretta <loreb at github> as part of https://github.com/void-linux/void-packages/issues/9868 .
2019-05-03Fix mouse positioning when the pane is not entirely visible.Nicholas Marriott
2019-05-03In man(1) mode with a specific section requested,Ingo Schwarze
try harder to find the best match. Use this order of preference: 1. The section in both the directory name and the file name matches exactly. 2. The section in the file name matches exactly. 3. The section in the directory name matches exactly. 4. Neither of them matches exactly. The latter can happen when mansearch() finds substring matches or when the second .Dt argument mismatches the dir and file names. Lorenzo Beretta <loreb at github> reported that this caused real problems on Void Linux, like "man 3 readline" showing readline(3m). See https://github.com/void-linux/void-packages/issues/9868 for details.
2019-05-03Correct ordering when adding after an existing item.Nicholas Marriott
2019-05-03Instead of processing keys all together, put them up on the clientNicholas Marriott
command queue so they are ordered correctly with the commands that they execute.
2019-05-03Fix reverse attribute in status line, GitHub issue 1709.Nicholas Marriott
2019-05-03In man(1) mode, when the first argument starts with a digit,Ingo Schwarze
optionally followed by a letter, and at least one more argument follows, interpret the first argument as a section name even when additional characters follow after the digit and letter. This is needed because many operating systems have section names consisting of a digit followed by more than one letter - for example Illumos, Solaris, Linux, even NetBSD. There is very little risk of regressions: in the whole corpus of manual pages on man.openbsd.org, there isn't a single manual page name starting with a digit. And even if programs like "0ad" or "4channels" had manual pages, "man 0ad" and "man -a cat 0ad" would still work, only "man -a 0ad cat" will fail with "man: No entry for cat in section 0ad of the manual." Fixing one of the issues reported by Lorenzo Beretta <loreb at github> as part of https://github.com/void-linux/void-packages/issues/9868 .
2019-05-03Use the correct (according to POSIX) format for left-justificationDarren Tucker
in snmprintf. bz#3002, patch from velemas at gmail.com, ok markus@.
2019-05-03Free channel objects on exit path. Patch from markus at blueflash.cc,Darren Tucker
ok deraadt
2019-05-03Free host on exit path. Patch from markus at blueflash.cc, ok djm@Darren Tucker