Skip to content

Is -s option required? #1

Description

@soichih

I have a tty record file, but I don't know what width/height it was recorded on. Do I need to know the size before running this tool? In another words, is -s option required?

If I run it without -s option, I get following error message.

2014-01-13 13:07:30 UTC [hayashis@soichi6]$ tty2js test.tty test.tty.js
frame 97 (13 skipped @ Thu Jan 01 1970 00:15:59 GMT+0000 (UTC)
/usr/local/node-v0.10.23-linux-x64/lib/node_modules/tty2js/node_modules/headless-terminal/vendor/term.js:1078
this.lines[this.y + this.ybase][this.x] = [this.curAttr, ch];
^
TypeError: Cannot set property '0' of undefined
at HeadlessTerminal.Terminal.write (/usr/local/node-v0.10.23-linux-x64/lib/node_modules/tty2js/node_modules/headless-terminal/vendor/term.js:1078:55)
at Object. (/usr/local/node-v0.10.23-linux-x64/lib/node_modules/tty2js/tty2js.js:103:16)
at Object.self.tap (/usr/local/node-v0.10.23-linux-x64/lib/node_modules/tty2js/node_modules/binary/index.js:248:12)
at Object.charset (/usr/local/node-v0.10.23-linux-x64/lib/node_modules/tty2js/tty2js.js:99:10)
at Object.self.tap (/usr/local/node-v0.10.23-linux-x64/lib/node_modules/tty2js/node_modules/binary/index.js:248:12)
at Object. (/usr/local/node-v0.10.23-linux-x64/lib/node_modules/tty2js/tty2js.js:97:6)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions