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; |
+}; |