busyloop/powerbar

Bar too wide on Mac OS 10.7 Terminal.app

Closed this issue · 0 comments

The native mac terminal app seems to be one character too wide. If I run PowerBar in the iTerm.app, all is good. If I run the same code in the Terminal.app, the bar takes two lines and looks very strange.

I was able to fix the issue by

powerbar.define_singleton_method :terminal_width do                                                                                                                                              
  ANSI::Terminal.terminal_width-1                                                                                                                                                                
end