Skip to content

Commit be13cf0

Browse files
dorlugasigalCopilot
andcommitted
fix(server): improve startup banner colors and remove clipboard notice
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent aab47d9 commit be13cf0

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/server.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ function createTermBeamServer(overrides = {}) {
174174
const gn = '\x1b[38;5;114m'; // green
175175
const dm = '\x1b[2m'; // dim
176176

177+
const bl = '\x1b[38;5;75m'; // light blue
178+
177179
let publicUrl = null;
178180
if (config.useTunnel) {
179181
const tunnel = await startTunnel(config.port, {
@@ -199,7 +201,6 @@ function createTermBeamServer(overrides = {}) {
199201
console.log('');
200202

201203
if (publicUrl) {
202-
const bl = '\x1b[34m'; // blue
203204
console.log(` Public: ${bl}${publicUrl}${rs}`);
204205
}
205206
console.log(` Local: http://localhost:${config.port}`);
@@ -211,16 +212,14 @@ function createTermBeamServer(overrides = {}) {
211212
const qrDisplayUrl = qrUrl; // clean URL shown in console text
212213
const qrCodeUrl = config.password ? `${qrUrl}?ott=${auth.generateShareToken()}` : qrUrl;
213214
console.log('');
214-
console.log(` ${dm}📋 Clipboard requires HTTPS — use the Public or localhost URL${rs}`);
215-
console.log('');
216215
try {
217216
const qr = await QRCode.toString(qrCodeUrl, { type: 'terminal', small: true });
218217
console.log(qr);
219218
} catch {
220219
/* ignore */
221220
}
222221

223-
console.log(` Scan the QR code or open: ${qrDisplayUrl}`);
222+
console.log(` Scan the QR code or open: ${bl}${qrDisplayUrl}${rs}`);
224223
if (config.password) console.log(` Password: ${gn}${config.password}${rs}`);
225224
console.log('');
226225

0 commit comments

Comments
 (0)