Line feed mark (U+21B5) changes to ? in TeraTerm

Asked 1 years ago, Updated 1 years ago, 120 views

Hello, my name is Nagao.
I am an elderly person who is thinking of starting a program (ruby?, rails?) for the first time in a while to prevent blurring.

First, I installed Linux MintMate on an old server PC that I didn't use.Emacs seems to be a good editor tool, so I'm going to use this.

I picked up the information from the internet and created init.el as below and started emacs24.The terminal emacs24 boot from the server probably reflects the init.el setting well.

However, in Emacs24, which is remotely controlled by Term (Version 4.89) SSH on a Windows PC other than the server, is the new line character?(questioning).Terminal settings for Tera Term are CR (default).

As for remote control, the terminal via SSH communication is the fastest, so I would like to use it mainly.

Are there any countermeasures?I don't know about Lisp.
Thank you for your cooperation.

If you already have a similar question, I'm sorry to repeat it.Also, if it is a problem on the part of Tera Term,
It may not be a question here.

"Init.el Contents"

 (require'cl)
;; Do not create backup files such as .#*
(setq auto-save-default nil)

;; display line numbers
(require'linum)
(global-linum-mode1)

;; Do not create backup files such as .#*
(setq auto-save-default nil)


;; display corresponding parentheses
(show-parent-mode 1)

;; color the current line
(global-hl-line-mode1)

;; cua-mode —Enhance rectangular editing
;; Entering rectangular editing in C-RET during region selection, ending in C-g
(require'cua-mode nilt)
(cua-mode t)
(setq cua-enable-cua-keys nil)

;; Special Character Coloring

(global-whitespace-mode1)
(setq whitespace-style' (face tabs tab-mark spaces space-mark newline newline-mark))
(setq whitespace-space-regexp "\\(\u3000+\\)")
(setq whitespace-display-mappings
         '((space-mark?\u3000[?\u25a1]); full-width space expressed by □
           (tab-mark?\t[?\u00BB?\t][?\\?\t]); tab-left quote mark
           (newline-mark?\n[?\u21B5?\n][?$?\n]); eol-overscore
           ))
(set-face-foreground'whitespace-tab "#7594FF")
(set-face-background'whitespace-tab'nil)
(set-face-foreground'whitespace-space"#7594FF")
(set-face-background'whitespace-space'nil)
(set-face-foreground'whitespace-newline "#7594FF")
(set-face-background'whitespace-newline'nil)

There is a lack of explanation in the question, so I will add it.
Setting this init.el changes the new line (key arrow) to ? in Tera Term
That's what it means.
Tera Term is the latest version.Configuring Tera Term Line Break (CR, CR+LF, LF)
was sent/received, and any combination change failed.

The printf'\u21B5' results are as follows.
It's out of order, but perhaps ? is output
I think they do.
xx***xx@yyyy***yyy~$printf'\u21B5'
?xx**xxx@yyyy***yyy~$


because it cannot be copied and pasted in the server terminal. I can't show it here, but the new line mark (key arrow) comes out properly
That's right.

There were some bad points in the above content, so I will correct them.

Line feed mark specified when changing to \21B5=>\u00B6
Yes, the new line mark is a little big, but the Tera Term is
It can't be helped if it's not supported.Thank you very much
Thank you.

emacs teraterm

2022-09-29 22:27

1 Answers

The current version of Tera Term uses ShiftJIS (CP932, to be exact) as the internal character code.
Therefore, when Unicode characters such as UTF-8 are received, they are internally converted to CP932, and if the characters are not in CP932, they are replaced with ?.

This restriction will be resolved in the future by changing the internal character code to Unicode, but it is currently understaffed and completely untouched.


2022-09-29 22:27

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.