Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
guile /
3.0 /
ice-9 /
[ HOME SHELL ]
Name
Size
Permission
Action
peg
[ DIR ]
drwxr-xr-x
and-let-star.scm
2.53
KB
-rw-r--r--
arrays.scm
2.63
KB
-rw-r--r--
atomic.scm
1.55
KB
-rw-r--r--
binary-ports.scm
2.71
KB
-rw-r--r--
boot-9.scm
166.42
KB
-rw-r--r--
buffered-input.scm
4.82
KB
-rw-r--r--
calling.scm
10.54
KB
-rw-r--r--
command-line.scm
18.6
KB
-rw-r--r--
common-list.scm
8.95
KB
-rw-r--r--
control.scm
4.08
KB
-rw-r--r--
copy-tree.scm
3.05
KB
-rw-r--r--
curried-definitions.scm
1.79
KB
-rw-r--r--
deprecated.scm
1.54
KB
-rw-r--r--
documentation.scm
7.41
KB
-rw-r--r--
eval-string.scm
2.99
KB
-rw-r--r--
eval.scm
25.08
KB
-rw-r--r--
exceptions.scm
14.38
KB
-rw-r--r--
expect.scm
5.5
KB
-rw-r--r--
fdes-finalizers.scm
1.06
KB
-rw-r--r--
format.scm
65.47
KB
-rw-r--r--
ftw.scm
25.06
KB
-rw-r--r--
futures.scm
10.49
KB
-rw-r--r--
gap-buffer.scm
9.59
KB
-rw-r--r--
getopt-long.scm
16.49
KB
-rw-r--r--
hash-table.scm
1.77
KB
-rw-r--r--
hcons.scm
2.55
KB
-rw-r--r--
history.scm
2.29
KB
-rw-r--r--
i18n.scm
20.51
KB
-rw-r--r--
iconv.scm
3.19
KB
-rw-r--r--
lineio.scm
3.85
KB
-rw-r--r--
list.scm
1.29
KB
-rw-r--r--
local-eval.scm
9.84
KB
-rw-r--r--
ls.scm
3.2
KB
-rw-r--r--
match.scm
2.18
KB
-rw-r--r--
match.upstream.scm
35.93
KB
-rw-r--r--
networking.scm
3.33
KB
-rw-r--r--
null.scm
1.21
KB
-rw-r--r--
occam-channel.scm
7.26
KB
-rw-r--r--
optargs.scm
15.75
KB
-rw-r--r--
peg.scm
1.64
KB
-rw-r--r--
poe.scm
3.3
KB
-rw-r--r--
poll.scm
5.79
KB
-rw-r--r--
popen.scm
9.27
KB
-rw-r--r--
ports.scm
19.08
KB
-rw-r--r--
posix.scm
2.73
KB
-rw-r--r--
pretty-print.scm
16.88
KB
-rw-r--r--
psyntax-pp.scm
182.88
KB
-rw-r--r--
psyntax.scm
148.97
KB
-rw-r--r--
q.scm
4.2
KB
-rw-r--r--
quasisyntax.scm
5.22
KB
-rw-r--r--
r5rs.scm
1.56
KB
-rw-r--r--
r6rs-libraries.scm
10.38
KB
-rw-r--r--
r7rs-libraries.scm
4.28
KB
-rw-r--r--
rdelim.scm
7.72
KB
-rw-r--r--
read.scm
32.52
KB
-rw-r--r--
readline.scm
9.56
KB
-rw-r--r--
receive.scm
1.06
KB
-rw-r--r--
regex.scm
8.87
KB
-rw-r--r--
runq.scm
8.18
KB
-rw-r--r--
rw.scm
1.02
KB
-rw-r--r--
safe-r5rs.scm
7.5
KB
-rw-r--r--
safe.scm
1.25
KB
-rw-r--r--
sandbox.scm
34.24
KB
-rw-r--r--
save-stack.scm
2.15
KB
-rw-r--r--
scm-style-repl.scm
11.62
KB
-rw-r--r--
serialize.scm
3.78
KB
-rw-r--r--
session.scm
17.72
KB
-rw-r--r--
slib.scm
1.55
KB
-rw-r--r--
stack-catch.scm
1.94
KB
-rw-r--r--
streams.scm
5.86
KB
-rw-r--r--
string-fun.scm
9.68
KB
-rw-r--r--
suspendable-ports.scm
29.86
KB
-rw-r--r--
textual-ports.scm
2.29
KB
-rw-r--r--
threads.scm
12.54
KB
-rw-r--r--
time.scm
2.07
KB
-rw-r--r--
top-repl.scm
2.63
KB
-rw-r--r--
unicode.scm
1005
B
-rw-r--r--
vlist.scm
21.56
KB
-rw-r--r--
weak-vector.scm
1.2
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : readline.scm
;;;; readline.scm --- support functions for command-line editing ;;;; ;;;; Copyright (C) 1997, 1999, 2000, 2001, 2002, 2006, 2009, 2010, 2011, ;;;; 2013, 2014 Free Software Foundation, Inc. ;;;; ;;;; 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, 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 software; see the file COPYING. If not, write to ;;;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, ;;;; Boston, MA 02110-1301 USA ;;;; ;;;; Contributed by Daniel Risacher <risacher@worldnet.att.net>. ;;;; Extensions based upon code by ;;;; Andrew Archibald <aarchiba@undergrad.math.uwaterloo.ca>. (define-module (ice-9 readline) #:use-module (ice-9 session) #:use-module (ice-9 regex) #:use-module (ice-9 buffered-input) #:no-backtrace #:export (filename-completion-function add-history read-history write-history clear-history)) ;;; Dynamically link the glue code for accessing the readline library, ;;; but only when it isn't already present. (if (not (provided? 'readline)) (load-extension "guile-readline" "scm_init_readline")) (if (not (provided? 'readline)) (scm-error 'misc-error #f "readline is not provided in this Guile installation" '() '())) ;;; Run-time options (export readline-options readline-enable readline-disable) (export-syntax readline-set!) (define-option-interface (readline-options-interface (readline-options readline-enable readline-disable) (readline-set!))) ;;; MDJ 980513 <djurfeldt@nada.kth.se>: ;;; There should probably be low-level support instead of this code. ;;; Dirk:FIXME:: If the-readline-port, input-port or output-port are closed, ;;; guile will enter an endless loop or crash. (define-once new-input-prompt "") (define-once continuation-prompt "") (define-once input-port (current-input-port)) (define-once output-port (current-output-port)) (define-once read-hook #f) (define (make-readline-port) (let ((history-buffer #f)) (make-line-buffered-input-port (lambda (continuation?) ;; When starting a new read, add ;; the previously read expression ;; to the history. (if (and (not continuation?) history-buffer) (begin (add-history history-buffer) (set! history-buffer #f))) ;; Set up prompts and read a line. (let* ((prompt (if continuation? continuation-prompt new-input-prompt)) (str (%readline (if (string? prompt) prompt (prompt)) input-port output-port read-hook))) (or (eof-object? str) (string=? str "") (set! history-buffer (if history-buffer (string-append history-buffer "\n" str) str))) str))))) ;;; We only create one readline port. There's no point in having ;;; more, since they would all share the tty and history --- ;;; everything except the prompt. And don't forget the ;;; compile/load/run phase distinctions. Also, the readline library ;;; isn't reentrant. (define-once the-readline-port #f) (define-once history-variable "GUILE_HISTORY") (define-once history-file (string-append (or (getenv "HOME") ".") "/.guile_history")) (define-public readline-port (let ((do (lambda (r/w) (if (memq 'history-file (readline-options-interface)) (r/w (or (getenv history-variable) history-file)))))) (lambda () (if (not the-readline-port) (begin (do read-history) (set! the-readline-port (make-readline-port)) (add-hook! exit-hook (lambda () (do write-history) (clear-history))))) the-readline-port))) ;;; The user might try to use readline in his programs. It then ;;; becomes very uncomfortable that the current-input-port is the ;;; readline port... ;;; ;;; Here, we detect this situation and replace it with the ;;; underlying port. ;;; ;;; %readline is the low-level readline procedure. (define-public (readline . args) (let ((prompt new-input-prompt) (inp input-port)) (cond ((not (null? args)) (set! prompt (car args)) (set! args (cdr args)) (cond ((not (null? args)) (set! inp (car args)) (set! args (cdr args)))))) (apply %readline prompt (if (eq? inp the-readline-port) input-port inp) args))) (define-public (set-readline-prompt! p . rest) (set! new-input-prompt p) (if (not (null? rest)) (set! continuation-prompt (car rest)))) (define-public (set-readline-input-port! p) (cond ((or (not (file-port? p)) (not (input-port? p))) (scm-error 'wrong-type-arg "set-readline-input-port!" "Not a file input port: ~S" (list p) #f)) ((port-closed? p) (scm-error 'misc-error "set-readline-input-port!" "Port not open: ~S" (list p) #f)) (else (set! input-port p)))) (define-public (set-readline-output-port! p) (cond ((or (not (file-port? p)) (not (output-port? p))) (scm-error 'wrong-type-arg "set-readline-input-port!" "Not a file output port: ~S" (list p) #f)) ((port-closed? p) (scm-error 'misc-error "set-readline-output-port!" "Port not open: ~S" (list p) #f)) (else (set! output-port p)))) (define-public (set-readline-read-hook! h) (set! read-hook h)) (define-public apropos-completion-function (let ((completions '())) (lambda (text cont?) (if (not cont?) (set! completions (map symbol->string (apropos-internal (string-append "^" (regexp-quote text)))))) (if (null? completions) #f (let ((retval (car completions))) (begin (set! completions (cdr completions)) retval)))))) (if (provided? 'regex) (set! *readline-completion-function* apropos-completion-function)) (define-public (with-readline-completion-function completer thunk) "With @var{completer} as readline completion function, call @var{thunk}." (let ((old-completer *readline-completion-function*)) (dynamic-wind (lambda () (set! *readline-completion-function* completer)) thunk (lambda () (set! *readline-completion-function* old-completer))))) (define-once readline-repl-reader (let ((boot-9-repl-reader repl-reader)) (lambda* (repl-prompt #:optional (reader (fluid-ref current-reader))) (let ((port (current-input-port))) (if (eq? port (readline-port)) (let ((outer-new-input-prompt new-input-prompt) (outer-continuation-prompt continuation-prompt) (outer-read-hook read-hook)) (dynamic-wind (lambda () (set-buffered-input-continuation?! port #f) (set-readline-prompt! repl-prompt "... ") (set-readline-read-hook! (lambda () (run-hook before-read-hook)))) (lambda () ((or reader read) port)) (lambda () (set-readline-prompt! outer-new-input-prompt outer-continuation-prompt) (set-readline-read-hook! outer-read-hook)))) (boot-9-repl-reader repl-prompt reader)))))) (define-public (activate-readline) (if (isatty? (current-input-port)) (begin (set-current-input-port (readline-port)) (set! repl-reader readline-repl-reader) (set! (using-readline?) #t)))) (define-public (make-completion-function strings) "Construct and return a completion function for a list of strings. The returned function is suitable for passing to @code{with-readline-completion-function. The argument @var{strings} should be a list of strings, where each string is one of the possible completions." (letrec ((strs '()) (regexp #f) (completer (lambda (text continue?) (if continue? (if (null? strs) #f (let ((str (car strs))) (set! strs (cdr strs)) (if (string-match regexp str) str (completer text #t)))) (begin (set! strs strings) (set! regexp (string-append "^" (regexp-quote text))) (completer text #t)))))) completer))
Close