MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 18.116.81.133
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/emacs/24.3/lisp/eshell/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/emacs/24.3/lisp/eshell/em-prompt.elc
;ELC
;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:10:51 2024
;;; from file /builddir/build/BUILD/emacs-24.3/lisp/eshell/em-prompt.el
;;; in Emacs version 24.3.1
;;; with all optimizations.

;;; This file uses dynamic docstrings, first added in Emacs 19.29.

;;; This file does not contain utf-8 non-ASCII characters,
;;; and so can be loaded in Emacs versions earlier than 23.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


(byte-code "\300\301\302\303\304\305\306\307&\210\310\311\302\312\313\314\315\316\306\301&	\210\310\317\320\321\315\322\306\301&\210\310\323\324\325\315\326\306\301&\210\310\327\330\331\315\332\306\301&\210\333\301\334\335\306\301%\210\336\337\340\301#\210\336\337\341\342\343!\206Q\330#\210\310\344\302\345\315\316\346\347\306\301&	\210\310\350\302\351\315\316\346\352\306\301&	\207" [custom-declare-group eshell-prompt nil "This module provides command prompts, and navigation between them,\nas is common with most shells." :tag "Command prompts" :group eshell-module custom-declare-variable eshell-prompt-load-hook "A list of functions to call when loading `eshell-prompt'." :version "24.1" :type hook eshell-prompt-function #'(lambda nil (concat (abbreviate-file-name (eshell/pwd)) (if (= (user-uid) 0) " # " " $ "))) "A function that returns the Eshell prompt string.\nMake sure to update `eshell-prompt-regexp' so that it will match your\nprompt." function eshell-prompt-regexp "^[^#$\n]* [#$] " "A regexp which fully matches your eshell prompt.\nThis setting is important, since it affects how eshell will interpret\nthe lines that are passed to it.\nIf this variable is changed, all Eshell buffers must be exited and\nre-entered for it to take effect." regexp eshell-highlight-prompt t "If non-nil, Eshell should highlight the prompt." boolean custom-declare-face ((default :weight bold) (((class color) (background light)) :foreground "Red") (((class color) (background dark)) :foreground "Pink")) "The face used to highlight prompt strings.\nFor highlighting other kinds of strings -- similar to shell mode's\nbehavior -- simply use an output filer which changes text properties." put eshell-prompt-face face-alias obsolete-face purecopy "22.1" eshell-before-prompt-hook "A list of functions to call before outputting the prompt." :options (eshell-begin-on-new-line) eshell-after-prompt-hook "A list of functions to call after outputting the prompt.\nNote that if `eshell-scroll-show-maximum-output' is non-nil, then\nsetting `eshell-show-maximum-output' here won't do much.  It depends\non whether the user wants the resizing to happen while output is\narriving, or after." (eshell-show-maximum-output)] 10)
#@32 Initialize the prompting code.
(defalias 'eshell-prompt-initialize #[nil "?\205+\305\306\307\310\311$\210\312\301!\210	\203\312\302!\210	\312\303!\210\313\314\f\315\316#\210\314\f\317\320#\207" [eshell-non-interactive-p eshell-prompt-regexp paragraph-start eshell-skip-prompt-function eshell-command-map add-hook eshell-post-command-hook eshell-emit-prompt nil t make-local-variable eshell-skip-prompt define-key [(control 110)] eshell-next-prompt [(control 112)] eshell-previous-prompt] 5 (#$ . 2783)])
#@54 Emit a prompt if eshell is being used interactively.
(defalias 'eshell-emit-prompt #[nil "\305\306!\210\204	`\307\223\210\202' \203\310\311\nG\312\n$\210\n\313\307\f\"\210*\305\314!\207" [eshell-prompt-function eshell-last-output-end prompt eshell-highlight-prompt string run-hooks eshell-before-prompt-hook nil add-text-properties 0 (read-only t face eshell-prompt rear-nonsticky (face read-only)) eshell-output-filter eshell-after-prompt-hook] 5 (#$ . 3299)])
#@229 Search backward through buffer for match for REGEXP.
Matches are searched for on lines that match `eshell-prompt-regexp'.
With prefix argument N, search for Nth previous match.
If N is negative, find the next or Nth next match.
(defalias 'eshell-backward-matching-input #[(regexp arg) "\305	Q\212\306V\203\306\202\307\210\310\n\311\312$\205`)\211\204,\313\314!\210\315 \2021\fb\210\316 *\207" [eshell-prompt-regexp regexp re arg pos ".*" 0 1 re-search-backward nil t message "Not found" ding eshell-bol] 6 (#$ . 3778) (eshell-regexp-arg "Backward input matching (regexp): ")])
#@237 Search forward through buffer for match for REGEXP.
Matches are searched for on lines that match `eshell-prompt-regexp'.
With prefix argument N, search for Nth following match.
If N is negative, find the previous or Nth previous match.
(defalias 'eshell-forward-matching-input #[(regexp arg) "\302	[\"\207" [regexp arg eshell-backward-matching-input] 3 (#$ . 4376) (eshell-regexp-arg "Forward input matching (regexp): ")])
#@75 Move to end of Nth next prompt in the buffer.
See `eshell-prompt-regexp'.
(defalias 'eshell-next-prompt #[(n) "\301!\210\302 \207" [n forward-paragraph eshell-skip-prompt] 2 (#$ . 4806) "p"])
#@79 Move to end of Nth previous prompt in the buffer.
See `eshell-prompt-regexp'.
(defalias 'eshell-previous-prompt #[(n) "\301T[!\207" [n eshell-next-prompt] 2 (#$ . 5005) "p"])
#@130 Skip past the text matching regexp `eshell-prompt-regexp'.
If this takes us past the end of the current line, don't skip at all.
(defalias 'eshell-skip-prompt #[nil "\302 \303	!\205\304\225X\205\304\225b)\207" [eol eshell-prompt-regexp line-end-position looking-at 0] 2 (#$ . 5188)])
(provide 'em-prompt)

MMCT - 2023