From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Oliver Kiddle" <opk@thoth.u-net.com>, <zsh-workers@sunsite.auc.dk>
Subject: RE: 4855 does not work in all cases
Date: Thu, 8 Jul 1999 16:56:38 +0400 [thread overview]
Message-ID: <000701bec941$512d19c0$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <378494E5.FC4E0462@thoth.u-net.com>
>
> I hadn't tried this but it is the first thing which actually works
> for both xterm
> and aixterm. It doesn't work when you turn of line wrapping but I take it that
> we can get this out of terminfo/termcap (am?)? This blank,backspace thing is a
> bit of a hack so I think we should attempt to find a proper way of
> handling the
> different cases - how does ncurses or something else handle this.
>
> Looking at the man page for terminfo, I found this which might be relevant:
>
> Boolean Capabilities
>
> Variable Cap Name I. Code Description
> eat_newline_glitch xenl xn Ignores new-line character after 80
> columns
>
Yes, ncurses looks at the eat_newline_glitch and basically does the CR-NL in
this case (look at the comments to wrap_cursor() in ncurses/do_update.c - it is
really interesting).
Unfortunately, it is not defined for dtterm (at least on our system). It seems
to be defined for xterm and one more terminal type that do have the feature. But
this is the general problem - how can you be sure that terminfo/termcap reflect
the truth? Users are free to modify settings on the fly :-(
So, the story looks someting like
if (!am || xenl)
puts("\r\n");
Not sure, that "\r\n" looks much better than " \n", but this works without
auto-margin as well. Funnily enough, it will work even on my dtterm (that is
configured for am but with terminfo that does not list this :-)
/andrej
next prev parent reply other threads:[~1999-07-08 12:56 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 ` 4855 does not work in all cases Andrej Borsenkow
1999-07-08 12:09 ` Oliver Kiddle
1999-07-08 12:56 ` Andrej Borsenkow [this message]
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='000701bec941$512d19c0$21c9ca95@mow.siemens.ru' \
--to=andrej.borsenkow@mow.siemens.ru \
--cc=opk@thoth.u-net.com \
--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).