* Re: Completion undefine some control characters.
@ 2000-05-11 12:52 Sven Wischnowsky
2000-05-11 14:45 ` PATCH: " Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: Sven Wischnowsky @ 2000-05-11 12:52 UTC (permalink / raw)
To: zsh-workers
Tanaka Akira wrote:
> Z(4):akr@serein% Src/zsh -f
> serein% bindkey -e; autoload -U compinit; compinit -D
> serein% stty
> speed 9600 baud; line = 0;
> erase = ^H;
> -brkint -imaxbel
> serein% ls <TAB><C-u>
> serein% stty
> speed 9600 baud; line = 0;
> quit = <undef>; erase = ^H; susp = <undef>; lnext = <undef>; flush = <undef>;
> -brkint inlcr -imaxbel
> serein%
>
> Completion undefine some control characters.
(The `inlcr' has been causing me all kinds of trouble lately...)
That's caused by the `exec </dev/null' Bart added. No idea what's
happening here yet... (it's too darn hot here for thinking).
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 3+ messages in thread
* PATCH: Re: Completion undefine some control characters.
2000-05-11 12:52 Completion undefine some control characters Sven Wischnowsky
@ 2000-05-11 14:45 ` Bart Schaefer
0 siblings, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2000-05-11 14:45 UTC (permalink / raw)
To: zsh-workers
On May 11, 2:52pm, Sven Wischnowsky wrote:
} Subject: Re: Completion undefine some control characters.
}
} That's caused by the `exec </dev/null' Bart added. No idea what's
} happening here yet... (it's too darn hot here for thinking).
During `exec', init_io() reinitializes SHTTY from descriptor 1, stomping
on the tty settings in the process.
The following is the most obvious fix, but maybe there's a better way?
It bothers me a little that zleactive isn't isolated to the zle module,
but there are other bits of the main zsh code that know about it.
Index: Src/exec.c
===================================================================
@@ -2097,7 +2097,7 @@
/* If this is 'exec < file', read from stdin, *
* not terminal, unless `file' is a terminal. */
if (nullexec == 1 && fn->fd1 == 0 &&
- isset(SHINSTDIN) && interact)
+ isset(SHINSTDIN) && interact && !zleactive)
init_io();
break;
case CLOSE:
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Completion undefine some control characters.
@ 2000-05-11 10:56 Tanaka Akira
0 siblings, 0 replies; 3+ messages in thread
From: Tanaka Akira @ 2000-05-11 10:56 UTC (permalink / raw)
To: zsh-workers
Z(4):akr@serein% Src/zsh -f
serein% bindkey -e; autoload -U compinit; compinit -D
serein% stty
speed 9600 baud; line = 0;
erase = ^H;
-brkint -imaxbel
serein% ls <TAB><C-u>
serein% stty
speed 9600 baud; line = 0;
quit = <undef>; erase = ^H; susp = <undef>; lnext = <undef>; flush = <undef>;
-brkint inlcr -imaxbel
serein%
Completion undefine some control characters.
--
Tanaka Akira
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-05-11 14:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-11 12:52 Completion undefine some control characters Sven Wischnowsky
2000-05-11 14:45 ` PATCH: " Bart Schaefer
-- strict thread matches above, loose matches on Subject: below --
2000-05-11 10:56 Tanaka Akira
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).