Skip to content

Commit

Permalink
make task output monospaced font
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswayoub committed Jan 9, 2015
1 parent 3c6b305 commit c1d1c90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Vagrant Manager/TaskOutputWindow.m
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ - (void)receivedOutput:(NSNotification*)notif {

//smart scrolling logic for command output
BOOL scroll = (NSMaxY(self.outputTextView.visibleRect) == NSMaxY(self.outputTextView.bounds));
[self.outputTextView.textStorage appendAttributedString:[[NSAttributedString alloc]initWithString:str]];
[self.outputTextView.textStorage appendAttributedString:[[NSAttributedString alloc] initWithString:str]];
if([NSFont fontWithName:@"Menlo" size:11]) {
[self.outputTextView.textStorage setFont:[NSFont fontWithName:@"Menlo" size:11]];
}
if (scroll) {
[self.outputTextView scrollRangeToVisible: NSMakeRange(self.outputTextView.string.length, 0)];
}
Expand Down

0 comments on commit c1d1c90

Please sign in to comment.