aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9term/win.c
AgeCommit message (Collapse)AuthorFilesLines
2020-01-10Trivial changes: whitespace and modes.Dan Cross1-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>
2017-04-089term: Add missing parentheses, preventing buffer overflow.Ray Lai1-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>
2015-11-10win: local \r cancellationRuss Cox1-1/+14
Change-Id: I4becec052af58c5a52b777004867eb23023b9403 Reviewed-on: https://plan9port-review.googlesource.com/1391 Reviewed-by: Russ Cox <rsc@google.com>
2015-11-109term, win: better \r handling (thanks, git)Russ Cox1-0/+30
Change-Id: I75563b911b54d8957d2d004b9c27d0a2f8f043b3 Reviewed-on: https://plan9port-review.googlesource.com/1390 Reviewed-by: Russ Cox <rsc@google.com>
2013-08-069term: set TERM=dumb instead of TERM=9termRuss Cox1-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
2011-10-119term: hold mode back doorRuss Cox1-13/+15
R=rsc http://codereview.appspot.com/5248056
2011-08-26win: hide not just passwords but also passphrasesMathieu Lonjaret1-1/+1
R=rsc, nicolesimons1986 CC=plan9port.codebot http://codereview.appspot.com/4957042
2011-04-279term, acme: autoscrollRuss Cox1-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
2010-10-13win: another attempt at input modesRuss Cox1-5/+28
R=rsc http://codereview.appspot.com/2476042
2010-09-10win: add cook/nocookRuss Cox1-5/+14
R=rsc http://codereview.appspot.com/2162042
2010-09-039term, win: better echo cancellationRuss Cox1-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
2010-03-19win: scrollEoghan Sherry1-0/+3
R=rsc CC=codebot http://codereview.appspot.com/643041
2010-01-05win fixesFazlul Shahriar1-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
2009-01-06win: better SIGPIPE handlingRuss Cox1-10/+9
2008-11-13win: another attempt at DELRuss Cox1-1/+3
2008-11-13win: handle DEL internally so that it always worksRuss Cox1-0/+6
2008-11-13win: implement Scroll and NoscrollRuss Cox1-1/+13
2007-04-17correct dump string (Fazlul Shahriar)rsc1-1/+4
2006-04-01Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc1-2/+2
2006-03-27quiet Del in winrsc1-4/+1
2005-03-05more robust winrsc1-4/+18
2005-01-30add -rsc1-0/+1
2005-01-30handle sysnames in labelsrsc1-5/+16
2005-01-05exit on eofrsc1-3/+1
2005-01-04change to use new library.rsc1-21/+21
2004-12-26make work with new thread libraryrsc1-4/+20
2004-04-30Little fixes.rsc1-6/+12
2004-04-25always be honest about tabstop.rsc1-0/+2
2004-04-23Fix window size in case we inherited a bad one.rsc1-0/+1
2004-04-19clean up when finished.rsc1-0/+2
2004-04-159term manages to turn off echo at the right times under SunOS ?rsc1-1/+1
2004-03-30grey out 9term when it loses focus.rsc1-1/+1
2004-03-26SunOS can rot in hell.rsc1-2/+2
2004-03-25Today's changes.rsc1-0/+693
More changes.