Peter Stephenson
d067ebcacd
33876: etc.: Separate errors and keyboards interrupts
...
Combination of 12 commits from interrupt_abort branch.
Basic strategy is to introduce bits to errflag and to set and
reset them separately.
Remove interrupt status on return to main keymap.
Turn off ERRFLAG_INT for always block.
Restore bit thereafter: we probably need a new variable in order
to allow user interrupts to be reset in the always block.
Add TRY_BLOCK_INTERRUPT
This works the same as TRY_BLOCK_ERROR, but for a SIGINT, too.
Ensure propagation of SIGINT from exited job.
If received by foreground job, shell uses ERRFLAG_INT, not
ERRFLAG_ERROR, to set the new state.
Reset errflag before precmd()
Add always block in _main_completion to fix ZLS_COLORS
Ensures we get the right state of $ZLS_COLORS at the end of _main_complete
even if there's an interrupt. However, the "right state" is a bit messy
as it depends on styles.
2014-12-11 09:41:17 +00:00
Oliver Kiddle
a526a2203b
33743: use posix_openpt in zpty if it is available
2014-11-24 00:05:59 +01:00
Jun T
feae6af6d2
32131: avoid infinite loop reading pty on platforms that do not buffer output after child exit
2013-12-16 22:15:08 -08:00
Peter Stephenson
b0a0441902
31672: Add test that was failing and fix zpty set-up race
2013-08-26 21:01:17 +01:00
Peter Stephenson
f75904a380
31665: zpty should attach terminal on slave.
...
Also add test.
2013-08-25 20:48:52 +01:00
Peter Stephenson
d89361739a
29165: use term.h globally if needed at all.
2011-05-09 09:49:08 +00:00
Peter Stephenson
09960dc5b9
27951: Add $ZSH_EVAL_CONTEXT and $zsh_eval_contxt
2010-05-12 10:06:59 +00:00
Wayne Davison
693fd5b56e
Check the return value of all pipe(), read(), and write() calls.
...
Gets rid of all the remaining "ignoring return value" compiler
warnings, and makes some read/write operations safer by ensuring
that an EINTR is handled.
2009-12-16 18:39:06 +00:00
Peter Stephenson
51409732d0
27284: better use of movefd()
2009-09-22 09:17:05 +00:00
Peter Stephenson
e7c9e03c58
26301: make zpty -r exit more cleanly on bad reads
...
add option -m to make zpty -r return status 1 if pattern failed to match
use this option in comptest
2009-01-13 12:09:26 +00:00
Peter Stephenson
1e9b85e586
François Revol: some BeOS fixes
2008-11-18 10:14:35 +00:00
Peter Stephenson
59dd1491c6
users/13295, tweaked: dont reset line numbers when parsing strings, sometimes
2008-09-29 08:46:21 +00:00
Peter Stephenson
02e0a4755f
25040: zpty should display context information more like eval
2008-05-15 15:50:57 +00:00
Peter Stephenson
b5570971ef
24460: make zpty -rt more consistent by polling before every byte
2008-01-25 16:48:22 +00:00
Peter Stephenson
1b52f47cf2
23665: autoloading of module features and related tweaks
2007-07-06 21:52:38 +00:00
Peter Stephenson
b0c5f09169
see 23479: add initial features support for modules
2007-05-28 22:57:39 +00:00
Peter Stephenson
dd5602f59b
22474: use variable argument lists to improve error message handling
2006-05-30 22:35:03 +00:00
Oliver Kiddle
af31bd1741
Joerg Sonnenberger: 21252: Dragonfly BSD support
2005-05-11 09:27:05 +00:00
Wayne Davison
fb0937a69e
Marked unused parameters with the new UNUSED() macro.
2004-06-02 22:14:25 +00:00
Peter Stephenson
89057ab512
19629: fix zpty on HP-UX
2004-03-16 19:52:52 +00:00
Wayne Davison
f75dc6bb86
Got rid of an unused-variable compiler-warning.
2004-02-26 20:48:09 +00:00
Peter Stephenson
2073eca9f3
19456: Fix ptmx tests, again.
2004-02-20 15:27:35 +00:00
Peter Stephenson
460e417caa
19429: configure test for ptmx
2004-02-17 13:53:36 +00:00
Peter Stephenson
590a26709a
18195: Timeouts for read builtin.
2003-02-05 11:56:55 +00:00
Peter Stephenson
9634760d5e
17582: Improved option argument handling.
...
unposted: Updated version to 4.1.0-dev-6 because of interface change.
2002-08-27 21:10:30 +00:00
Clint Adams
c2c3e7e886
17297: 17265 continued.
2002-06-06 05:47:35 +00:00
Peter Stephenson
003ec8c7e8
15327: always use local LINENOs in parse_string().
2001-07-09 16:05:13 +00:00
Peter Stephenson
8ff0785863
Fixes from Andrej for zpty on cygwin
2001-05-08 10:26:58 +00:00
Sven Wischnowsky
326d682510
try to make the -t option of zpty smarter (13462)
2001-02-13 13:14:45 +00:00
Sven Wischnowsky
757168e2c8
remove 13108 (trap queues); replace with signal queueing to ensure that user signal handlers are only executed when it is safe to run them (13365)
2001-01-16 13:44:18 +00:00
Sven Wischnowsky
2d77bd0d58
don't be sure that read-ahead doesn't contains nuls (13163)
2000-11-14 11:51:25 +00:00
Sven Wischnowsky
bbb0d75e25
use unmetafy() to allow writing special characters into a pty (13156)
2000-11-13 10:22:40 +00:00
Peter Stephenson
c292a3ae50
Sven: 13108: Handle traps synchronously
...
pws: 13109, 13111: clear up zle display when output produced in trap.
2000-11-11 19:50:27 +00:00
Sven Wischnowsky
468e3b59dc
*** empty log message ***
2000-11-08 15:27:54 +00:00
Bart Schaefer
12ca8495d4
Tweak interactiveness of cloned shell.
2000-11-06 06:41:59 +00:00
Bart Schaefer
49fc6b036c
Make zpty more like eval.
2000-11-06 06:24:27 +00:00
Bart Schaefer
dbc0aebcd4
Assorted read_poll() and zpty cleanup.
2000-11-05 09:27:08 +00:00
Bart Schaefer
b4f76c13fd
Better streaming behavior from `zpty -r', plus other cleanup.
2000-11-05 02:05:17 +00:00
Sven Wischnowsky
16d7e31ae8
make non-blocking IO on ptys work again; add -t option to test if command is still alive (13035)
2000-10-19 08:46:54 +00:00
Sven Wischnowsky
c8812bb0c8
Andrej: don't close slave if not yet open (12084)
2000-06-27 14:25:05 +00:00
Peter Stephenson
dcd94d3786
Andrej: 12081: zpty under cygwin
2000-06-27 08:42:27 +00:00
Tanaka Akira
f8551053e5
11426: Src/Modules/zpty.c: don't use #elif.
2000-05-17 03:42:43 +00:00
Tanaka Akira
590475e1b7
11420: Src/Modules/zpty.c: try more pty device files.
2000-05-16 18:16:19 +00:00
Sven Wischnowsky
fc9627e776
close fd for pty-master in sub-shell
2000-05-08 11:06:27 +00:00
Sven Wischnowsky
27f895df41
make zpty -r stoppable even when SIGINT is caught (and the handler calls return or some such) (11181)
2000-05-05 09:12:49 +00:00
Sven Wischnowsky
e7895ac92c
close dump file descriptors in children (11151)
2000-05-04 13:40:05 +00:00
Sven Wischnowsky
26f9c5af50
make pty the controlling terminal of their commands (11144)
2000-05-04 09:53:41 +00:00
Bart Schaefer
38cce57dd7
10562, 10581: Complete .src.rpm after rpm --rebuild; note fixed bug; typo.
2000-04-07 15:01:03 +00:00
Peter Stephenson
4852545255
Updated from list as far as 10376
2000-04-01 20:49:47 +00:00
Tanaka Akira
e2cc547411
Initial revision
2000-01-20 18:44:54 +00:00