Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
watch-my-terminal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9b7866
)
don't wrap after printing in last cell
author
Jason Woofenden
<jason@jasonwoof.com>
Thu, 31 Jan 2013 04:53:49 +0000
(23:53 -0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Thu, 31 Jan 2013 04:53:49 +0000
(23:53 -0500)
terminal.coffee
patch
|
blob
|
history
diff --git
a/terminal.coffee
b/terminal.coffee
index
37d3971
..
19296bf
100644
(file)
--- a/
terminal.coffee
+++ b/
terminal.coffee
@@
-92,11
+92,11
@@
class Terminal
when '\x0a', '\x0b' # lf, vertical tab (same thing)
@wrap_to_next_line()
else
+ if @x >= @width
+ @wrap_to_next_line()
@text[@y][@x] = c
@attributes[@y][@x] = @a
@x += 1
- if @x is @width
- @wrap_to_next_line()
return
set_attribute_bits: (mask, value) ->