* Ctrl-Space kills zsh
@ 1996-11-21 11:41 Aki Vehtari
1996-11-21 13:51 ` Vincent Lefevre
1996-11-22 2:49 ` Geoff Wing
0 siblings, 2 replies; 7+ messages in thread
From: Aki Vehtari @ 1996-11-21 11:41 UTC (permalink / raw)
To: zsh-users
Pressing Ctrl-Space which sends '^@', kills zsh.
This problem has been in versions 2.6* and is still in 3.01
The problem appears only in terminals that processes the
Ctrl-Space and send '^@' to shell. For example some xterm
implementations don't send anything to shell when Ctrl-Space
is pressed and this problem is not appearing there (but there you
have problem of not being able to use Ctrl-Space for anything).
Is there something wrong with handling 'null'-character ('^@')
in zsh? (Or is there some setting that I haven't noticed?)
Aki
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Ctrl-Space kills zsh
1996-11-21 11:41 Ctrl-Space kills zsh Aki Vehtari
@ 1996-11-21 13:51 ` Vincent Lefevre
1996-11-21 16:29 ` Philip Kizer
1996-11-22 2:49 ` Geoff Wing
1 sibling, 1 reply; 7+ messages in thread
From: Vincent Lefevre @ 1996-11-21 13:51 UTC (permalink / raw)
To: zsh-users
Aki Vehtari writes:
> Pressing Ctrl-Space which sends '^@', kills zsh.
I've never had any problem with '^@' (but I've rebinded it to
list-choices).
--
Vincent Lefevre, vlefevre@ens-lyon.fr | Acorn Risc PC, StrongARM @ 202MHz
http://www.ens-lyon.fr/~vlefevre | 20+1MB RAM, Eagle M2, TV + Teletext
PhD in Computer Science, 1st year | Apple CD-300, SyQuest 270MB (SCSI)
-----------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Ctrl-Space kills zsh
1996-11-21 13:51 ` Vincent Lefevre
@ 1996-11-21 16:29 ` Philip Kizer
1996-11-21 18:29 ` Ctrl-Space bindings (was: kills zsh) Bart Schaefer
1996-11-21 20:57 ` Ctrl-Space kills zsh Aki Vehtari
0 siblings, 2 replies; 7+ messages in thread
From: Philip Kizer @ 1996-11-21 16:29 UTC (permalink / raw)
To: zsh-users
Vincent.Lefevre@ens-lyon.fr (Vincent Lefevre) wrote:
>Aki Vehtari writes:
>> Pressing Ctrl-Space which sends '^@', kills zsh.
>
>I've never had any problem with '^@' (but I've rebinded it to
>list-choices).
Likewise, no problems on any OS I use...plus I have it rebound too:
bindkey -s '\000' '\\ '
so I don't have to go edit a whole line to surround it with quotes if I
want a space without separating to a new argument.
____________________________________________________________ Philip Kizer ___
Texas A&M CIS Operating Systems Group, Unix ( 409.862.4120 ) pckizer@tamu.edu
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Ctrl-Space bindings (was: kills zsh)
1996-11-21 16:29 ` Philip Kizer
@ 1996-11-21 18:29 ` Bart Schaefer
1996-11-21 18:54 ` Philip Kizer
1996-11-21 20:57 ` Ctrl-Space kills zsh Aki Vehtari
1 sibling, 1 reply; 7+ messages in thread
From: Bart Schaefer @ 1996-11-21 18:29 UTC (permalink / raw)
To: pckizer, zsh-users
On Nov 21, 10:29am, Philip Kizer wrote:
} Subject: Re: Ctrl-Space kills zsh
}
} bindkey -s '\000' '\\ '
} so I don't have to go edit a whole line to surround it with quotes if I
} want a space without separating to a new argument.
Although the above binding is useful, don't forget that there are default
bindings for quote-line (ESC ') and quote-region (ESC ").
Other useful bindings, which work only if ctrl-space is still bound to
set-mark-command:
# Quote-arguments -- wraps everything from the cursor back to the start
# of the first argument in quotes, then inserts a space and sets mark
# so that a subsequent call to quote-region quotes the next part.
bindkey -s '^X"' '^@^A\ef\e" ^@'
# Quote-region-and-mark -- quote region, then insert space and mark for
# subsequent calls to quote-region-and-mark.
bindkey -s "^X'" '\e" ^@'
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.nbn.com/people/lantern
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Ctrl-Space bindings (was: kills zsh)
1996-11-21 18:29 ` Ctrl-Space bindings (was: kills zsh) Bart Schaefer
@ 1996-11-21 18:54 ` Philip Kizer
0 siblings, 0 replies; 7+ messages in thread
From: Philip Kizer @ 1996-11-21 18:54 UTC (permalink / raw)
To: schaefer; +Cc: zsh-users
"Bart Schaefer" <schaefer@candle.brasslantern.com> wrote:
># Quote-arguments -- wraps everything from the cursor back to the start
># of the first argument in quotes, then inserts a space and sets mark
># so that a subsequent call to quote-region quotes the next part.
>bindkey -s '^X"' '^@^A\ef\e" ^@'
That could be pretty useful...I don't see that in the examples...let's add
that, commented like the others, to the StartupFiles/zshrc...
-p
____________________________________________________________ Philip Kizer ___
Texas A&M CIS Operating Systems Group, Unix ( 409.862.4120 ) pckizer@tamu.edu
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Ctrl-Space kills zsh
1996-11-21 16:29 ` Philip Kizer
1996-11-21 18:29 ` Ctrl-Space bindings (was: kills zsh) Bart Schaefer
@ 1996-11-21 20:57 ` Aki Vehtari
1 sibling, 0 replies; 7+ messages in thread
From: Aki Vehtari @ 1996-11-21 20:57 UTC (permalink / raw)
To: zsh-users
Thanks for all the answers.
Problem wasn't in zsh, but in color_xterm and when I knew what to
search, I could fix it by using combination of the
XTerm*VT100.Translations and the bindkey:
I added to .Xdefaults:
XTerm*VT100.Translations: #override Ctrl<KeyPress>space: string(^x^m)
and to .zshrc:
bindkey '^x^m' set-mark-command
Aki
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Ctrl-Space kills zsh
1996-11-21 11:41 Ctrl-Space kills zsh Aki Vehtari
1996-11-21 13:51 ` Vincent Lefevre
@ 1996-11-22 2:49 ` Geoff Wing
1 sibling, 0 replies; 7+ messages in thread
From: Geoff Wing @ 1996-11-22 2:49 UTC (permalink / raw)
To: Aki Vehtari; +Cc: zsh-users
Aki Vehtari wrote:
:Pressing Ctrl-Space which sends '^@', kills zsh.
Wow, this is a bug I told pf about in the first zsh version 2 about 4 or 5
years ago, which he then fixed.
Isn't it good to see all the old bugs reoccuring :-)
:This problem has been in versions 2.6* and is still in 3.01
:The problem appears only in terminals that processes the
:Ctrl-Space and send '^@' to shell. For example some xterm
:implementations don't send anything to shell when Ctrl-Space
:is pressed and this problem is not appearing there (but there you
:have problem of not being able to use Ctrl-Space for anything).
My xterm requires CTRL-SPACE pressed twice to send it once.
:Is there something wrong with handling 'null'-character ('^@')
:in zsh? (Or is there some setting that I haven't noticed?)
I can't make this happen. Can someone who can please send a backtrace.
--
Geoff Wing [gwing@primenet.com.au] Technical Manager
Phone : +61-3-9818 2977 PrimeNet - Internet Consultancy
Facsimile: +61-3-9819 3788 Web : <URL:http://www.primenet.com.au/>
Mobile : 0412 162 441
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1996-11-22 3:10 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-11-21 11:41 Ctrl-Space kills zsh Aki Vehtari
1996-11-21 13:51 ` Vincent Lefevre
1996-11-21 16:29 ` Philip Kizer
1996-11-21 18:29 ` Ctrl-Space bindings (was: kills zsh) Bart Schaefer
1996-11-21 18:54 ` Philip Kizer
1996-11-21 20:57 ` Ctrl-Space kills zsh Aki Vehtari
1996-11-22 2:49 ` Geoff Wing
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).