[tip] pretty-print honoring terminal column width

Started by hartrock, November 30, 2013, 09:24:33 AM

Previous topic - Next topic

hartrock

This should work under most (all?) Linux systems:

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