From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3358 invoked from network); 8 Jul 1999 11:27:04 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 8 Jul 1999 11:27:04 -0000 Received: (qmail 28178 invoked by alias); 8 Jul 1999 11:26:54 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7034 Received: (qmail 28171 invoked from network); 8 Jul 1999 11:26:54 -0000 X-Envelope-Sender-Is: Andrej.Borsenkow@mow.siemens.ru (at relayer david.siemens.de) From: "Andrej Borsenkow" To: "Andrej Borsenkow" , "Sven Wischnowsky" , Subject: 4855 does not work in all cases Date: Thu, 8 Jul 1999 15:26:49 +0400 Message-ID: <000601bec934$c4cd3de0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <000101bec92b$46fe9a20$21c9ca95@mow.siemens.ru> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal > > 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 "" 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