zsh-users
 help / color / mirror / code / Atom feed
* Re: bindkey -s question
@ 1998-04-25 13:55 Mirar
  1998-04-27  8:47 ` Andrew Main
  0 siblings, 1 reply; 5+ messages in thread
From: Mirar @ 1998-04-25 13:55 UTC (permalink / raw)
  To: Zsh Users


I would like a prompt, with parts that only shows when i'm editing the
command, like the mode line in emacs. Is this possible to have in zsh
without heavy modification of the source?

								 |
|.								 |
|.								 |
|.								 |
|mistel% echo $PWD                                               |
|/home/mirar                                                     |
|mistel% last | head -2                                          |
|per   ttyp9     194.52.182.48  Thu Apr 23 14:38 - 16:20  (01:42)|
|js    ttyq2     194.52.182.50  Mon Apr 20 19:50 - 23:00  (03:10)|
|mistel% ps | grep washuu                                        |
| 1540  p2 S    4:56 pike xwashuu.pike                           |
| 5706  p1 D    0:00 grep washuu                                 |
|mistel% cat /proc/meminfo | wc                                  |
|     10      38     319                                         |
|--**-zsh: mistel: ~/ ------------------------(Cmd)--14:01--L12--|
|% _								 |
+----------------------------------------------------------------+


/Mirar

__________________________________________________________________________
Idonex AB               Telefon      Telefax      nalle
Skolgatan 10		013-376814   013-376801   0708-376867
582 35 Linköping        mirar@idonex.se           http://www.idonex.se/


^ permalink raw reply	[flat|nested] 5+ messages in thread
* bindkey -s question
@ 1998-04-18  5:51 Danek Duvall
  1998-04-18 10:11 ` TGAPE!
  0 siblings, 1 reply; 5+ messages in thread
From: Danek Duvall @ 1998-04-18  5:51 UTC (permalink / raw)
  To: Zsh Users

I'm trying to bind ^L to a key sequence that will reset my xterm saved
lines.  The escape sequence ^[c does the trick if I do

    echo -n ^[c

at the command line.  However, if I try

    bindkey -s "^L" "echo -n ^[c"

it just prints a new prompt as if I'd typed return.  (Note I've typed all
the control charaters using ^V first; I'm just typing them safely here.)

I managed to get somewhat the behavior I want by

    zle -N clear-screen2
    function clear-screen2 () { echo -n ^[c; zle clear-screen }
    bindkey "^L" clear-screen2

Without the call to clear-screen, the prompt doesn't get printed, but with
it there's a slight flash.

I'm using xterm-70, if that makes any difference.

How should I be going about this?

Danek


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-04-27  8:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-04-25 13:55 bindkey -s question Mirar
1998-04-27  8:47 ` Andrew Main
  -- strict thread matches above, loose matches on Subject: below --
1998-04-18  5:51 Danek Duvall
1998-04-18 10:11 ` TGAPE!
1998-04-18 15:42   ` Danek Duvall

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).