aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Version 5 is released.HEADpw-5masterKaz Kylheku2023-06-093-5/+14
|
* Feature: highlight numbers of triggering lines.Kaz Kylheku2023-06-092-10/+49
| | | | | | | When a triggered snapshot is recorded, a flag is set in all the lines which matched the trigger patterns. Whenever highlighting is enabled, the line numbers of those lines are shown in inverse.
* Feature: implement pass-through mode.Kaz Kylheku2023-06-082-21/+82
| | | | | | | | | | | | | | | | | | | | In pass-through mode, pw can be used in the middle of a pipeline, or redirected to a file or device. Then instead of discarding data, it copies from standard input to standard output. pw's implementation assumes that standard output is the terminal, and uses some functions that operate implicitly on standard output. To avoid changing all that code, dup2 calls are used to rearrange the file descriptors. The tty descriptor opened from /dev/tty is installed as standard output, and the original standard output (the device, file or pipe to which data is to be passed through) is tied to a dedicated stream held in the local variable out. Whenever out is not null, bytes are to be sent to it rather than discarded. In pass-through mode, though, standard output is not the terminal.
* Version 4 is released.pw-4Kaz Kylheku2023-06-084-7/+13
|
* Makefile: use shasum tool on MacOS.Kaz Kylheku2023-06-081-1/+2
|
* MacOS port.Kaz Kylheku2023-06-084-2/+92
| | | | | | | - The poll function is broken on Darwin (won't handle devices). We make a macpoll out of select and use that. - Makefile adds _D_DARWIN_C_SOURCE to CFLAGS.
* If there is no SIGWINCH, don't define handler.Kaz Kylheku2023-06-081-0/+2
|
* Version 3 is released.pw-3Kaz Kylheku2023-03-105-11/+16
|
* install: use -D to create needed directories.Kaz Kylheku2023-03-081-2/+2
| | | | | | For instance, the user might not have a /usr/local/man/man5, in which case install behaves like cp, treating man5 as the name of the file to create.
* README: longer description; change videos.Kaz Kylheku2023-02-241-6/+14
| | | | Let's use the voiced /proc/interrupts video as the main demo.
* Add LICENSE file.Kaz Kylheku2022-07-042-0/+31
|
* Fix some typos in README and manual page.Paul A. Patience2022-07-042-3/+3
|
* Add missing semicolon in Makefile install target.Paul A. Patience2022-07-041-1/+1
|
* bugfix: hokey long interval calculation.Kaz Kylheku2022-06-161-1/+3
| | | | | | | | | The intent is to have a clock which measures milliseconds and wraps around from 1000000000 (billion) back to zero, fitting into 32 bits. The now - lastttime calculation must be done modulo a billion. The difference could be negative because of the wrap; to ensure we get a positive residue, we add a billion.
* Version 2 is released.pw-2Kaz Kylheku2022-06-153-5/+5
|
* Typo in help text.Kaz Kylheku2022-06-151-1/+1
|
* Fix printf warning.Kaz Kylheku2022-06-151-1/+1
|
* Regression: command histories conflated.Kaz Kylheku2022-06-152-5/+10
|
* Start release notes, as a man page.Kaz Kylheku2022-05-163-5/+59
|
* Change :s to :sa.Kaz Kylheku2022-05-162-4/+21
|
* Unnecessary break after goto.Kaz Kylheku2022-05-161-1/+0
|
* Regression: empty : command is no-op.Kaz Kylheku2022-05-161-3/+2
|
* Version 1 is released.pw-1Kaz Kylheku2022-05-163-6/+18
|
* Bugfix: save correct frequency and count variables.Kaz Kylheku2022-05-151-4/+4
|
* Fix regression: :E and :B commands not recognized.Kaz Kylheku2022-05-152-3/+8
|
* Remove superfluous string truncation.Kaz Kylheku2022-05-141-2/+0
| | | | drawstatus clips to the number of columns.
* Tighten the command syntax.Kaz Kylheku2022-05-132-14/+40
| | | | | | | | | | Commands are now separated from their argument by exactly one space, which may only be omitted for an argument which does not begin with a letter. Thus :gfoo no longer pushes a regular expression foo onto the grep stack, but is the unrecognized command gfoo. The command :g foo specifies the regular expression " foo".
* Remove stray clrline call from execute.Kaz Kylheku2022-05-131-2/+0
|
* When cmdbuf used for result, set cursor position to EOL.Kaz Kylheku2022-05-131-8/+10
|
* Much better editing.Kaz Kylheku2022-05-133-25/+109
|
* bugfix: snapshots not taken in background.Kaz Kylheku2022-05-131-1/+1
|
* New feature: highlight differences between snapshots.Kaz Kylheku2022-05-132-13/+104
|
* Preparation for diff-showing feature.Kaz Kylheku2022-05-131-30/+44
|
* drawline: move integer index pos, not line pointer.Kaz Kylheku2022-05-131-7/+7
|
* Expand tabs to spaces, with configurable tab size.Kaz Kylheku2022-05-132-20/+64
|
* Bugfix: getln doesn't substitute control chars.Kaz Kylheku2022-05-131-1/+1
| | | | | | The getln function is used for reading configuration; we don't want control characters in the configuration to be replaced with printable characters.
* :p command resets any parameters not specified.Kaz Kylheku2022-05-112-2/+5
|
* Resizing: fix leaks, use-after-free.Kaz Kylheku2022-05-091-14/+15
|
* Add optional freeing code for leak debugging.Kaz Kylheku2022-05-091-0/+18
|
* Use resizebuf instead of realloc.Kaz Kylheku2022-05-091-1/+1
|
* Avoid unnecessary realloc in resizebuf.Kaz Kylheku2022-05-091-4/+5
|
* Use grclean instead of regfree and dsdrop.Kaz Kylheku2022-05-091-3/+1
|
* New :p command; :s saves display params too.Kaz Kylheku2022-05-082-6/+23
|
* Move decoding of -p params into function.Kaz Kylheku2022-05-081-37/+46
|
* Ctrl-G shows a few flags also, and -p restores them.Kaz Kylheku2022-05-082-9/+30
|
* New :s option to save the state.Kaz Kylheku2022-05-082-0/+78
|
* Implement -f option: commands from file.Kaz Kylheku2022-05-082-2/+62
|
* Move batch command execution into function.Kaz Kylheku2022-05-081-14/+23
|
* New video: split screen demo.Kaz Kylheku2022-05-071-0/+4
|
* New -e option to execute commands.Kaz Kylheku2022-05-072-6/+52
| | | | Now there is a way to set up triggers prior to execution.