zsh-workers
 help / color / mirror / code / Atom feed
From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>,
	"Sven Wischnowsky" <wischnow@informatik.hu-berlin.de>,
	<zsh-workers@sunsite.auc.dk>
Subject: 4855 does not work in all cases
Date: Thu, 8 Jul 1999 15:26:49 +0400	[thread overview]
Message-ID: <000601bec934$c4cd3de0$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <000101bec92b$46fe9a20$21c9ca95@mow.siemens.ru>

>
>                 Have you got a look at 4855? Among other things, it
> > makes Zsh to output '\r' in this case.
>
> Sorry. I've meant '\n' of course :-( This automagically does the trick on all
> three terminal types (no am, am with COLUMNS wrap and am with COLUMNS+1 wrap)
>
> /andrej
>

I looks, like I have not used some terminals for really long time ... That is
even worse. I just found a terminal of type 2 (wrap on COLUMNS) that
unfortunately prints extra newline if prompt is exactly COLUMNS chanrters
-( SO, either we have here fourth type ... or nobody on this list never used
terminals of type 2 after 4855.

To test - just try something like

echo "----(80 characters)\n===" and see if you get extra newline. I believe,
this is exactly what happens with AIX term. It does not happen with all
terminals program I'm using here (xterm/dtterm) :-)

After some tests it appears, that the only actually clean way is to output

"<blank><backspace>"

in this case. Blank will force new line and backspace will move to the first
column again. Again, this is needed *only* if the last line is exactly COLUMNS
(better said, if no printable character follows).

Sigh ...

/andrej


  reply	other threads:[~1999-07-08 11:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-08  9:35 Problem with cursor position after wrapped completion lists Sven Wischnowsky
1999-07-08 10:04 ` Andrej Borsenkow
1999-07-08 10:18   ` Correction :-( " Andrej Borsenkow
1999-07-08 11:26     ` Andrej Borsenkow [this message]
1999-07-08 12:09       ` 4855 does not work in all cases Oliver Kiddle
1999-07-08 12:56         ` Andrej Borsenkow
1999-07-08 14:39           ` Oliver Kiddle
1999-07-08 15:26             ` Andrej Borsenkow
1999-07-09  8:42               ` Oliver Kiddle
1999-07-09  3:44       ` Geoff Wing

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='000601bec934$c4cd3de0$21c9ca95@mow.siemens.ru' \
    --to=andrej.borsenkow@mow.siemens.ru \
    --cc=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /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).