Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2783)

Unified Diff: chrome/browser/resources/hterm/js/options.js

Issue 8680034: Initial landing of Screen, Terminal, and VT100 classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix license line wrapping Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/hterm/js/mock_row_provider.js ('k') | chrome/browser/resources/hterm/js/screen.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/hterm/js/options.js
diff --git a/chrome/browser/resources/hterm/js/options.js b/chrome/browser/resources/hterm/js/options.js
new file mode 100644
index 0000000000000000000000000000000000000000..d3f968e136aedf247b43ab34f2731dd283b52182
--- /dev/null
+++ b/chrome/browser/resources/hterm/js/options.js
@@ -0,0 +1,35 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @fileoverview This file implements the hterm.Options class,
+ * which stores current operating conditions for the terminal. This object is
+ * used instead of a series of parameters to allow saving/restoring of cursor
+ * conditions easily, and to provide an easy place for common configuration
+ * options.
+ *
+ * Original code by Cory Maccarrone.
+ */
+
+/**
+ * Constructor for the hterm.Options class, optionally acting as a copy
+ * constructor.
+ *
+ * @param {hterm.Options=} opt_copy Optional instance to copy.
+ * @constructor
+ */
+hterm.Options = function(opt_copy) {
+ // All attributes in this class are public to allow easy access by the
+ // terminal.
+
+ this.wraparound = opt_copy ? opt_copy.wraparound : true;
+ this.reverseWraparound = opt_copy ? opt_copy.reverseWraparound : false;
+ this.originMode = opt_copy ? opt_copy.originMode : false;
+ this.autoLinefeed = opt_copy ? opt_copy.autoLinefeed : true;
+ this.specialChars = opt_copy ? opt_copy.specialChars : false;
+ this.cursorVisible = opt_copy ? opt_copy.cursorVisible : true;
+ this.cursorBlink = opt_copy ? opt_copy.cursorBlink : true;
+ this.insertMode = opt_copy ? opt_copy.insertMode : false;
+ this.reverseVideo = opt_copy ? opt_copy.reverseVideo : false;
+};
« no previous file with comments | « chrome/browser/resources/hterm/js/mock_row_provider.js ('k') | chrome/browser/resources/hterm/js/screen.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698