Re: [Midnight Commander] #2633: Subshell don't save the output of the commands (ctrl+o clear the terminal)

0 views
Skip to first unread message

Ticket System

unread,
Oct 21, 2024, 3:16:01 PMOct 21
to p...@pavlabor.net, yu...@shurup.com, mc-...@googlegroups.com, wood...@gmail.com
#2633: Subshell don't save the output of the commands (ctrl+o clear the terminal)
--------------------------+--------------------------------
Reporter: passat | Owner: zaytsev
Type: defect | Status: accepted
Priority: major | Milestone: 4.8.33
Component: mc-core | Version: 4.7.5.5
Resolution: | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
--------------------------+--------------------------------
Changes (by zaytsev):

* status: new => accepted
* owner: => zaytsev
* milestone: Future Releases => 4.8.33


Comment:

Ship `xterm-clear` with mclib.

--
Ticket URL: <http://www.midnight-commander.org/ticket/2633#comment:17>
Midnight Commander <https://midnight-commander.org>
Midnight Development Center

Ticket System

unread,
Oct 22, 2024, 7:20:11 AMOct 22
to p...@pavlabor.net, yu...@shurup.com, mc-...@googlegroups.com, wood...@gmail.com
#2633: Subshell don't save the output of the commands (ctrl+o clear the terminal)
--------------------------+--------------------------------
Reporter: passat | Owner: zaytsev
Type: defect | Status: accepted
Priority: major | Milestone: 4.8.33
Component: mc-core | Version: 4.7.5.5
Resolution: | Keywords:
Blocked By: | Blocking:
Branch state: no branch | Votes for changeset:
--------------------------+--------------------------------

Comment (by zaytsev):

So what a fun story:

* Pagers like less and editors like vi start supporting screen clearing on
exit
* FreeBSD developer gets annoyed at having his screen wiped and wants to
go back to the BSD roots, when these features didn't exist and/or weren't
used
* FreeBSD termcap table is patched to remove ti/te from xterm:
* https://github.com/freebsd/freebsd-
src/commit/9190ba057c5714e3f78bd68a62c06cc9386e3d76
* New entry `xterm-clear` is created for people who are against this
change
* Time passes, further developments like `xterm-256colors` don't take this
into account
* People work around this change around by adding ti/te to their TERMCAP
variables
* misc/mc port is patched, because the "improvement" makes it unusable
* No attempt is ever made to revert the original "impromevent"
* At some point another FreeBSD dev tried to get a tab on the termcap &
ncurses maintenance problems
* Originally terminfo wasn't adopted to avoid political issues, but
after they became irrelevant there wasn't much traction to move
* https://lists.freebsd.org/pipermail/freebsd-
current/2020-May/076047.html
* Current status is that terminfo is used by ncurses if `misc/terminfo-db`
port is installed, termcap is used as fallback - maybe even termcap will
be removed one day, who knows
* https://github.com/freebsd/freebsd-
src/commit/61f66a1f4403fded9aae14d890ad96914a3c0bc1
* From that point on, the original behaviour is (partially) restored,
and people jubilate on reddit and forums, not knowing where the blessing
came from
*
https://www.reddit.com/r/freebsd/comments/1dxd7bm/term_alternate_screen_buffer_xterm256color/
* https://forums.freebsd.org/threads/behavior-change-in-term-after-
freebsd-14-1-update.94022/
* The history continues... what's next? Will terminfo eventually be
"improved" in the same way as termcap? Or will termcap finally be removed
and the original terminfo prevail? We will find out in the next 20 years.

--
Ticket URL: <http://www.midnight-commander.org/ticket/2633#comment:18>

Ticket System

unread,
Oct 22, 2024, 7:23:21 AMOct 22
to p...@pavlabor.net, yu...@shurup.com, mc-...@googlegroups.com, wood...@gmail.com
#2633: Subshell don't save the output of the commands (ctrl+o clear the terminal)
--------------------------+--------------------------------
Reporter: passat | Owner: zaytsev
Type: defect | Status: accepted
Priority: major | Milestone: 4.8.33
Component: mc-core | Version: 4.7.5.5
Resolution: | Keywords:
Blocked By: | Blocking:
Branch state: on review | Votes for changeset:
--------------------------+--------------------------------
Changes (by zaytsev):

* branch_state: no branch => on review


Comment:

Branch: 2633_mclib_xterm_clear
Changeset: f0107ce193a4cfc983c2034dd739d972645dbb98

--
Ticket URL: <http://www.midnight-commander.org/ticket/2633#comment:19>

Ticket System

unread,
Oct 22, 2024, 7:42:44 AMOct 22
to p...@pavlabor.net, yu...@shurup.com, mc-...@googlegroups.com, wood...@gmail.com
#2633: Subshell don't save the output of the commands (ctrl+o clear the terminal)
-------------------------+--------------------------------
Reporter: passat | Owner: zaytsev
Type: defect | Status: accepted
Priority: major | Milestone: 4.8.33
Component: mc-core | Version: 4.7.5.5
Resolution: | Keywords:
Blocked By: | Blocking:
Branch state: approved | Votes for changeset: andrew_b
-------------------------+--------------------------------
Changes (by andrew_b):

* votes: => andrew_b
* branch_state: on review => approved


--
Ticket URL: <http://www.midnight-commander.org/ticket/2633#comment:20>

Ticket System

unread,
Oct 22, 2024, 8:45:47 AMOct 22
to p...@pavlabor.net, yu...@shurup.com, mc-...@googlegroups.com, wood...@gmail.com
#2633: Subshell don't save the output of the commands (ctrl+o clear the terminal)
------------------------+----------------------------------------
Reporter: passat | Owner: zaytsev
Type: defect | Status: testing

Priority: major | Milestone: 4.8.33
Component: mc-core | Version: 4.7.5.5
Resolution: fixed | Keywords:
Blocked By: | Blocking:
Branch state: merged | Votes for changeset: committed-master
------------------------+----------------------------------------
Changes (by zaytsev):

* status: accepted => testing
* votes: andrew_b => committed-master
* resolution: => fixed
* branch_state: approved => merged


--
Ticket URL: <http://www.midnight-commander.org/ticket/2633#comment:21>

Ticket System

unread,
Oct 22, 2024, 8:48:56 AMOct 22
to p...@pavlabor.net, yu...@shurup.com, mc-...@googlegroups.com, wood...@gmail.com
#2633: Subshell don't save the output of the commands (ctrl+o clear the terminal)
------------------------+----------------------------------------
Reporter: passat | Owner: zaytsev
Type: defect | Status: closed

Priority: major | Milestone: 4.8.33
Component: mc-core | Version: 4.7.5.5
Resolution: fixed | Keywords:
Blocked By: | Blocking:
Branch state: merged | Votes for changeset: committed-master
------------------------+----------------------------------------
Changes (by zaytsev):

* status: testing => closed


--
Ticket URL: <http://www.midnight-commander.org/ticket/2633#comment:22>

Reply all
Reply to author
Forward
0 new messages