Skip to content

Conversation

@parisk
Copy link
Contributor

@parisk parisk commented Oct 23, 2016

Document the options of the terminal constructor.

Closes #313 in combination with xtermjs/xtermjs.org#5.

@blink1073
Copy link
Contributor

Are these intended to be the supported options for get/setOption as well?

@parisk parisk force-pushed the issue-#313-document-terminal-constructor branch from a7afb04 to a9417c6 Compare October 23, 2016 14:23
@parisk
Copy link
Contributor Author

parisk commented Oct 23, 2016

@blink1073 definitely. Whatever option is supported in the constructor should be supported in getOption and setOption as well.

@Tyriar
Copy link
Member

Tyriar commented Oct 23, 2016

@parisk geometry/cols/rows would need special handling in setOption to keep them in sync.

@parisk
Copy link
Contributor Author

parisk commented Oct 23, 2016

Let's put geometry out of the equation to keep this simple.

@parisk parisk added this to the 2.1.0 milestone Oct 23, 2016
@blink1073
Copy link
Contributor

Perhaps a note in get/setOption pointing to the constructor options then?

@blink1073
Copy link
Contributor

And does this mean that the rest of Terminal.defaults are not part of the public API?

@parisk
Copy link
Contributor Author

parisk commented Oct 24, 2016

@blink1073 only what is documented in http://xtermjs.org/docs/ should be considered part of the public API.

@blink1073
Copy link
Contributor

blink1073 commented Oct 24, 2016

Thank you for clarifying. I ask because I wrote the TypeScript type declarations file for xterm on DefinitelyTyped, and will update it once the options are finalized.

@parisk
Copy link
Contributor Author

parisk commented Oct 24, 2016

Ping @Tyriar for a code review, when it's OK for you.

@parisk parisk merged commit 06a9334 into master Oct 24, 2016
@Tyriar Tyriar deleted the issue-#313-document-terminal-constructor branch October 24, 2016 16:05
@takluyver
Copy link

Thanks :-)

@parisk
Copy link
Contributor Author

parisk commented Oct 25, 2016

What about leaving geometry out of the equation?

On Sun, 23 Oct 2016 at 17:33, Daniel Imms [email protected] wrote:

@parisk https://github.com/parisk geometry/cols/rows would need special
handling in setOption to keep them in sync.


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#321 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABIi8L0vwUEGR0sMNQ2p4Z3niiSE15IKks5q23BVgaJpZM4KeJHS
.

Paris Kasidiaris
CEO

SourceLair, Private Company
www.sourcelair.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants