[tip] pretty-print honoring terminal column width

Q&A's, tips, howto's

[tip] pretty-print honoring terminal column width

Postby hartrock » Sat Nov 30, 2013 5:24 pm

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)
hartrock
 
Posts: 136
Joined: Wed Aug 07, 2013 9:37 pm

Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 1 guest

cron