Page 1 of 1

[tip] pretty-print honoring terminal column width

Posted: Sat Nov 30, 2013 5:24 pm
by hartrock
This should work under most (all?) Linux systems:

Code: Select all

(setq tput_cols (exec "tput cols"))
(if tput_cols (pretty-print (- (int (tput_cols 0)) 11)))
;;
;; then try:
(symbols)