| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d049919 commit 72d659a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -183,9 +183,13 @@ Interface.prototype.setPrompt = function(prompt) { | |||
| 183 | 183 | ||
| 184 | 184 | ||
| 185 | 185 | Interface.prototype._setRawMode = function(mode) { | |
| 186 | + const wasInRawMode = this.input.isRaw; | ||
| 187 | + | ||
| 186 | 188 | if (typeof this.input.setRawMode === 'function') { | |
| 187 | - return this.input.setRawMode(mode); | ||
| 189 | + this.input.setRawMode(mode); | ||
| 188 | 190 | } | |
| 191 | + | ||
| 192 | + return wasInRawMode; | ||
| 189 | 193 | }; | |
| 190 | 194 | ||
| 191 | 195 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments