unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Gregory Heytings <gregory@heytings.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: acm@muc.de, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Display of undisplayable characters: \U01F3A8 instead of diamond
Date: Sun, 28 Aug 2022 20:07:27 +0000	[thread overview]
Message-ID: <e6331ee73d4d5c73a234@heytings.org> (raw)
In-Reply-To: <e6331ee73d684c9f44f9@heytings.org>

[-- Attachment #1: Type: text/plain, Size: 243 bytes --]


>> I think both?
>> 
>> For PROBLEMS, the entry is OK, but please change "it is recommended" to 
>> say "we recommend".
>
> Okay, I'll do that.
>

See the attached (documentation-only) patch.  Should it go to master or to 
the release branch?

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Recommend-using-fbterm-in-the-Linux-console.patch --]
[-- Type: text/x-diff; name=Recommend-using-fbterm-in-the-Linux-console.patch, Size: 4071 bytes --]

From e9010023e6d33ba84dca4b7aea284c9d804b0b8c Mon Sep 17 00:00:00 2001
From: Gregory Heytings <gregory@heytings.org>
Date: Sun, 28 Aug 2022 20:04:11 +0000
Subject: [PATCH] Recommend using fbterm in the Linux console.

* doc/misc/efaq.texi (Emacs in a Linux console): New node.
(Common requests): Entry for the new node.

* etc/PROBLEMS (Linux console problems...): Mention the new FAQ node.
---
 doc/misc/efaq.texi | 65 ++++++++++++++++++++++++++++++++++++++++++++++
 etc/PROBLEMS       |  7 +++++
 2 files changed, 72 insertions(+)

diff --git a/doc/misc/efaq.texi b/doc/misc/efaq.texi
index a3459abd04..5fa8080f4b 100644
--- a/doc/misc/efaq.texi
+++ b/doc/misc/efaq.texi
@@ -1602,6 +1602,7 @@ Common requests
 * Filling paragraphs with a single space::
 * Escape sequences in shell output::
 * Fullscreen mode on MS-Windows::
+* Emacs in a Linux console::
 @end menu
 
 @node Setting up a customization file
@@ -3031,6 +3032,70 @@ Fullscreen mode on MS-Windows
 Emacs frame and then evaluate @code{(frame-height)} and
 @code{(frame-width)} with @kbd{M-:}.
 
+@node Emacs in a Linux console
+@section How can I alleviate the limitations of the Linux console?
+@cindex Console, TTY
+
+If possible, we recommend to run, in a Linux console, Emacs inside
+fbterm.  This brings the Linux console on par with most terminal
+emulators under X.  To do this, install fbterm, for example with the
+package manager of your GNU/Linux distribution, and execute the
+command
+
+@example
+$ fbterm
+@end example
+
+This will create a sample configuration file @file{~/.fbtermrc} in
+your home directory.  Edit that file and change the options
+@code{font-names} and @code{font-size} if necessary.  For the former,
+you can choose one or more of the lines in the output of the following
+command, separated by commas:
+
+@example
+$ fc-list :spacing=mono family | sed 's/ /\\ /g'
+@end example
+
+Now you can start Emacs inside fbterm with the command
+
+@example
+$ fbterm -- emacs
+@end example
+
+You may want to add an alias for that command in your shell
+configuration file.  For example, if you use Bash, you can add the
+following line to @file{~/.bashrc}:
+
+@example
+alias emacs="fbterm -- emacs"
+@end example
+
+@noindent
+or, if you use Emacs both in the Linux console and under X:
+
+@example
+[[ "$(tty)" =~ "/dev/tty" ]] && alias emacs="fbterm -- emacs"
+@end example
+
+The fbterm terminal emulator may use a number of key bindings for its
+own use, some of which conflict with those that Emacs uses.  Execute
+the following two commands as root to ensure that fbterm does not use
+these key bindings:
+
+@example
+# chmod a-s `which fbterm`
+# setcap cap_sys_tty_config=-ep `which fbterm`
+@end example
+
+If you use Emacs as a root user, the above is not enough, because the
+root user has all privileges, and you can use the following command to
+start Emacs inside fbterm as a root user while ensuring that fbterm
+does not use these key bindings:
+
+@example
+# capsh --drop=cap_sys_tty_config -- -c 'fbterm -- emacs'
+@end example
+
 @c ------------------------------------------------------------
 @node Bugs and problems
 @chapter Bugs and problems
diff --git a/etc/PROBLEMS b/etc/PROBLEMS
index 6624f747c8..3816919d3b 100644
--- a/etc/PROBLEMS
+++ b/etc/PROBLEMS
@@ -2267,6 +2267,13 @@ term/xterm.el) for more details.
 
 *** Linux console problems with double-width characters
 
+If possible, we recommended to run, in a Linux console, Emacs inside
+fbterm (see the node "Emacs in a Linux console" in the Emacs FAQ).
+Most Unicode characters should then be displayed correctly.
+
+If that is not possible, the following may be useful to alleviate the
+problem of displaying Unicode characters in a raw console.
+
 The Linux console declares UTF-8 encoding, but supports only a limited
 number of Unicode characters, and can cause Emacs produce corrupted or
 garbled display with some unusual characters and sequences.  Emacs 28
-- 
2.35.1


  parent reply	other threads:[~2022-08-28 20:07 UTC|newest]

Thread overview: 264+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-26  3:33 Display of undisplayable characters: \U01F3A8 instead of diamond Richard Stallman
2022-08-26  5:21 ` Emanuel Berg
2022-08-26  6:45 ` Eli Zaretskii
2022-08-26  8:23   ` Emanuel Berg
2022-08-26  8:45     ` Emanuel Berg
2022-08-26  9:05     ` Yuri Khan
2022-08-26  9:11       ` Emanuel Berg
2022-08-26  9:28         ` Yuri Khan
2022-08-26  9:40           ` Emanuel Berg
2022-08-26  9:47             ` Emanuel Berg
2022-08-26  9:50               ` Yuri Khan
2022-08-26  9:54                 ` Emanuel Berg
2022-08-26  9:50             ` Emanuel Berg
2022-08-28  4:04   ` Richard Stallman
2022-08-28  6:10     ` Eli Zaretskii
2022-08-28  6:51       ` Emanuel Berg
2022-08-28  7:04         ` Emanuel Berg
2022-08-28  7:09           ` Emanuel Berg
2022-08-28  7:10           ` Eli Zaretskii
2022-08-28  7:21             ` Emanuel Berg
2022-08-26  6:52 ` Kévin Le Gouguec
2022-08-26  7:15   ` Eli Zaretskii
2022-08-26  8:37     ` Emanuel Berg
2022-08-26  8:52       ` Emanuel Berg
2022-08-26  9:24         ` Emanuel Berg
2022-08-26  9:25         ` Andreas Schwab
2022-08-26  9:32           ` Emanuel Berg
2022-08-26 17:41     ` Kévin Le Gouguec
2022-08-26 19:34       ` Emanuel Berg
2022-08-28  4:04     ` Richard Stallman
2022-08-28  5:32       ` Emanuel Berg
2022-08-26  9:58 ` Gregory Heytings
2022-08-26 10:11   ` Emanuel Berg
2022-08-26 10:59     ` Gregory Heytings
2022-08-26 11:31       ` Emanuel Berg
2022-08-26 12:15         ` Gregory Heytings
2022-08-26 12:56   ` Alan Mackenzie
2022-08-26 13:29     ` Gregory Heytings
2022-08-28 10:35       ` Alan Mackenzie
2022-08-28 10:41         ` Eli Zaretskii
2022-08-28 13:00           ` Gregory Heytings
2022-08-28 14:18             ` Eli Zaretskii
2022-08-28 14:44               ` Gregory Heytings
2022-08-28 15:05                 ` Eli Zaretskii
2022-08-28 15:18                   ` Gregory Heytings
2022-08-28 15:34                     ` Eli Zaretskii
2022-08-28 15:53                       ` Gregory Heytings
2022-08-28 16:00                         ` Eli Zaretskii
2022-08-28 16:07                           ` Gregory Heytings
2022-08-28 16:09                             ` Eli Zaretskii
2022-08-28 20:07                 ` Gregory Heytings [this message]
2022-08-29 11:03                   ` Eli Zaretskii
2022-08-29 18:48                     ` Gregory Heytings
2022-08-28 15:39               ` Alan Mackenzie
2022-08-28 15:43                 ` Eli Zaretskii
2022-08-28 15:35             ` Alan Mackenzie
2022-08-28 15:37               ` Eli Zaretskii
2022-08-28 15:46               ` Gregory Heytings
2022-08-28 16:14                 ` Alan Mackenzie
2022-08-28 16:53                   ` Gregory Heytings
2022-08-28 18:27                 ` Stefan Monnier
2022-08-28 18:44                   ` Stefan Monnier
2022-08-28 18:45                   ` Alan Mackenzie
2022-08-28 20:09                     ` Gregory Heytings
2022-08-28 20:37                       ` Alan Mackenzie
2022-08-28 20:09             ` Emanuel Berg
2022-08-28 14:25           ` Alan Mackenzie
2022-08-28 14:59             ` Gregory Heytings
2022-08-28 20:05           ` Emanuel Berg
2022-08-29 10:58             ` Eli Zaretskii
2022-08-29 11:26               ` Yuri Khan
2022-08-29 11:37                 ` Eli Zaretskii
2022-08-29 12:21                   ` Alan Mackenzie
2022-08-28 12:40         ` Gregory Heytings
2022-08-26 21:45 ` Alan Mackenzie
2022-08-26 22:56   ` Emanuel Berg
2022-08-27  7:12     ` Eli Zaretskii
2022-08-27  7:22       ` Visuwesh
2022-08-27  9:11         ` Eli Zaretskii
2022-08-27 10:43           ` Visuwesh
2022-08-28  4:04   ` Richard Stallman
2022-08-28  5:22     ` Eli Zaretskii
2022-08-28 10:07       ` Alan Mackenzie
2022-08-28 10:29         ` Eli Zaretskii
2022-08-28 11:07           ` Alan Mackenzie
2022-08-28 11:44             ` Eli Zaretskii
2022-08-28 13:56               ` Alan Mackenzie
2022-08-27  5:44 ` Akib Azmain Turja
2022-08-27  7:29   ` Andreas Schwab
2022-08-27  9:13     ` Eli Zaretskii
2022-08-27 17:24       ` Emanuel Berg
2022-08-27 17:41         ` Eli Zaretskii
2022-08-27 21:50           ` Emanuel Berg
2022-08-28  2:15             ` Emanuel Berg
2022-08-28  5:45             ` Eli Zaretskii
2022-08-28  6:02               ` Emanuel Berg
2022-08-27 17:22   ` Emanuel Berg
2022-08-29  3:36   ` Richard Stallman
2022-08-29 13:00     ` Eli Zaretskii
2022-08-30  4:12       ` Richard Stallman
2022-08-30 11:41         ` Eli Zaretskii
2022-08-30 12:15           ` Eli Zaretskii
2022-08-30 15:44         ` Gregory Heytings
2022-08-31  0:34           ` Emanuel Berg
2022-08-31  2:35             ` Eli Zaretskii
2022-08-31  3:00               ` Emanuel Berg
2022-08-31 11:00                 ` Eli Zaretskii
2022-09-01 23:32           ` Richard Stallman
2022-09-01 23:39             ` Emanuel Berg
2022-09-01 23:49               ` Emanuel Berg
2022-09-02  6:37             ` Eli Zaretskii
2022-09-02 12:21               ` Akib Azmain Turja
2022-09-02 12:36                 ` Eli Zaretskii
2022-09-02 12:39                 ` Gregory Heytings
2022-09-03  2:51                 ` Richard Stallman
2022-09-03  3:04                   ` Emanuel Berg
2022-09-03  6:35                   ` Akib Azmain Turja
2022-09-03  6:54                   ` Gregory Heytings
2022-09-03  8:13                     ` Emanuel Berg
2022-09-03  8:55                       ` Gregory Heytings
2022-09-03  9:04                         ` Emanuel Berg
2022-09-03  9:34                           ` Eli Zaretskii
2022-09-03  9:42                             ` Emanuel Berg
2022-09-03  9:55                               ` Eli Zaretskii
2022-09-03 12:48                                 ` Akib Azmain Turja
2022-09-08  2:56                             ` Richard Stallman
2022-09-08  7:16                               ` Eli Zaretskii
2022-09-08  9:14                               ` Gregory Heytings
2022-09-09  3:03                                 ` Richard Stallman
2022-09-09  7:30                                   ` Gregory Heytings
2022-09-09  8:10                                     ` Po Lu
2022-09-09 10:08                                       ` Emanuel Berg
2022-09-09 10:13                                         ` Gregory Heytings
2022-09-09 10:25                                           ` Emanuel Berg
2022-09-09 11:11                                             ` Eli Zaretskii
2022-09-09 11:04                                         ` Eli Zaretskii
2022-09-09 10:13                                       ` Emanuel Berg
2022-09-09 11:10                                         ` Eli Zaretskii
2022-09-09 10:52                                       ` Eli Zaretskii
2022-09-10  1:42                                         ` Emanuel Berg
2022-09-09 11:18                                       ` Gregory Heytings
2022-09-09 13:47                                         ` Po Lu
2022-09-09 14:08                                           ` Gregory Heytings
2022-09-10 15:09                                             ` Emanuel Berg
2022-09-09 14:15                                           ` Eli Zaretskii
2022-09-10 15:01                                           ` Emanuel Berg
2022-09-10 14:56                                         ` Emanuel Berg
2022-09-09 10:09                                     ` Emanuel Berg
2022-09-03  9:17                     ` Yuri Khan
2022-09-03  9:28                       ` Gregory Heytings
2022-09-03  9:36                         ` Emanuel Berg
2022-09-03  9:31                       ` Emanuel Berg
2022-09-03  9:40                         ` Yuri Khan
2022-09-03  9:47                           ` Emanuel Berg
2022-09-03 10:00                             ` Emanuel Berg
2022-09-03 12:47                               ` Akib Azmain Turja
2022-09-05  2:47                                 ` Emanuel Berg
2022-09-05  6:08                                   ` enum (was: Re: Display of undisplayable characters: \U01F3A8 instead of diamond) Emanuel Berg
2022-09-08  4:50                                     ` enum Emanuel Berg
2022-09-05  4:05                     ` Display of undisplayable characters: \U01F3A8 instead of diamond Richard Stallman
2022-09-05  4:51                       ` Emanuel Berg
2022-09-03  2:51               ` Richard Stallman
2022-09-02  7:28             ` Gregory Heytings
2022-09-02 11:12               ` Alan Mackenzie
2022-09-02 11:29                 ` Eli Zaretskii
2022-09-02 13:39                   ` Alan Mackenzie
2022-09-02 13:44                     ` Gregory Heytings
2022-09-02 13:59                     ` Eli Zaretskii
2022-09-02 16:12                       ` Alan Mackenzie
2022-09-02 16:26                         ` Eli Zaretskii
2022-09-03  5:27                           ` Tomas Hlavaty
2022-09-03  8:15                             ` Emanuel Berg
2022-09-03  8:29                               ` Emanuel Berg
2022-09-05  4:05                                 ` Richard Stallman
2022-09-04 13:23                           ` Andreas Schwab
2022-09-02 19:19                         ` Gregory Heytings
2022-09-03  2:51                       ` Richard Stallman
2022-09-03  6:44                         ` Eli Zaretskii
2022-09-04 11:23                           ` Alan Mackenzie
2022-09-04 13:01                             ` Eli Zaretskii
2022-09-05 18:59                               ` Alan Mackenzie
2022-09-06  4:15                                 ` Richard Stallman
2022-09-05  4:01                             ` Richard Stallman
2022-09-05  4:05                           ` Richard Stallman
2022-09-05  4:55                             ` Emanuel Berg
2022-09-05 11:33                             ` Eli Zaretskii
2022-09-06  4:20                               ` Emanuel Berg
2022-09-06 10:01                                 ` Eli Zaretskii
2022-09-06 10:38                                   ` Emanuel Berg
2022-09-06 13:03                                     ` Eli Zaretskii
2022-09-07  1:03                                       ` Emanuel Berg
2022-09-07  2:37                                         ` Eli Zaretskii
2022-09-07  3:21                                           ` Emanuel Berg
2022-09-07 11:02                                             ` Eli Zaretskii
2022-09-07 13:12                                               ` Yuri Khan
2022-09-07 13:34                                                 ` Eli Zaretskii
2022-09-07 13:58                                                   ` Yuri Khan
2022-09-07 14:20                                                     ` Eli Zaretskii
2022-09-07 15:48                                                       ` Tomas Hlavaty
2022-09-07 16:48                                                         ` Stefan Monnier
2022-09-07 17:02                                                           ` Tomas Hlavaty
2022-09-08 12:26                                                           ` Emanuel Berg
2022-09-07 18:03                                                         ` Eli Zaretskii
2022-09-08 12:28                                                           ` Emanuel Berg
2022-09-08 12:24                                                         ` Emanuel Berg
2022-09-07 17:29                                                       ` Yuri Khan
2022-09-07 18:32                                                         ` Eli Zaretskii
2022-09-09  9:56                                                           ` Emanuel Berg
2022-09-09 11:01                                                             ` Eli Zaretskii
2022-09-10  4:41                                                               ` Emanuel Berg
2022-09-10  6:33                                                                 ` Eli Zaretskii
2022-09-10 15:19                                                                   ` Emanuel Berg
2022-09-10 15:40                                                                     ` Eli Zaretskii
2022-09-10 15:55                                                                       ` Emanuel Berg
2022-09-10 17:18                                                                         ` Emanuel Berg
2022-09-20  1:09                                                                           ` Emanuel Berg
2022-09-08 12:29                                                         ` Emanuel Berg
2022-09-08 12:14                                                       ` Emanuel Berg
2022-09-08  2:12                                                     ` Emanuel Berg
2022-09-08  1:32                                                 ` Emanuel Berg
2022-09-08  6:17                                                   ` Eli Zaretskii
2022-09-09  9:59                                                     ` Emanuel Berg
2022-09-09 11:02                                                       ` Eli Zaretskii
2022-09-10  6:49                                                       ` Richard Stallman
2022-09-07  2:19                               ` Richard Stallman
2022-09-07 13:21                                 ` Eli Zaretskii
2022-09-03  2:51                     ` Richard Stallman
2022-09-03  3:09                       ` Emanuel Berg
2022-09-03  6:36                       ` Eli Zaretskii
2022-09-06  4:13                         ` Richard Stallman
2022-09-06  4:18                           ` Emanuel Berg
2022-09-08  2:56                             ` Richard Stallman
2022-09-02 11:39                 ` Gregory Heytings
2022-09-02 12:30                   ` Eli Zaretskii
2022-09-02 12:44                     ` Gregory Heytings
2022-09-02 13:14                       ` Eli Zaretskii
2022-09-02 14:15                         ` Gregory Heytings
2022-09-02 15:20                           ` Eli Zaretskii
2022-09-02 15:27                             ` Gregory Heytings
2022-09-02 15:34                               ` Gregory Heytings
2022-09-02 15:45                                 ` Gregory Heytings
2022-09-02 16:06                                   ` Eli Zaretskii
2022-09-02 16:30                                     ` Eli Zaretskii
2022-09-02 16:37                                     ` Gregory Heytings
2022-09-02 16:55                                       ` Andreas Schwab
2022-09-02 16:56                                         ` Gregory Heytings
2022-09-02 18:19                                           ` Eli Zaretskii
2022-09-02 18:24                                             ` Eli Zaretskii
2022-09-02 19:13                                               ` Gregory Heytings
2022-09-02 16:03                                 ` Eli Zaretskii
2022-09-02 16:02                               ` Eli Zaretskii
2022-09-02 13:13                   ` Alan Mackenzie
2022-09-02 13:41                     ` Gregory Heytings
2022-09-02 15:38                       ` Alan Mackenzie
2022-09-02 16:00                         ` Gregory Heytings
2022-09-02 16:32                           ` Stefan Monnier
2022-09-02 16:55                         ` Yuri Khan
2022-09-03  5:35                         ` Tomas Hlavaty
2022-09-03  5:49                           ` Jean Louis
2022-09-03  9:16                             ` Emanuel Berg
2022-09-03  6:46                           ` Gregory Heytings
2022-09-02 11:47     ` Akib Azmain Turja
2022-09-02 12:07       ` Gregory Heytings
2022-09-02 12:45       ` Eli Zaretskii

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=e6331ee73d4d5c73a234@heytings.org \
    --to=gregory@heytings.org \
    --cc=acm@muc.de \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rms@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).