zsh-workers
 help / color / mirror / code / Atom feed
From: "Nikolay Aleksandrovich Pavlov (ZyX)" <kp-pav@yandex.ru>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: Weird behaviour of a multiline prompt
Date: Sat, 29 Oct 2016 21:13:59 +0300	[thread overview]
Message-ID: <1355161477764839@web20o.yandex.ru> (raw)

If I have a prompt like

    PS1=$'abc\n'

(i.e. non-empty line above an empty prompt) then it shows up as expected when I replace my prompt with this. But when I try using exactly the same prompt in `pexpect` zsh no longer shows any prompt at all: neither `abc`, nor RPS1. Used environment is

	environ = {
		'LANG': 'en_US.UTF-8',
		'PATH': os.pathsep.join(local_paths),
		'TERM': 'screen-256color',
		'DIR1': os.environ['DIR1'],
		'DIR2': os.environ['DIR2'],
		'XDG_CONFIG_HOME': os.path.abspath(os.path.join('tests', 'shell', 'fish_home')),
		'IPYTHONDIR': os.path.abspath(os.path.join('tests', 'shell', 'ipython_home')),
		'PYTHONPATH': python_paths,
		'POWERLINE_CONFIG_OVERRIDES': os.environ.get('POWERLINE_CONFIG_OVERRIDES', ''),
		'POWERLINE_THEME_OVERRIDES': os.environ.get('POWERLINE_THEME_OVERRIDES', ''),
		'POWERLINE_CONFIG_PATHS': os.path.abspath(os.path.join('powerline', 'config_files')),
		'POWERLINE_COMMAND_ARGS': os.environ.get('POWERLINE_COMMAND_ARGS', ''),
		'POWERLINE_COMMAND': os.environ.get('POWERLINE_COMMAND', ''),
		'LD_LIBRARY_PATH': os.environ.get('LD_LIBRARY_PATH', ''),
	}

(https://github.com/ZyX-I/powerline/blob/bd84cd240ed1ddda8d558079f96d6a47d21206fd/tests/test_shells/run_script.py#L52-L67). Zsh version is 5.2. Any ideas what may be the reason?


             reply	other threads:[~2016-10-29 18:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-29 18:13 Nikolay Aleksandrovich Pavlov (ZyX) [this message]
2016-10-29 18:41 ` Bart Schaefer
2016-10-29 21:44   ` Nikolay Aleksandrovich Pavlov (ZyX)

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=1355161477764839@web20o.yandex.ru \
    --to=kp-pav@yandex.ru \
    --cc=zsh-workers@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).