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:
bd8f5b5
)
csi_* in alphabetic order in source
author
Jason Woofenden
<jason@jasonwoof.com>
Thu, 31 Jan 2013 03:37:07 +0000
(22:37 -0500)
committer
Jason Woofenden
<jason@jasonwoof.com>
Thu, 31 Jan 2013 03:37:07 +0000
(22:37 -0500)
terminal.coffee
patch
|
blob
|
history
diff --git
a/terminal.coffee
b/terminal.coffee
index
b66bf00
..
11c79e0
100644
(file)
--- a/
terminal.coffee
+++ b/
terminal.coffee
@@
-109,22
+109,6
@@
class Terminal
else
return deef_alt
else
return deef_alt
- # clear (some or all of) current line
- csi_K: (direction) ->
- switch @fix_esc_arg direction, '0'
- when '0' # erase to right
- for i in [@x...@width]
- @text[@y][i] = ' '
- @attributes[@y][i] = @a
- when '1' # erase to left
- for i in [0...@x]
- @text[@y][i] = ' '
- @attributes[@y][i] = @a
- when '0' # erase whole line
- for i in [0...@width]
- @text[@y][i] = ' '
- @attributes[@y][i] = @a
-
# set cursor position (one based)
csi_H: (row, column) ->
row = 0 + @fix_esc_arg row, 1
# set cursor position (one based)
csi_H: (row, column) ->
row = 0 + @fix_esc_arg row, 1
@@
-141,6
+125,22
@@
class Terminal
else
console.log "tried to move cursor to invalid row: #{row}"
else
console.log "tried to move cursor to invalid row: #{row}"
+ # clear (some or all of) current line
+ csi_K: (direction) ->
+ switch @fix_esc_arg direction, '0'
+ when '0' # erase to right
+ for i in [@x...@width]
+ @text[@y][i] = ' '
+ @attributes[@y][i] = @a
+ when '1' # erase to left
+ for i in [0...@x]
+ @text[@y][i] = ' '
+ @attributes[@y][i] = @a
+ when '0' # erase whole line
+ for i in [0...@width]
+ @text[@y][i] = ' '
+ @attributes[@y][i] = @a
+
# set color, bold, underline, etc
csi_m: ->
args = []
# set color, bold, underline, etc
csi_m: ->
args = []