[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/coterm bd7c681 73/80: Further document the "less" line-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/coterm bd7c681 73/80: Further document the "less" line-wrap workaround |
Date: |
Wed, 13 Oct 2021 18:57:39 -0400 (EDT) |
branch: externals/coterm
commit bd7c681c69cf45e58c54172dfef1e556fece6505
Author: Miha Rihtaršič <miha@kamnitnik.top>
Commit: Miha Rihtaršič <miha@kamnitnik.top>
Further document the "less" line-wrap workaround
---
coterm.el | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/coterm.el b/coterm.el
index cbfa060..35ff1ef 100644
--- a/coterm.el
+++ b/coterm.el
@@ -497,7 +497,8 @@ is the process mark."
;; will follow suit and insert long lines unchanged. However, this means that
;; terminal emulation isn't fully accurate for long lines. Up to now, "less"
;; was the only program I've encountered that relies on accurate line wrapping,
-;; so a workaround aimed at "less" specifically was implemented.
+;; so a workaround aimed at "less" specifically was implemented (search for the
+;; term "less" in the function `coterm--t-emulate-terminal'.
(defconst coterm--t-control-seq-regexp
;; Differences from `term-control-seq-regexp':
@@ -914,8 +915,15 @@ buffer and the scrolling region must cover the whole
screen."
(coterm--t-goto coterm--t-row coterm--t-col)
(eq (char-before) ?\s))
;; Awkward hack to make line-wrapping work in "less".
- ;; Very specific for the way "less" performs wrapping.
- ;; For all other cases, coterm does not support any
+ ;; Very specific for the way "less" performs wrapping:
+ ;; When reaching the end of line, instead of sending
+ ;; "\r\n" to go to the start of the next line, it sends
+ ;; " \b": a space which wraps to the next line in most
+ ;; terminals and a backspace to move to the start of the
+ ;; line. Here we detect this and handle it like an
+ ;; ordinary "\r\n".
+ ;;
+ ;; For all other cases, coterm does not perform any
;; wrapping at all.
(delete-char -1)
(coterm--t-down-line proc-filt process)
- [elpa] externals/coterm c825746 27/80: Fix issue with ansi-color context marker, (continued)
- [elpa] externals/coterm c825746 27/80: Fix issue with ansi-color context marker, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 73aa1f3 31/80: Properly handle OSC and Emacs specific escape sequences, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm f4f69ab 32/80: Export TERMINFO environment variable, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 654e286 49/80: Fix mistake in turning mode off, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm fd4041e 58/80: Remove redundant "(dirty)", ELPA Syncer, 2021/10/13
- [elpa] externals/coterm edfdbb7 50/80: Ignore sequences \e= end \e> (output by mpv), ELPA Syncer, 2021/10/13
- [elpa] externals/coterm e534194 60/80: Fix buffer-locality of saved scroll-margin, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 952b917 52/80: Better indication of current char-mode status, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm bfcd5e4 63/80: Properly indicate that pmark is synchronized, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 96a636e 64/80: Protect user input at EOB more accurately, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm bd7c681 73/80: Further document the "less" line-wrap workaround,
ELPA Syncer <=
- [elpa] externals/coterm e0a38cc 53/80: Add more documentation for auto char mode, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 10205c8 66/80: Improve README, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 7941200 61/80: Describe package, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm e268359 59/80: Account for home marker reposition when clearing screen, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 8a5ffd9 68/80: Fix 'coterm--t-goto' for column zero, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 11a9594 78/80: [auto-char] Detect prompts from "less -M", ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 8ca9291 71/80: Minor fixes to description, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 07a2570 69/80: Work around a line wrapping issue with "less", ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 139e8d0 79/80: Fix for Emacs 27, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 5aea1c8 25/80: Fixup some comments, ELPA Syncer, 2021/10/13