[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Daemon/Client, Multiple Terminals, and `tty-erase-char'
From: |
Andreas Schwab |
Subject: |
Re: Daemon/Client, Multiple Terminals, and `tty-erase-char' |
Date: |
Mon, 16 Dec 2019 18:15:13 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
On Dez 16 2019, Eli Zaretskii wrote:
>> From: Andreas Schwab <address@hidden>
>> Cc: address@hidden, Alexander Shukaev <address@hidden>
>> Date: Mon, 16 Dec 2019 17:02:56 +0100
>>
>> On Dez 16 2019, Eli Zaretskii wrote:
>>
>> > tty-erase-char is a global variable, so it is not per terminal.
>> >
>> > But I don't think I understand what you mean by "frame refers to a
>> > different value" in this context. What do you think Emacs does with the
>> > value of this variable, that you need to be specific to a frame?
>>
>> Currently, tty-erase-char is set to the ERASE character of the last
>> opened terminal. Since normal-erase-is-backspace-setup-frame is
>> normally only called once when the frame is created, this happens to
>> work out right.
>
> tty-erase-char is also set whenever init_sys_modes is called, and
> many/most of its callers are generally supposed to be called for the
> controlling terminal only. If one of those callers is actually
> called, tty-erase-char will be reset to the ERASE character of the
> controlling terminal, AFAIU.
Emacs can have multiple controlling terminals, if there are multiple
terminals.
Andreas.
--
Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
- Daemon/Client, Multiple Terminals, and `tty-erase-char', Alexander Shukaev, 2019/12/15
- Re: Daemon/Client, Multiple Terminals, and `tty-erase-char', Eli Zaretskii, 2019/12/16
- Re: Daemon/Client, Multiple Terminals, and `tty-erase-char', Andreas Schwab, 2019/12/16
- Re: Daemon/Client, Multiple Terminals, and `tty-erase-char', Alexander Shukaev, 2019/12/16
- Re: Daemon/Client, Multiple Terminals, and `tty-erase-char', Eli Zaretskii, 2019/12/16
- Re: Daemon/Client, Multiple Terminals, and `tty-erase-char',
Andreas Schwab <=
- Re: Daemon/Client, Multiple Terminals, and `tty-erase-char', Eli Zaretskii, 2019/12/16
- Re: Daemon/Client, Multiple Terminals, and `tty-erase-char', Andreas Schwab, 2019/12/16
- Re: Daemon/Client, Multiple Terminals, and `tty-erase-char', Eli Zaretskii, 2019/12/16
- Re: Daemon/Client, Multiple Terminals, and `tty-erase-char', Andreas Schwab, 2019/12/16