fix: <Text> encoding non-ascii characters in Bun (#760)
This commit is contained in:
@@ -3,16 +3,14 @@
|
||||
*/
|
||||
|
||||
import { hostname } from "node:os";
|
||||
import { Box, Text, useApp, useInput } from "ink";
|
||||
import { Box, useApp, useInput } from "ink";
|
||||
import { useState } from "react";
|
||||
import { AnimatedLogo } from "../cli/components/AnimatedLogo";
|
||||
import { colors } from "../cli/components/colors";
|
||||
import { Text } from "../cli/components/Text";
|
||||
import { settingsManager } from "../settings-manager";
|
||||
import { pollForToken, requestDeviceCode } from "./oauth";
|
||||
|
||||
const upArrow = String.fromCharCode(0x2191);
|
||||
const downArrow = String.fromCharCode(0x2193);
|
||||
|
||||
type SetupMode = "menu" | "device-code" | "auth-code" | "self-host" | "done";
|
||||
|
||||
interface SetupUIProps {
|
||||
@@ -189,9 +187,7 @@ export function SetupUI({ onComplete }: SetupUIProps) {
|
||||
</Text>
|
||||
</Box>
|
||||
<Text> </Text>
|
||||
<Text dimColor>
|
||||
Use {upArrow}/{downArrow} to navigate, Enter to select
|
||||
</Text>
|
||||
<Text dimColor>Use ↑/↓ to navigate, Enter to select</Text>
|
||||
</Box>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user