12.21.2024

01.25.2011

jrunscript on OS X

Filed under: devel @ 22:08

I just found this handy utility.

$ man jrunscript

I’m using it to deobfuscate some JavaScript.

01.13.2011

Prevent man, nano from Clearing Screen on Exit in Terminal.app

Filed under: note to self @ 12:42
$ mkdir ~/.terminfo
$ infocmp > ~/.terminfo/xterm-color-noclear.terminfo
$ nano ~/.terminfo/xterm-color-noclear.terminfo
# 1. Change 'xterm-color' on second line to 'xterm-color-noclear'
# 2. Remove 'smcup' and 'rmcup'
$ tic ~/.terminfo/xterm-color-noclear.terminfo
$ export TERM=xterm-color-noclear
# Add export line to .profile

More info at: Synologic’s Stop gnome-terminal screen clear, Fix Log’s Stop gnome-terminal screen clear, and The Shallow Sky’s Exorcising the Evil Alternate Screen.

Update

I had to turn this off since it was affecting ssh terminals. Will revisit.

$ nano
Error opening terminal: xterm-color-noclear.

© mdawaffe (Michael D Adams) - Powered by WordPress - Full Credits