403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.216.117
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1073854427 ( 1073854427)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/share/emacs/28.2/lisp/eshell/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/emacs/28.2/lisp/eshell/em-prompt.elc
;ELC
;;; Compiled
;;; in Emacs version 28.2
;;; with all optimizations.



(byte-code "\300\301!\210\302\303\304\305\306\307\310\311&\210\312\313\314\315\316DD\317\320\321\322\323\310\303&	\210\324\325\326\"\210\312\327\314\315\330DD\331\322\315\310\303&\210\312\332\314\315\333DD\334\322\335\310\303&\210\312\336\314\315\337DD\340\322\341\310\303&\210\342\303\343\344\310\303%\210\312\345\314\315\346DD\347\322\323\350\351\310\303&	\210\312\352\314\315\353DD\354\322\323\350\355\310\303&	\207" [require esh-mode 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 funcall function #[0 "\300\207" [nil] 1 #1=""] "A list of functions to call when loading `eshell-prompt'." :version "24.1" :type hook autoload eshell/pwd "em-dirs" eshell-prompt-function #[0 "\300\207" [#[0 "\300\301 !\302 \303U\203\304\202\305P\207" [abbreviate-file-name eshell/pwd user-uid 0 " # " " $ "] 3]] 1 #1#] "A function that returns the Eshell prompt string.\nMake sure to update `eshell-prompt-regexp' so that it will match your\nprompt." eshell-prompt-regexp #[0 "\300\207" ["^[^#$\n]* [#$] "] 1 #1#] "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 #[0 "\300\207" [t] 1 #1#] "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." eshell-before-prompt-hook #[0 "\300\207" [nil] 1 #1#] "A list of functions to call before outputting the prompt." :options (eshell-begin-on-new-line) eshell-after-prompt-hook #[0 "\300\207" [nil] 1 #1#] "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)
(defvar eshell-prompt-mode-map (byte-code "\300 \301\302\303#\210\301\304\305#\210\207" [make-sparse-keymap define-key "" eshell-next-prompt "" eshell-previous-prompt] 5))
#@105 Non-nil if Eshell-Prompt mode is enabled.
Use the command `eshell-prompt-mode' to change this variable.
(defvar eshell-prompt-mode nil (#$ . 2688))
(make-variable-buffer-local 'eshell-prompt-mode)
#@626 Minor mode for eshell-prompt module.

This is a minor mode.  If called interactively, toggle the
`Eshell-Prompt mode' mode.  If the prefix argument is positive, enable
the mode, and if it is zero or negative, disable the mode.

If called from Lisp, toggle the mode if ARG is `toggle'.  Enable the
mode if ARG is nil, omitted, or is a positive number.  Disable the
mode if ARG is a negative number.

To check whether the minor mode is enabled in the current buffer,
evaluate `eshell-prompt-mode'.

The mode's hook is called both when the mode is enabled and when it is
disabled.

\{eshell-prompt-mode-map}

(fn &optional ARG)
(defalias 'eshell-prompt-mode #[256 "\302 \303=\203
?\202\247\203\304W\203\305\202\306\307\301!\2031\310\300	\"\2031\300	B\311\312\203;\313\202<\314\"\210\315\316!\203^\302 \203P\211\302 \232\203^\317\320\203Z\321\202[\322\323#\210\210\324 \210\207" [eshell-prompt-mode local-minor-modes current-message toggle 1 nil t boundp delq run-hooks eshell-prompt-mode-hook eshell-prompt-mode-on-hook eshell-prompt-mode-off-hook called-interactively-p any message "Eshell-Prompt mode %sabled%s" "en" "dis" " in current buffer" force-mode-line-update] 6 (#$ . 2892) (byte-code "\203\n\301!\202\302C\207" [current-prefix-arg prefix-numeric-value toggle] 2)])
(defvar eshell-prompt-mode-hook nil)
(byte-code "\301\302N\204\f\303\301\302\304#\210\303\301\305\306#\210\303\301\307\310C#\210\311\312\310\310\211%\207" [eshell-prompt-mode-map eshell-prompt-mode-hook variable-documentation put "Hook run after entering or leaving `eshell-prompt-mode'.\nNo problems result if this variable is not bound.\n`add-hook' automatically binds it.  (This is true for all hook variables.)" custom-type hook standard-value nil add-minor-mode eshell-prompt-mode] 6)
#@32 Initialize the prompting code.
(defalias 'eshell-prompt-initialize #[0 "?\205\"\304\305\306\307\310$\210\311\301!\210	\203\311\302!\210	\311\303!\210\312\313 \207" [eshell-non-interactive-p eshell-prompt-regexp paragraph-start eshell-skip-prompt-function add-hook eshell-post-command-hook eshell-emit-prompt nil t make-local-variable eshell-skip-prompt eshell-prompt-mode] 5 (#$ . 4697)])
#@54 Emit a prompt if eshell is being used interactively.
(defalias 'eshell-emit-prompt #[0 "\304\300!\203\305\306\307!\210	\204\n`\305\223\210\202-	 \203&\310\311G\312$\210\211\313\305\"\266\306\314!\207" [ansi-color-context-region eshell-prompt-function eshell-last-output-end eshell-highlight-prompt boundp nil run-hooks eshell-before-prompt-hook add-text-properties 0 (read-only t font-lock-face eshell-prompt front-sticky (font-lock-face read-only) rear-nonsticky (font-lock-face read-only)) eshell-output-filter eshell-after-prompt-hook] 6 (#$ . 5098)])
#@246 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.

(fn REGEXP ARG)
(defalias 'eshell-backward-matching-input #[514 "\301Q\212\302V\203\302\202\303\210\304\305\306$\205`)\211\204(\307\310!\210\311 \207\211b\210\312 \207" [eshell-prompt-regexp ".*" 0 1 re-search-backward nil t message "Not found" ding eshell-bol] 8 (#$ . 5672) (eshell-regexp-arg "Backward input matching (regexp): ")])
#@254 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.

(fn REGEXP ARG)
(defalias 'eshell-forward-matching-input #[514 "\300[\"\207" [eshell-backward-matching-input] 5 (#$ . 6256) (eshell-regexp-arg "Forward input matching (regexp): ")])
#@83 Move to end of Nth next prompt in the buffer.
See `eshell-prompt-regexp'.

(fn N)
(defalias 'eshell-next-prompt #[257 "\203>\211\302W\203!\303	\304\305#\203\306\302\224\307\"\203\n\211T\262\202\211\302V\203E\310	\304\305#\2037\306\302\224\307\"\203'\211S\262\202!\310	\304\305$\210\311 \207" [eshell-highlight-prompt eshell-prompt-regexp 0 re-search-backward nil t get-text-property read-only re-search-forward eshell-skip-prompt] 6 (#$ . 6683) "p"])
#@87 Move to end of Nth previous prompt in the buffer.
See `eshell-prompt-regexp'.

(fn N)
(defalias 'eshell-previous-prompt #[257 "\300y\210\301[!\207" [0 eshell-next-prompt] 3 (#$ . 7155) "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 #[0 "\301 \302!\205\303\225X\205\303\225b\207" [eshell-prompt-regexp line-end-position looking-at 0] 3 (#$ . 7354)])
(provide 'em-prompt)

Youez - 2016 - github.com/yon3zu
LinuXploit