summaryrefslogtreecommitdiffstats
path: root/src/cmd
Commit message (Collapse)AuthorAgeFilesLines
...
* sam: use get9root instead of duplicating the logicSören Tempel2022-07-271-3/+1
|
* factotum: plug a memory leak in apoplufia2022-07-261-0/+1
|
* fontsrv: always compute new height and ascent for the font fileXiao-Yong Jin2022-07-261-9/+14
|
* devdraw/x11: fix modifier key handling for some XkbOptionsXiao-Yong Jin2022-07-261-12/+31
| | | | | | | | | | | | | Certain XkbOptions in X11 would change keysyms for modifier keys between the key press and key release. For example, under the XkbOptions "grp:shifts_toggle", though shift keys remain Shift_L/R when pressed, they become ISO_Group_Next/Prev when released. This behavior makes devdraw unable to detect the release event correctly and as a result mouse button 1 click always interpreted as button 3 event after a shift key is used.
* fossil: fix EOF detection when reading 9P messageFazlul Shahriar2022-07-261-3/+2
| | | | | | | | | When the 9P connection is closed, reads on the connection will keep returning 0. So, fossil ends up looping forever, trying to read a 9P message, consuming 100% CPU. The fix interprets 0 bytes read as EOF. Reproduce by killing the 9pserve process serving the fossil service, or by listening on tcp and using 9p(1).
* deroff: fix out-of-bounds access if runes above 0X80 are inside EQ clausesmmnmnnmnmm2022-07-261-1/+1
|
* trim button & modbutton imagesAndriy Symonovych2022-07-261-3/+1
|
* make sure border has correct heightAndriy Symonovych2022-07-261-1/+1
|
* src/cmd/fontsrv: pad subfile names to support correct file lengthKyle Nusbaum2022-07-261-4/+4
| | | | | | | | For fonts with subfiles that go beyond the xffff range, the font file size calculation is incorrect, since lines beyond that range have additional characters. This patch pads all of the ranges and subfont names with leading zeros in order to keep them all lines the same length and fixes the font file length calculation.
* acme: Don't move the mouse if button depressedBen Huntsman2022-07-261-1/+4
| | | | Fixes #19
* rc: remove dead code.Ori Bernstein2022-05-111-2/+0
| | | | kencc warns that this code is dead.
* src/cmd/acme: provide info on presense or absence of undo history (#528)Roger Peppe2021-10-192-2/+4
| | | | | | It's sometimes useful to know whether there's been editing activity in a window. This PR adds that information to the ctl file. Change-Id: I21a342ac636dd5c7701b3ed560e3526867329c2c
* cmd/auxstats: improve network device name matcher in LinuxNicola Girardi2021-10-181-1/+3
|
* cmd/auxstats: improve wireless interface name matcher in LinuxNic2021-10-171-1/+4
|
* mk: provide a mechanism to default to `rc`Dan Cross2021-10-051-0/+2
| | | | | | | | | | | For cross-compiling plan9 from Unix, provide a way to force `mk` to use `rc` instead of `sh` without setting `MKSHELL` in individual `mkfile`s. If the environment variable `FORCERCFORMK` is set, `mk` will default to using `rc`, not `sh`. Signed-off-by: Dan Cross <cross@gajendra.net>
* sam: fix spurious overwrite messageRuss Cox2021-09-301-1/+1
| | | | | | | | | | | Fixes: % sam -d -. w foo foo: (new file) #0 w foo ?warning: write might change good version of `foo'
* acme: fix extra print argsRuss Cox2021-09-281-2/+2
|
* 9term: Skip unnecessary ioctl call on AIX.Ben Huntsman2021-08-302-1/+2
|
* all: update for new MIT licenseRuss Cox2021-03-232-37/+18
| | | | | | | | | | | | | | | | | | | | | | | | On March 23, 2021, Nokia transferred the copyrights in the Plan 9 software to the Plan 9 Foundation, which relicensed them under the MIT license. This commit updates the Plan 9 from User Space license to reflect the new base license. The vast majority of the contributions beyond the base Plan 9 set were by me, many of them explicitly under an MIT license. Those are all under the new MIT license now as well. The port of mk to Unix was taken from Inferno via Vita Nuova and had been made available under GPL, but Vita Nuova has relicensed Inferno under the MIT license as well, to match the new Plan 9 license. Michael Teichgraber contributed src/lib9/zoneinfo.c explicitly under the Lucent Public License but has agreed to change the contribution to the MIT license now used in the rest of the distribution. There remain a few exceptions, most notably fonts. See the root LICENSE file for full details. The only mention of the Lucent Public License in the whole tree now is in the LICENSE file, explaining the history.
* mk: fix for Unix buildRuss Cox2021-03-231-2/+2
|
* acme: fix double-free in acmeerrorprocRuss Cox2021-03-231-4/+2
| | | | The receiver of cerr takes ownership of s.
* 9pfuse: support MacFUSE >=4Connor Taffe2021-01-311-1/+30
| | | | | | MacFUSE 4 removes support for passing device fd to the mount command. Adds support for the receiving the fd over a socket instead, and updates command paths and filesystem name.
* 9p: parse lines in rdwr commandDavid Arroyo2021-01-311-5/+9
| | | | | | | | Use bio(3) to read at most one line of input per iteration, even if there is more than one line available in the input buffer. This makes it easier to interact with line-oriented ctl files like that of factotum(4) from shell scripts, without the need to control when and how much data is flushed to a pipe.
* htmlroff: fix array boundsXiao-Yong Jin2021-01-291-2/+2
|
* eqn: enlarge errbuf to account for large tokensXiao-Yong Jin2021-01-292-2/+2
|
* xd: fix swizz8 loop countingXiao-Yong Jin2021-01-291-1/+1
|
* sam: avoid out-of-bounds read in rtermRuss Cox2021-01-141-2/+2
| | | | | | | | | | | Usually r->nused < r->nalloc and the read is in bounds. But it could in theory be right on the line and reading past the end of the allocation. Make it safe but preserve as much of the old semantics as possible. This use of rterm appears to be only for optimization purposes so the result does not matter for correctness.
* sam: remove backward ?:Russ Cox2021-01-141-1/+1
| | | | The exit code here is ignored anyway.
* rc: do not exit on EINTR from readRuss Cox2021-01-141-1/+10
| | | | This happens if lldb attaches to rc.
* auxstats: do not postnote 0Russ Cox2021-01-141-1/+2
|
* acme, sam, samterm: remove weird switch usageRuss Cox2021-01-054-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | For whatever reason all three of these programs contain switches like: switch(x) { case 1: if(cond) case 2: f(); } Like Duff's device, this is legal C but more obscure than it really needs to be. This commit assumes those are intended as written and simply writes them more clearly. I did consider that maybe they are mistakes, but in the case of sam/regexp.c, my rewrite in this commit matches the acme/regx.c that has been in plan9port since I added acme in 2003. (I didn't bother to dig up the old Plan 9 releases.) Assuming acme/regx.c has been correct for the past two decades, this commit should be correct too.
* sam: rm dregsRuss Cox2021-01-054-293/+0
|
* stats: add threadmaybackgroundRuss Cox2021-01-055-40/+49
|
* acme: allow @ in file namesRuss Cox2020-12-301-1/+1
| | | | For upspin and other tools that put email addresses in names.
* 9term: add threadmaybackgroundRuss Cox2020-12-301-0/+6
|
* tcolors: add threadmaybackgroundRuss Cox2020-12-301-0/+6
|
* 9term: use openpty on NetBSDNicola Girardi2020-12-301-0/+16
| | | | Fixes #376.
* devdraw: add /usr/X11R7 for NetBSDRuss Cox2020-12-301-0/+2
| | | | Fixes #362.
* libthread: add threadmaybackgroundRuss Cox2020-12-3012-0/+72
| | | | | | | | Programs that want to background themselves now need to define threadmaybackground returning 1. This avoids a confusing (to people and debuggers) extra parent process for all the threaded programs that will never want to background themselves.
* time: print 1s of millisecondsRuss Cox2020-12-151-3/+3
|
* all: a few more #define tricks for AIXRuss Cox2020-08-151-0/+3
| | | | | | This should make the AIX build finally work. Fixes #400.
* fontsrv: fix handling of colored glyphs (emoji)Russ Cox2020-08-151-5/+17
| | | | | | | Drawing as white on black to produce a mask only works if the white on black is the inversion of black on white. Emoji that force use of specific colors don't respect that. Draw black on white and invert to mask separately.
* touch: fix for OpenBSD.James Cook2020-08-081-1/+1
| | | | | | | | This fixes https://github.com/9fans/plan9port/issues/436 This doesn't necessarily address the underlying issue: calling p9create with mode = OREAD should probably be allowed, but currently doesn't work on OpenBSD.
* devdraw, libdraw: fix memory leaks by freeing getns() malloced string (#431)Igor Böhm2020-07-221-2/+6
|
* acme: add font control messageRuss Cox2020-07-181-0/+18
|
* src/cmd: rm dformatRuss Cox2020-06-221-108/+0
| | | | | | | | | | | Unclear why it is here (wkj added it long ago). It has never been installed into $PLAN9/bin, so it's doubtful that anyone has ever used it. Arnold Robbins has an alternate version at https://github.com/arnoldrobbins/dformat. Fixes #421.
* fontsrv: fix compilation on X11 (#420)Gregor Best2020-06-041-0/+1
|
* ed: handle Unicode beyond the BMP correctly in list mode.sean2020-05-291-9/+32
| | | | | | | | | List mode was constrained to the BMP. This change introduces the following new list mode convention, using Go string literal syntax: Non-printing ASCII characters display as \xhh. Non-ASCII characters in the BMP display as \uhhhh. Characters beyond the BMP display as \Uhhhhhhhh.
* devdraw: accept 5- and 6-byte Unicode hex valuesRuss Cox2020-05-291-8/+31
| | | | | | Alt X 1234 for U+1234 Alt X X 12345 for U+12345 Alt X X X 103456 for U+103456.
* fontsrv: scale f->originy to match f->height on x11dzklaim2020-05-291-1/+1
| | | Co-authored-by: dzklaim <smmoth.rp@gmail.com>