Guest User

Untitled

a guest
Feb 21st, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. 1. M-x shell ;; Invoke a shell buffer
  2. 2. Issue shell command "tput cols" ;; Query terminfo database for number of columns
  3. 3. Output: 168 ;; You may get something different depending on your setup
  4. 4. Press "C-x C--" ;; Decrease the default face height by one step
  5. 5. Issue shell command "tput cols" again
  6. 6. Output: 168 ;; Did not change but should have increased since text face has decreased
  7. 7. Press "C-x b RET" ;; Change to some other buffer
  8. 8. Press "C-x b RET" again ;; Change back to original *shell* buffer
  9. 9. Issue shell command "tput cols" for the 3rd time
  10. 10. Output: 192 ;; The correct number of columns is finally shown
Add Comment
Please, Sign In to add comment