[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/coterm 7941200 61/80: Describe package
From: |
ELPA Syncer |
Subject: |
[elpa] externals/coterm 7941200 61/80: Describe package |
Date: |
Wed, 13 Oct 2021 18:57:37 -0400 (EDT) |
branch: externals/coterm
commit 7941200c5c0e3ad28e67fe9f340f3b87f49e2123
Author: m <>
Commit: m <>
Describe package
---
README | 1 +
coterm.el | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
2 files changed, 64 insertions(+), 1 deletion(-)
diff --git a/README b/README
new file mode 120000
index 0000000..e410317
--- /dev/null
+++ b/README
@@ -0,0 +1 @@
+coterm.el
\ No newline at end of file
diff --git a/coterm.el b/coterm.el
index f95ed90..2edd904 100644
--- a/coterm.el
+++ b/coterm.el
@@ -1,5 +1,67 @@
;;; coterm.el --- Terminal emulation for comint -*- lexical-binding: t; -*-
+;; Filename: coterm.el
+;; Description: Terminal emulation for comint
+;; Author: jakanakaevangeli <jakanakaevangeli@chiru.no>
+;; Created: 2021-10-10
+;; Version 1.0
+;; URL: https://repo.or.cz/emacs-coterm.git
+
+;; This file is not part of GNU Emacs.
+
+;; This program is free software: you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+;;; Commentary
+
+;; If the global `coterm-mode' is enabled, proper terminal emulation will be
+;; supported for all newly spawned comint processes. This allows you to use
+;; more complex console programs such as "less" and "mpv" and full-screen TUI
+;; programs such as "vi", "top", "htop" or even "emacs -nw".
+;;
+;; In addition to that, the following two local minor modes may be used:
+;;
+;; `coterm-char-mode': If enabled, most characters you type are sent directly
+;; to the subprocess, which is useful for interacting with full-screen TUI
+;; programs.
+;;
+;; `coterm-auto-char-mode' If enabled, coterm will enter and leave
+;; `coterm-char-mode' automatically as appropriate. For example, if you
+;; execute "less" in a shell buffer, coterm will detect that "less" is running
+;; and automatically enable char mode so that you can interact with less
+;; normally. Once you leave the "less" program, coterm will cisable char mode
+;; so that you can interact with your shell in the normal comint way. This
+;; mode is enabled by default in all coterm comint buffers.
+;;
+;; Automatic entrance into char mode is indicated by "AChar" in the modeline.
+;; Non-automatic entrance into char mode is indicated by "Char".
+;; Automatic exit of char mode is indicated by no text in the modeline.
+;; Non-automatic exit of char mode is indicated by "Line".
+;;
+;; The command `coterm-char-mode-cycle' is a handy command to cycle between
+;; automatic char-mode, char-mode enabled and char-mode disabled.
+;;
+;; Installation:
+;;
+;; Add the following to your Emacs init file:
+;;
+;; (add-to-list 'load-path "/path/to/emacs-coterm")
+;; (require 'coterm)
+;; (coterm-mode)
+;; ;; Optional: bind `coterm-char-mode-cycle' to C-; in comint
+;; (with-eval-after-load 'comint
+;; (define-key comint-mode-map (kbd "C-;") #'coterm-char-mode-cycle))
+
(require 'term)
(eval-when-compile
(require 'cl-lib))
@@ -646,7 +708,7 @@ non-whitespace text."
(defun coterm--t-insert (proc-filt process str newlines)
"Insert STR using PROC-FILT and PROCESS.
Synchronise PROCESS's mark beforehand and insert at its position.
-NEWLINES is the number of newlines STR contains. Unless it is
+NEWLINES is the number of newlines STR contains. Unless it is
zero, insertion must happen at the end of accessible portion of
buffer and the scrolling region must cover the whole screen."
(coterm--t-adjust-pmark proc-filt process)
- [elpa] externals/coterm 654e286 49/80: Fix mistake in turning mode off, (continued)
- [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, 2021/10/13
- [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 <=
- [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
- [elpa] externals/coterm f48ef18 26/80: Fix \e[M and \e[L outside scrolling region, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm 3599955 35/80: Fixes for documentation and compiler warnings, ELPA Syncer, 2021/10/13
- [elpa] externals/coterm c535023 36/80: Safeguard against negative values in move-to-column, ELPA Syncer, 2021/10/13