zsh-users
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
Cc: zsh-users@zsh.org
Subject: Re: "2004h" at the end of each prompt and "2004l" after pressing Enter on DragonFlyBSD console with zsh 5.1.1
Date: Sat, 10 Oct 2015 02:37:33 +0200	[thread overview]
Message-ID: <4505.1444437453@thecus.kiddle.eu> (raw)
In-Reply-To: <151009160452.ZM5208@torch.brasslantern.com>

Bart wrote:
> Any idea how we can test for support of this feature and disable it
> automatically on terminals that don't support it?

The approach I suggested in workers/35393 would work for this case.
That is, there is no output from the following with TERM set to cons25.
  printf '%s %q\n' ${(kv)terminfo[(R)*[0-9](#c4)[hl]]}

I'm fairly sure that I tried the console on FreeBSD which may have also
been cons25 but much of DragonFly is presumably older. The question is
whether we want to make such a change.

Axel wrote:
> >     unset zle_bracketed_paste
> 
> This works if I enter it manually at the shell prompt, but does
> neither work in .zshrc nor in .zshenv. 

It needs to come after the zle module has loaded. So put it nearer the
bottom of .zshrc - after your bindkeys would do the job.

Oliver


  parent reply	other threads:[~2015-10-10  0:43 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-09 22:09 Axel Beckert
2015-10-09 23:04 ` Bart Schaefer
2015-10-09 23:32   ` Axel Beckert
2015-10-09 23:41     ` Axel Beckert
2015-10-10  0:37   ` Oliver Kiddle [this message]
2015-10-10  0:59     ` Axel Beckert
2015-10-10  3:24       ` what is truth? Ray Andrews
2015-10-10  4:16         ` Kurtis Rader
2015-10-10  4:30           ` Ray Andrews
2015-10-10  4:47           ` Kurtis Rader
2015-10-10  4:25         ` Mikael Magnusson
2015-10-10  4:34           ` Ray Andrews
2015-10-10  4:26         ` Bart Schaefer
2015-10-10  4:52           ` Ray Andrews
2015-10-10  6:59         ` Phil Pennock
2015-10-11 13:54         ` Please don't hijack existing threads (was: what is truth?) Axel Beckert
2015-10-11 14:42           ` Please don't hijack existing threads Ray Andrews
2015-10-11 15:04             ` ZyX
2015-10-11 15:19               ` Ray Andrews

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4505.1444437453@thecus.kiddle.eu \
    --to=okiddle@yahoo.co.uk \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).