natureco-cli 2.17.6 → 2.17.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/chat.js +12 -4
package/package.json
CHANGED
package/src/commands/chat.js
CHANGED
|
@@ -158,19 +158,26 @@ async function chat(botName, options = {}) {
|
|
|
158
158
|
});
|
|
159
159
|
|
|
160
160
|
// ── Input kutusu (3 satır) ──────────────────────────────────────────────────
|
|
161
|
+
const inputSeparator = blessed.line({
|
|
162
|
+
bottom: 4,
|
|
163
|
+
left: 0,
|
|
164
|
+
width: '100%',
|
|
165
|
+
orientation: 'horizontal',
|
|
166
|
+
style: { fg: 'gray' },
|
|
167
|
+
});
|
|
168
|
+
|
|
161
169
|
const inputBox = blessed.textbox({
|
|
162
170
|
bottom: 1,
|
|
163
171
|
left: 0,
|
|
164
172
|
width: '100%',
|
|
165
173
|
height: 3,
|
|
166
|
-
inputOnFocus:
|
|
174
|
+
inputOnFocus: false,
|
|
175
|
+
keys: true,
|
|
176
|
+
mouse: true,
|
|
167
177
|
padding: { left: 2 },
|
|
168
|
-
border: { type: 'line' },
|
|
169
178
|
style: {
|
|
170
|
-
border: { fg: 'green' },
|
|
171
179
|
fg: 'white',
|
|
172
180
|
bg: 'default',
|
|
173
|
-
focus: { border: { fg: 'cyan' } },
|
|
174
181
|
},
|
|
175
182
|
});
|
|
176
183
|
|
|
@@ -188,6 +195,7 @@ async function chat(botName, options = {}) {
|
|
|
188
195
|
|
|
189
196
|
screen.append(logoBox);
|
|
190
197
|
screen.append(messageBox);
|
|
198
|
+
screen.append(inputSeparator);
|
|
191
199
|
screen.append(inputBox);
|
|
192
200
|
screen.append(statusBar);
|
|
193
201
|
|