mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 11:30:13 +08:00
feat: display code block in terminal to different color
This commit is contained in:
1 parent
8fb8af036d
commit
6cd348433a
3 files changed
+27
-19
No files matched your search
@@ -48,10 +48,10 @@ async function handleCommand(command) {
|
||||
|
||||
async function handleResponse({ responses, hints, end }) {
|
||||
if (responses) {
|
||||
await printResponses(responses, 120)
|
||||
await printResponses(responses, 90)
|
||||
}
|
||||
if (hints) {
|
||||
await printHints(hints, 120)
|
||||
await printHints(hints, 90)
|
||||
}
|
||||
if (end) {
|
||||
console.log(colorize('Quest completed!', 'blue'))
|
||||
|
||||
Reference in new issue
Block a user