summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2012-06-08From an email to tech@:lum
Bit difficult to explain this one. If you have a file open that is 3 or 4 times longer than the length of the viewable window and are at the bottom of the buffer then scroll up to the top using M-v, your cursor should remain at the bottom left of the window once you reach the top of the buffer. mg behaves like this since the last couple of scrolling diffs I've committed. However, and as an example, if you start with the window viewing the top of a buffer and press C-v twice, then C-p four times then M-v twice to scroll back to the top, you will find your cursor is NOT at the bottom left of the window. tut tut. This diff makes the cursor stay at the bottom left, like emacs.
2012-06-08Add checks for command line input (or the TOP environment var)lum
ommitted from 1.78. Now a $ top -U -username -U username command will behave the same as interactive mode. ok brynet@
2012-06-08Fix bug where line-number counter would go a bit hay-wire when paginglum
up with only 1 line of the buffer visible.
2012-06-07Add some cscope support to mg. From Sunil Nimmagadda. Due to somelum
structural limitations in mg, mg doesn't behave exactly the same as emacs cscope (see the README) but is still very usable. man page bits reviewed by jmc@, otherwise tested and reviewed by myself.
2012-06-06tweak previous;Jason McIntyre
2012-06-05Add support for hiding a user's processes in top.Bryan Steele
feedback & ok lum@
2012-06-04Open theo mode without splitting window in 2.lum
2012-06-04mergeMarc Espie
2012-06-03Close a preceding implicit block before opening an explicit block.Ingo Schwarze
To allow doing so, no longer abuse rew_scope() to unwind explicit blocks; explicitly call man_unscope() instead. Fixing the indentation of slapd.conf(5) in the OpenLDAP port; thanks to guenther@ for the report.
2012-06-02In groff, trying to redefine standard man(7) macros before .TH has no effect;Ingo Schwarze
after .TH, it works. Trying to redefine standard mdoc(7) macros before .Dd works when calling groff with the -mdoc command line option, but does not when calling groff with -mandoc; after .Dd, it always works. Arguably, one might call that buggy behaviour in groff, but it is very unlikely that anybody will change groff in this respect (certainly, i'm not volunteering). So let's be bug-compatible. This fixes the vertical spacing in sox(1).
2012-06-02Minimal implementation of .EX and .EE for GNU compatibility.Ingo Schwarze
Do not use this, it is not portable and only defined in esr's man-ext. For example, sox(1) wants these macros.
2012-06-01While scrolling, show a message and beep when you reach either end oflum
a buffer.
2012-06-01update currency exchange rates;Jason McIntyre
2012-06-01fix memory leak when mux socket creation fails; bz#2002 from bert.wesargDamien Miller
AT googlemail.com
2012-06-01correct types of port numbers (integers, not strings); bz#2004 fromDamien Miller
bert.wesarg AT googlemail.com
2012-05-31Currently, mg's cursor jumps from top to bottom of the screen as youlum
scroll upwards, make the cursor behave like emacs and stay at bottom of window. Tested by mikeb@.
2012-05-31Fix blank line handling in .if.Ingo Schwarze
In particular, two cases were wrong: - single-line .if with trailing whitespace gave no blank line - multiline .if with \{ but without \{\ gave no blank line While here, simplify roff_cond() by partially reordering the code.
2012-05-30Do not use stderr for log file and don't call log_close when not needed.Nicholas Marriott
2012-05-30Replace a loop with a memset, from Michael W Bombardieri. White hereNicholas Marriott
also remove an unnecessary assignment pointed out by millert@. ok millert
2012-05-30Reverse part of v1.131. The end of buffer can still be reached so Ilum
shouldn't have taken out the second check. Hopefully fix unpredicable scrolling behaviour seen by mikeb@.
2012-05-29Add pane title to choose-window template and use the right index for theNicholas Marriott
pane, from Romain Francoise.
2012-05-29Use RB_FOREACH_SAFE as winlinks are being removed, from Chris Johnsen.Nicholas Marriott
2012-05-29Use session from -t for killw -a, from Chris Johnsen.Nicholas Marriott
2012-05-29There is no other reference to SYSCLEANUP in the src tree. Remove.lum
2012-05-29There is no need to use an *init* buffer if we go back and updatelum
opened file(s)/*scratch* with default modes after they are open. Also, pass buffer (bp) to edinit(), this fixes theo mode from the command line (mg -f theo).
2012-05-29Increase the size of some window variables from char to int. This difflum
improves mg on screens (xterms) with lots of lines. Testing done by naddy@ and myself.
2012-05-28While i already got my fingers dirty on mandoc_escape(),Ingo Schwarze
profit of the occasion to pull out some spaghetti, that is, three confusing variables and fourteen pointless assignments among them; instead, always operate on the official pointers **start, **end, and *sz, each of which conveys an obvious meaning. No functional change intended, and the new tests confirm that everything still (err...) "works", as far as that word can be applied to the kind of roff(7) mock-up code i'm polishing here.
2012-05-28Make recursive parsing of roff(7) escapes actually work in the general case,Ingo Schwarze
in particular when the inner escapes are preceded or followed by other terms. While doing so, remove lots of bogus code that was trying to make pointless distinctions between numeric and non-numeric escape sequences, while both actually share the same syntax and we ignore the semantics anyway. This prevents some of the strings defined in the pod2man(1) preamble from producing garbage output, in particular in scandinavian words. Of course, proper rendering of scandinavian national characters cannot be expected even with these fixes.
2012-05-28Implement the roff \z escape sequence, intended to output the nextIngo Schwarze
character without advancing the cursor position; implement it to simply skip the next character, as it will usually be overwritten. With this change, the pod2man(1) preamble user-defined string \*:, intended to render as a diaeresis or umlaut diacritic above the preceding character, is rendered in a slightly less ugly way, though still not correctly. It was rendered as "z.." and is now rendered as ".". Given that the definition of \*: uses elaborate manual \h positioning, there is little chance for mandoc(1) to ever render it correctly, but at least we can refrain from printing out a spurious "z", and we can make the \z do something semi-reasonable for easier cases.
2012-05-28Use default-shell not _PATH_BSHELL to spawn commands, pointed out byNicholas Marriott
Dennis G?nnewig and Thomas Adam.
2012-05-28Trim a double space from template.Nicholas Marriott
2012-05-28Strip layout from choose-windows again (leave in list-windows),Nicholas Marriott
suggested by Romain Francoise, diff from Thomas Adam.
2012-05-27Fix client templates, from Romain Francoise.Nicholas Marriott
2012-05-27Fix the vertical spacing around tbl(7) instances in man(7).Ingo Schwarze
Groff forces the document author to manually request sufficient spacing after .TE - that is, at least .sp 1v after a table with the "box" option and at least .sp 2v after a table with the "doublebox" option - or else it clobbers the box. I consider that insane, so i'm not imitating groff in that respect. Instead, i add at least as much vertical space as groff, or more where required to avoid clobbering the box. Consequently, output will be identical for input that looks sane with groff, and mandoc will make output look better for input that looks bad with groff. As a side effect, having identical output for portable input makes it possible to set up the first regression tests for tbl(7).
2012-05-26Correct width of horizontal spans; relevant in case of centered orIngo Schwarze
flush right text, for boxes, and when more columns follow the span. Issue found by sthen@ in the net/arp-scan(1) port manual.
2012-05-26Do not handle vertical lines as additional tbl(7) columns,Ingo Schwarze
instead save their properties with the following column. This simplifies layout parsing and saves a lot of code related to column handling. At output time, print all white space and vertical lines separating columns before printing the following column, and none after printing the preceding column, considerably simplifying white space handling and width calculations. No functional change, but it saves 150 lines of code, and it allows the next patch to tbl_term.c, tbl_literal().
2012-05-25full-stops mainly.lum
2012-05-25Be consistent on how we describe key-strokes: UP-low (c-H -> C-h)lum
2012-05-25Move the windows section in the tutorial to a more sensible placelum
(next to buffers) and move the mg history into the README file which seems a more sensible place as well.
2012-05-25When paging down a buffer (C-v) stop earlier before having the lastlum
line as the top line in the window. This emulates emacs behaviour.
2012-05-25grr... another C99-only assignment.Marc Espie
2012-05-25Simplify logging and just fprintf(stderr, ...) for early errors.Nicholas Marriott
2012-05-25Allow searching (C-s or C-r) to wrap around the ends of a buffer.lum
Even if the search string is located at the beginning or end of a buffer.
2012-05-25Prepare mg buffers before startup file is parsed so multiple files canlum
be opened via the startup file. Having find-file, insert-file etc.. in the startup file now work as you would expect. Reviewed by Sunil Nimmagadda.
2012-05-25Remove static FILE pointer used for handling files in fileio.c. Passlum
by reference instead. This allows the mg startup file to open other files without unexpected things happening. Discussed with Sunil Nimmagadda.
2012-05-24Support -Ios='OpenBSD 5.1' to override uname(3) as the source of theIngo Schwarze
default value for the mdoc(7) .Os macro. Needed for man.cgi on the OpenBSD website. Problem with man.cgi first noticed by deraadt@; beck@ and deraadt@ agree with the way to solve the issue.
2012-05-23Make the "default" string a valid device name that has the same effectAlexandre Ratchov
as NULL has. This will (hopefully) simplify ports where the user passes the device string.
2012-05-23Use a predefined structure for not-space cells used to set attributes.Nicholas Marriott
2012-05-23Fix duplicate mixer knob namesAlexandre Ratchov
2012-05-23Fix wrong arithmetics in channel mapping causing crashes if all ofAlexandre Ratchov
the recorded or played channels don't exist. With help from Remco <remco at d-compu.dyndns.org>, thanks!