Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: vared messes up tty state
- X-seq: zsh-workers 11566
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: vared messes up tty state
- Date: Thu, 25 May 2000 10:02:12 +0200 (MET DST)
- In-reply-to: "Bart Schaefer"'s message of Tue, 23 May 2000 15:30:38 -0700
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> If you have `stty -echo` as e.g. in an emacs buffer and you run vared,
> then after vared exits, echo mode has been forced back on.
>
> `ttyctl -f` has no effect on this.
>
> Arguably, vared shouldn't even work in this condition (it behaves as
> if SINGLE_LINE_ZLE, when in fact ZLE is entirely disabled).
I agree with this last one, so should we?
Bye
Sven
diff -u -r ../oz/Src/Zle/zle_main.c ./Src/Zle/zle_main.c
--- ../oz/Src/Zle/zle_main.c Wed May 24 19:51:03 2000
+++ ./Src/Zle/zle_main.c Wed May 24 20:47:57 2000
@@ -740,6 +740,10 @@
char *p1 = NULL, *p2 = NULL;
FILE *oshout = NULL;
+ if (unset(USEZLE)) {
+ zwarnnam(name, "ZLE not enabled", NULL, 0);
+ return 1;
+ }
if (zleactive) {
zwarnnam(name, "ZLE cannot be used recursively (yet)", NULL, 0);
return 1;
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author