summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2009-10-21"usage:" is lowercase; spacing.Igor Sobrado
2009-10-21sort options; synchronize argument names with synopsis;Igor Sobrado
split the usage's output in two lines to fit on standard displays. ok millert@
2009-10-21Tweak descriptions for up/down pane to be clearer.Nicholas Marriott
2009-10-21Don't redraw the scroll region on linefeed/reverse index unless it is necessaryNicholas Marriott
(the cursor is at the bottom/top). Should fix slow cursor movement when using vi in a pane spotted by pirofti@.
2009-10-21Some terminals don't correctly clear their let's-wrap flag after changing theNicholas Marriott
scroll region (which moves the cursor to 0,0). This means that if the cursor was at the edge of the screen, any further output after scroll region change incorrectly causes a line wrap. Add a workaround to move the cursor to position 0 if it is at the screen edge before changing scroll region.
2009-10-21Getting the read and write ends of the pipe the right way round is usuallyNicholas Marriott
recommended. DOH.
2009-10-21when freeing buffers (i.e. when sio_stop() is called on client side),Alexandre Ratchov
clear the ``tickpending'' flag to avoid sending ticks corresponding to non existent buffers (which in turn confuses clients). found and analysed by jakemsr@
2009-10-20%zu not %u, doh.Nicholas Marriott
2009-10-20Sort out stdout before stdin/stderr in case the stdout side of the pipe got oneNicholas Marriott
of their fds.
2009-10-20Correctly nuke the EOL $ marker when scrolling, reported by martynas@, thanks.Nicholas Marriott
2009-10-20Try to reduce the UTF-8 mess.Nicholas Marriott
Get rid of passing around u_char[4]s and define a struct utf8_data which has character data, size (sequence length) and width. Move UTF-8 character collection into two functions utf8_open/utf8_append in utf8.c which fill in this struct and use these functions from input.c and the various functions in screen-write.c. Space for rather more data than is necessary for one UTF-8 sequence is in the utf8_data struct because screen_write_copy is still nasty and needs to reinject the character (after combining) into screen_write_cell.
2009-10-20UTF-8 combined character fixes.Nicholas Marriott
Thai can have treble combinations (1 x width=1 then 2 x width=0) so bump the UTF-8 cell data size to 9 and alter the code to allow this. Also break off the combining code into a separate function, handle any further combining beyond the buffer size by replacing the character with _s, and when redrawing the UTF-8 character don't assume the first part has just been printed, redraw the entire line.
2009-10-20Move the check for whether to force a line wrapper lower down into the tty codeNicholas Marriott
where it has access to the tty width, which is what should have been checked.
2009-10-20Nuke stray blank line.Nicholas Marriott
2009-10-20sync to 1.9.7: use .In instead of .Fd #includeIngo Schwarze
2009-10-20ex(1) and vi(1) are different editors. diff based on the originalIgor Sobrado
printed edition of the User's Reference Manual from USENIX and O'Reilly. 4.4BSD had exactly this, that is much more accurate than our current description (while here, Jason observed that both FreeBSD and NetBSD do the same). tweaked by jmc@ ok jmc@
2009-10-19sync to 1.9.7: consolidate some -man -Tascii functions,Ingo Schwarze
and use a static buffer for the footer
2009-10-19sync to 1.9.7: kristaps@ renamed part of the DECL_ARGS :-(Ingo Schwarze
intricately mixed with three minor .Bd fixes
2009-10-19sync to 1.9.7: the same function was declared in two different headers;Ingo Schwarze
spotted by Ulrich Spoerlein, uqs at spoerlein dot net
2009-10-19sync to 1.9.7: avoid using the same identifier for a static functionIngo Schwarze
and for a local variable in another function in the same compilation unit; suggested by Ulrich Spoerlein, uqs at spoerlein dot net
2009-10-19sync to 1.9.7: compatibility fix; from joerg at netbsd dot orgIngo Schwarze
2009-10-19sync to 1.9.7: typo; from Alan Bueno, alan dot bsd at gmail dot comIngo Schwarze
2009-10-19sync to 1.9.6: minor fixes:Ingo Schwarze
* avoid blank character before the closing ">" of .In * .Bt can not have children
2009-10-19sync to 1.9.6: multiple improvements to references (.Rs)Ingo Schwarze
* validate and order .Rs child nodes * underline book title (.%B) and issuer (.%I) * enclose title of article (.%T) in quotes * avoid calling mdoc_verr directly, use a proper error code instead
2009-10-19sync to 1.9.6: do not die from .Bd -literal -offset w/o arg (and similar)Ingo Schwarze
Actually, our ancient groff behaves slightly differently than this fix, but not to die is already an improvement. Needs a closer look later.
2009-10-19sync to 1.9.6: two newline fixes:Ingo Schwarze
* newline before .Rs only below SEE ALSO * newline after .Lb only below LIBRARY
2009-10-19Stop updating the screen when not in output mode, stops copy mode gettingNicholas Marriott
confused.
2009-10-19sync to 1.9.6: u_char lives in <sys/types.h>Ingo Schwarze
noticed by uqs at spoerlein dot net on FreeBSD, where <stdlib.h> does not include <sys/types.h>
2009-10-19sync to 1.9.6: here is the sync of special characters to new groffIngo Schwarze
as mentioned in the preceding manual commit (oops)
2009-10-19sync to 1.9.6: rework the documentation for special characters andIngo Schwarze
predefined strings, including the recent sync to new groff
2009-10-19sync to 1.9.6: fix segfault in .Bl -columnIngo Schwarze
2009-10-19sync to 1.9.5: partial rewrite of special character and predefined stringIngo Schwarze
tables and the supporting infrastructure, mostly in preparation for HTML output support
2009-10-18sync to 1.9.5: integrate closedelim() and opendelim() into term_word(),Ingo Schwarze
removing unnecessary extra functions
2009-10-17sort flags.Igor Sobrado
2009-10-17Add version number to aucat protocol. It's not used yet,Alexandre Ratchov
but later, it will permit aucat to reject connections from clients statically linked to a unsupported version of libsndio. idea from kittenis, otto and sthen
2009-10-17Always move the cursor position on !xenl terminals, since there is no invisibleNicholas Marriott
last cursor position. Also nuke an unused variable.
2009-10-17Don't print wide characters at screen width - 1. Matches uterm behaviour andNicholas Marriott
is probably a better idea anyway.
2009-10-17Instead of having a complicated check to see if the cursor is in the lastNicholas Marriott
position to avoid an explicit wrap, actually move it there. Some UTF-8 fixes to come.
2009-10-16When checking whether the region will scroll and the cursor position is thusNicholas Marriott
unsuitable for using CUD/CUU, check the current cursor position not the target position.
2009-10-16man page bits for mail; it was ok millert@Martynas Venckus
2009-10-16factor psummary code of ftp.c to be generic, for all types ofMartynas Venckus
transfers. makes output between all transfers consistent; handles SIGINFO for non-ftp transfers too; shows statistics at the end: 7303400 bytes received in 96.00 seconds (74.29 KB/s) tweak / ok halex@, sthen@.
2009-10-15ident(1) does not require arguments; while here, note that thisIgor Sobrado
program uses the standard input, not the standard output, when no filenames are provided. ok xsa@
2009-10-15sort flags.Igor Sobrado
2009-10-15arguments to -C, -c, -S and -s are optional.Igor Sobrado
ok jmc@
2009-10-15The pane pty name isn't useful for anything so show the pane number instead.Nicholas Marriott
2009-10-14cmd_find_client shouldn't die when there is an empty slot in the clientsNicholas Marriott
array. DOH.
2009-10-14sort flags.Igor Sobrado
2009-10-14Call err() instead of crashing if hid_start_parse() fails. Don'tPhilip Guenthe
leak FILEs or memory when parsing the conf fails. Don't segv on the first action when told to ignore unknown lines and there are lines to ignore. ok deraadt@ miod@
2009-10-14add a missing flag to usage; while here, slightly improve spacingIgor Sobrado
in source code (being consistent with the style used in the rest of this file) and write "usage:" using lower case letters only, as usual in the BSD operating systems. ok ratchov@
2009-10-14whitespace; from deraadt@Stuart Henderson