summaryrefslogtreecommitdiffstats
path: root/src/cmd/9term/win.c
Commit message (Collapse)AuthorAgeFilesLines
* Trivial changes: whitespace and modes.Dan Cross2020-01-101-12/+12
| | | | | | | | | Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
* 9term: Add missing parentheses, preventing buffer overflow.Ray Lai2017-04-081-1/+1
| | | | | | | | | | | | | | (el-sr) is the string length and (sizeof wdir - strlen(name) - 20) is the buffer size. When the string length is greater than the buffer size, the beginning of the string is supposed to be trimmed to fit in the buffer size. Unfortunately a pair of parentheses were missing, pointing sr outside the buffer, and the for loop below then reads outside the buffer. For certain binary data printed in a window, it causes a segfault. Change-Id: Iffeaa348260ee2a5a36d9577308fb8d1c1688d05 Reviewed-on: https://plan9port-review.googlesource.com/1540 Reviewed-by: Gleydson Soares <gsoares@gmail.com>
* win: local \r cancellationRuss Cox2015-11-101-1/+14
| | | | | | Change-Id: I4becec052af58c5a52b777004867eb23023b9403 Reviewed-on: https://plan9port-review.googlesource.com/1391 Reviewed-by: Russ Cox <rsc@google.com>
* 9term, win: better \r handling (thanks, git)Russ Cox2015-11-101-0/+30
| | | | | | Change-Id: I75563b911b54d8957d2d004b9c27d0a2f8f043b3 Reviewed-on: https://plan9port-review.googlesource.com/1390 Reviewed-by: Russ Cox <rsc@google.com>
* 9term: set TERM=dumb instead of TERM=9termRuss Cox2013-08-061-0/+1
| | | | | | | | | | | | | | | | Everyone seems to assume that TERM != dumb implies ANSI escape codes are okay. In fact, many people assume that unconditionally, but it is easier to argue back about TERM=dumb than TERM=9term. This applies to acme win too, because they share the code. Set termprog=9term or termprog=win for clients who need to know. R=rsc CC=r https://codereview.appspot.com/12532043
* 9term: hold mode back doorRuss Cox2011-10-111-13/+15
| | | | | R=rsc http://codereview.appspot.com/5248056
* win: hide not just passwords but also passphrasesMathieu Lonjaret2011-08-261-1/+1
| | | | | | R=rsc, nicolesimons1986 CC=plan9port.codebot http://codereview.appspot.com/4957042
* 9term, acme: autoscrollRuss Cox2011-04-271-9/+1
| | | | | | | | | | | | | | | | Ignore scroll/noscroll window setting. Instead, scroll when the write begins in or immediately after the displayed window content. In the new scrolling discipline, executing "Noscroll" is replaced by typing Page Up or using the mouse to scroll higher in the buffer, and executing "Scroll" is replaced by typing End or using the mouse to scroll to the bottom of the buffer. R=r, r2 http://codereview.appspot.com/4433060
* win: another attempt at input modesRuss Cox2010-10-131-5/+28
| | | | | R=rsc http://codereview.appspot.com/2476042
* win: add cook/nocookRuss Cox2010-09-101-5/+14
| | | | | R=rsc http://codereview.appspot.com/2162042
* 9term, win: better echo cancellationRuss Cox2010-09-031-9/+49
| | | | | | | | Also just drop \r from output. It's a losing battle to keep turning it off. R=rsc http://codereview.appspot.com/2128042
* win: scrollEoghan Sherry2010-03-191-0/+3
| | | | | | R=rsc CC=codebot http://codereview.appspot.com/643041
* win fixesFazlul Shahriar2010-01-051-6/+26
| | | | | | | | | - don't exit from a "child" note unless rc exited (code copied from 9term.c) - ignore writes to the tag; specifically " Send Noscroll" at startup. R=rsc CC=codebot http://codereview.appspot.com/181115
* win: better SIGPIPE handlingRuss Cox2009-01-061-10/+9
|
* win: another attempt at DELRuss Cox2008-11-131-1/+3
|
* win: handle DEL internally so that it always worksRuss Cox2008-11-131-0/+6
|
* win: implement Scroll and NoscrollRuss Cox2008-11-131-1/+13
|
* correct dump string (Fazlul Shahriar)rsc2007-04-171-1/+4
|
* Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc2006-04-011-2/+2
|
* quiet Del in winrsc2006-03-271-4/+1
|
* more robust winrsc2005-03-051-4/+18
|
* add -rsc2005-01-301-0/+1
|
* handle sysnames in labelsrsc2005-01-301-5/+16
|
* exit on eofrsc2005-01-051-3/+1
|
* change to use new library.rsc2005-01-041-21/+21
|
* make work with new thread libraryrsc2004-12-261-4/+20
|
* Little fixes.rsc2004-04-301-6/+12
|
* always be honest about tabstop.rsc2004-04-251-0/+2
|
* Fix window size in case we inherited a bad one.rsc2004-04-231-0/+1
|
* clean up when finished.rsc2004-04-191-0/+2
|
* 9term manages to turn off echo at the right times under SunOS ?rsc2004-04-151-1/+1
|
* grey out 9term when it loses focus.rsc2004-03-301-1/+1
|
* SunOS can rot in hell.rsc2004-03-261-2/+2
|
* Today's changes.rsc2004-03-251-0/+693
More changes.