[tip] pretty-print honoring terminal column width

Q&A's, tips, howto's
Post Reply
hartrock
Posts: 136
Joined: Wed Aug 07, 2013 9:37 pm

[tip] pretty-print honoring terminal column width

Post 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)

Post Reply