From: Michael Heerdegen <michael_heerdegen@web.de>
To: emacs-devel@gnu.org
Subject: Display problems in M-x term (was: terminal emulation)
Date: Sun, 05 Jun 2011 01:15:25 +0200 [thread overview]
Message-ID: <87k4d1mbn6.fsf@web.de> (raw)
Hi,
Without knowing much background, I tried to use aptitude and some
other applications with M-x term (in Gnu Emacs 23.3 on Debian) myself.
Indeed there are some problems, but generally, isn't `term' supposed
to work with applications like aptitude?
The bad thing with aptitude is that it uses a Unicode letter
(character 9618) to display a scroll-bar. In some fontsets
(e.g. "startup: 13-dot"), the glyph of this char is wider than the
ASCII-characters (Bug?). Lines including this character get wrapped,
messing up the whole display. So, the terminal is only usable with
`truncate-lines' being t in this case.
There are also some Emacs features which interfere with the terminal,
resulting in surprising "effects", e.g.
- If the user option `scroll-margin' has a value greater than 0,
then the terminal window gets scrolled if the cursor is near the
bottom and Emacs does a redisplay.
- `show-paren-mode': Pairs of "parens" are highlighted by default in
*terminal*. E.g. in aptitude dialogs like this:
+---------------------+
|Really quit Aptitude?|
| [ Yes ] [ No ] |
+---------------------+
the "parens" around "Yes" and "No" get highlighted if point is
there.
Maybe features and options like these, which make not much sense in a
terminal emulator, should be treated locally by M-x term? E.g. it
would be good if `truncate-lines' and `scroll-margin' would be
buffer-local in *terminal* with a useful value.
P.S.: I also needed to apply the patch given in Bug #5615 for an
optimal result.
next reply other threads:[~2011-06-04 23:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-04 23:15 Michael Heerdegen [this message]
2011-06-05 5:38 ` Display problems in M-x term (was: terminal emulation) Eli Zaretskii
2011-06-05 23:09 ` Display problems in M-x term Michael Heerdegen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k4d1mbn6.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=emacs-devel@gnu.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.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).