Skip to content

Broken special character encoding on Windows Terminal #113

@prcdpr

Description

@prcdpr

Windows Terminal supports emoji:

deno run https://deno.land/std/examples/welcome.ts

image

However, cliffy Prompt with emoji prints garbled output instead

import { Input } from "https://deno.land/x/cliffy/prompt/mod.ts";
const name: string = await Input.prompt( {message: `What's your name?`, pointer: '🦕' } );
deno run --unstable https://gist.githubusercontent.com/prcdpr/a202eabe338fc47bcc5e1c80b987f974/raw/39ac37c59ad0efc8bb7b03b02225e7eaafde5bd7/cliffy-prompt-emoji.ts

image

Code gist to test can be found here https://gist.github.com/prcdpr/a202eabe338fc47bcc5e1c80b987f974

Metadata

Metadata

Assignees

No one assigned

    Labels

    module:promptprompt moduleupstreamIssue with external dependency or with deno itself.windows

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions